Operating System - HP-UX
1832991 Members
2488 Online
110048 Solutions
New Discussion

Re: mailertable and sendmail

 
SOLVED
Go to solution
Carme Torca
Super Advisor

mailertable and sendmail

Hi,

I want to configure the parameter mailertable in the sendmail, but I have going a problem...
I have this in sendmail.cf

# "Smart" relay host (may be null)
DS

# Mailer table (overriding domains)
Kmailertable hash -o /etc/mail/mailertable

I have makemap the file mailertable, but when I send mails, this its going to another address, its goes to webmail.T.es when have to go to mail.X.net

T.es esmtp:[mail.X.net]
sms.T.es esmtp:[sms.T.es]


Could anyone help me?
Thanks!
Carmen.
Users are not too bad ;-)
2 REPLIES 2
Marc Roger
Advisor
Solution

Re: mailertable and sendmail

sendmail -v -d8.99 -d38.99 dest@sms.T.es
will provide useful debugging information.

I justed tested, and on my system, I had to remove comments from the following lines in sendmail.cf to make it work properly:

# not local -- try mailer table lookup
R$* <@ $+ > $* $: < $2 > $1 < @ $2 > $3 extract host name
R< $+ . > $* $: < $1 > $2 strip trailing dot
R< $+ > $* $: < $(mailertable $1 $) > $2 lookup
R< error : $- $+ > $* $#error $@ $1 $: $2 check -- error?
R< $- : $+ > $* $# $1 $@ $2 $: $3 check -- resolved?
R< $+ > $* $: $>90 <$1> $2 try domain

and:

###################################################################
### Ruleset 90 -- try domain part of mailertable entry ###
###################################################################

S90
R$* <$- . $+ > $* $: $1$2 < $(mailertable .$3 $@ $1$2 $@ $2 $) > $4
R$* <$- : $+ > $* $# $2 $@ $3 $: $4 check -- resolved?
R$* < . $+ > $* $@ $>90 $1 . <$2> $3 no -- strip & try again
R$* < $* > $* $: < $(mailertable . $@ $1$2 $) > $3 try "."
R<$- : $+ > $* $# $1 $@ $2 $: $3 "." found?
R< $* > $* $@ $2 no mailertable match

Carme Torca
Super Advisor

Re: mailertable and sendmail

Perfect!
Thanks a lot of!!!!
Users are not too bad ;-)