Using sendmail

Giorgos Keramidas keramida at ceid.upatras.gr
Thu Jun 24 12:09:02 PDT 2004


[-- Format recovered from broken Outlook wrapping --]

On 2004-06-24 13:18, antenneX <antennex at swbell.net> wrote:
> Giorgos Keramidas <keramida at ceid.upatras.gr> wrote:
> > On 2004-06-24 11:33, antenneX <antennex at swbell.net> wrote:
> > > ....oops! I should have said please send any config examples
> > > needed to do this...??
> >
> > Look at the file /usr/share/sendmail/cf/README near line 794:
> >
> > : mailertable     Include a "mailer table" which can be used to override
> > :                 [snip]
> >
> > You might also want to check out the rest of this file, [...]
>
> Okay, I know I still have messed it up. Tried the setup below, but something
> is wrong because of the errors shown and is not delivered to server #2.
>
> Server #1 - IP 200.200.200.101
> - DNS for mail.server2.net points here (was to 200.200.200.102 and OK on
> normal delivery)

I hope you don't mean that the name "mail.server2.net" now points to
200.200.200.101.  Only the MX records for server2.net need to point to
the first host, so that mail for the domain is delivered to this host.

> - mail.server2.net in local-host-names

IIRC, this isn't right.  You should only list mail.server2.net in the
local-host-names of 200.200.200.102.

> - In mailertable = mail.server2.net esmtp:mail.server2.net

This seems ok.

> Server #2 - IP 200.200.200.102
> - has sendmail & pop3
> - mail.server2.net in local-host-names
> - has user "william"

This seems ok too.

> Send test mail: william at server2.net
> ....get error:
> SYSERR(root): mail.server2.net. config error: mail loops back to me (MX
> problem?)

That's because mail.server2.net points to the address 200.200.200.101.
When sendmail on that host tries to deliver the message as per the
instructions of your mailertable, it discovers that the message is sent
back to itself!  A loop...

- Giorgos



More information about the freebsd-questions mailing list