[COLUG] fetchmail configuration

Brian bnmille at gmail.com
Thu Nov 1 13:13:26 EST 2007


On 10/28/07, David McGlone <d.mcglone at att.net> wrote:
> On Friday 26 October 2007 10:22:03 am Rob Funk wrote:
> > David McGlone wrote:
> > > I have been trying for 3 days to set up a mail server using fetchmail
> > > and postfix.
>
> I only have 1 problem, the server that I am using, I can't figure out how to
> set up postfix to send mail straight to other computers on my network, it
> always tries sending through the internet.
>
> For example, at the moment I only have 2 computers, 1 is a laptop hostname:
> lappy and 1 is a desktop acting as a desktop computer and a server. hostname:
> buddy.
>
> I can send mail from lappy to buddy easily, but I cannot send to lappy from
> buddy because buddy keeps sending the mail to my ISP's relay and it bounces
> back with an error that it cannot find lappy at localhost
>
> I have lappy's ip in my /etc/hosts, but that doesn't seem to matter, even when
> I turn off smtp and use local delivery, lappy never receives any mail.
>
> I have made sure both computers know about each other in my hosts file, so I'm
> sort of at a loss here.
>
> any ideas?
>

I think you need to modify the value of "mydestination" in
/etc/postfix/main.cf (or the value of "POSTFIX_LOCALDOMAINS" in
/etc/sysconfig/postfix, depending on whether you are editing
/etc/postfix/main.cf by hand or allowing SuSEconfig to create the
files for you) to include the domain/hostname of lappy.  That will
prevent postfix from trying to send those emails to your ISP.

Then you need to configure procmail to deliver the emails.  Or more
likely, configure an IMAP or POP3 server (SuSE uses either Cyrus IMAP
or Qpopper) to make the emails available for lappy to retrieve.


More information about the colug432 mailing list