cancel
Showing results for 
Search instead for 
Did you mean: 

sendmail mailertable

Thomas Broccoletti
Occasional Advisor

sendmail mailertable

I am trying to get the mailer table to route outbound mail to a different relay based on domain name.

I am not having much luck with it.

any sugestions ?

I'm running hpux 11.11 V1 sendmail 8.9.3 PHNE_29774
11 REPLIES
TTr
Honored Contributor

Re: sendmail mailertable

I think you need to enable the mailertable feature in sendmail.cf and create the /etc/mail/mailertable database

http://www.sendmail.org/m4/mailertables.html
Thomas Broccoletti
Occasional Advisor

Re: sendmail mailertable

Hi

I have done all the configuration stuff according to another thead on this forum.

I also ran the makemap to create the db.
Steven E. Protter
Exalted Contributor

Re: sendmail mailertable

Shalom,

Lets see the sendmail macro compile script an example of the mailer table entries and any errors.

Also, consider upgrading sendmail to a secure version.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
TTr
Honored Contributor

Re: sendmail mailertable

Check and fix the permissions/owners of the new files in /etc/mail
Restart sendmail
Any errors in /var/adm/syslog/mail.log?
Thomas Broccoletti
Occasional Advisor

Re: sendmail mailertable

.bankofamerica.coms smtp:pandora.gabrobins.com
TTr
Honored Contributor

Re: sendmail mailertable

Two things
1. .bankofamerica.coms smtp:[pandora.gabrobins.com]
(note the brackets around the relay host]
2. There are some rules that you need to uncomment in sendmail.cf. Search for mailertable and you will find two text blocks. One has 5 lines that start with the comment
# not local -- try mailer table lookup
and another one for rule S90 taht has 6 lines. Uncomment those 11 lines that start with "R...".
Rebuild the mailertable map and restart sendmail.
Thomas Broccoletti
Occasional Advisor

Re: sendmail mailertable

I have done that and it's still not working.
Any other ideas ?
TTr
Honored Contributor

Re: sendmail mailertable

I tested on my UNIX workstation and it works fine. So you have not "done all that" as you repeatedly say. What exactly is "all that"? You are not giving any details. You were repeatedly asked to provide details from the /var/adm/syslog/mail.log file. Did you test with sending a test mail message? Did you follow the mail.log file to find out where the mail went? Any errors when sendmail starts up?
Thomas Broccoletti
Occasional Advisor

Re: sendmail mailertable

 
Thomas Broccoletti
Occasional Advisor

Re: sendmail mailertable

The stuff I was referring to was all the changes required in the sendmail.cf file.

There is no error messages in the mail.log.

When I sendmail via sendmail -v test@domain.com it seems like it ignores the mailertable.

the command I use to make the mailertable dbm is
makemap dbm /etc/mail/mailertable < /etc/mail/mailertable.list
CBee
Trusted Contributor

Re: sendmail mailertable

Any luck jet? I've struggled with this on linux. I ended up installing webmin (www.webmin.org) and let that guide me.

The missing step in the mentioned guides is the rebuild of the sendmail.cf files after enabling the feature in sendmail.mc.

BE WARNED: rebuilding the sendmail.cf will ruin your day if you have manually edited the sendmail.cf file! Even webmail steps into this pitfall.

Hence, either update the sendmail.mc to include the updates you need in the sendmail.cf or save the current sendmail.cf file, rebuild a new one and then redo the changes to the sendmail.cf file.

The book sendmail from O'Reilly (first edition 1993) was my friend here. I bet you cannot maintain a current msExchange with documentation from that time..
Things that go automatically, automatically go wrong...