Because AIX does not want to be normal
November 29th, 2005
Had a problem today with an AIX machine trying to send mail to the Internet. It seems that by default AIX ignores the DS line in the sendmail.cf if it thinks the receiving host is on a local network. So to fix it you need to find the line that contains the followig: (it is about 60% down in the file) ::
R$* < @ $* .$=m. > $* $#esmtp $@ $2.$3. $: $1 < @ $2.$3. > $4
And comment it out. It “should” have a comment like such above it:
# Added for AIX
# figure out what should stay in our local mail system
# Comment out this rule if you want all mail to go to the
# Smart-Host relay defined by “DS” macro.
# figure out what should stay in our local mail system
# Comment out this rule if you want all mail to go to the
# Smart-Host relay defined by “DS” macro.
Once you comment it out, all the mail will now be sent directly to the host defined in the DS entry. You may have to stop and restart sendmail for it to take effect.

What version and ML of AIX? 5.3 ML03 seems to work ‘properly’, all mail no matter on what network goes to DSsmtp: