Page 1 of 1

mailertable intrigue

Posted: Sat Aug 12, 2006 2:10 am
by tenaciousC
Hi All,

I was looking at my 3rd party mailgateway logs and noticed that there was some communication between internal Scalix servers there (i.e. scalix@server1.domain.com going to scalix@server2.domain.com). It was about every 15 minutes so very likely dir sync traffic as that was the period I had set.

The reason (I suspected) was that server1.domain.com has an smtp smarthost set because it is at the site where our gateway is and handles all internet mail for scalix.

I don't want this to happen as it loads the 3rd party mailgateway unecessarily with internal traffic. I thought I should be able to add a mailertable line to make the mail for server2 go directly to it and not via the gateway.

I added a line to server1's /etc/mail/mailertable :

Code: Select all

server2.domain.com                 esmtp:[server2.domain.com]

did a

Code: Select all

make
and

Code: Select all

service sendmail restart


However to no avail as all mail to this host is still going to the smarthost gateway. Tried with and without [brackets] and directly to IP address - same result.

Other entires in the mailertable are being acted on. It looks like it is not matching the lefthand side of this particular entry for some reason.

Any ideas what I can do to get this to work?

Thanks in advance.

C 8)

Posted: Sat Aug 12, 2006 10:57 am
by dkelly

Now it works

Posted: Sun Aug 13, 2006 4:02 am
by tenaciousC
So the stage I missed was omsendin then? not sure why that makes a difference as it seems only concered with sendmail.cf, whereas the mailertable creates the mailertable.db.

Thanks for the tip --- and a great wiki page!

C