I am having real trouble in getting sendmail configured to act as a relay on AIX. All I want to be able to do is send mail from the Unix box via a mail gateway. In older versions of AIX it was simply change the DS value in the
sendmail.cf file and away you go, but in 7.1 this simply doesn't work. If I run "sendmail -v
mye...@myhost.com" it will sit there forever, same with mailx.
I know that I can talk to the relay server and send mail to it, but how do I get sendmail on AIX to do this for me?:
Here is the manual run showing what I'm trying to do:
==========================================
root@aixdb2: / # telnet aixmail 25
Trying...
Connected to
aixmail.fsc.uk.
Escape character is '^]'.
220
aixmail.fsc.uk ESMTP Sendmail Thu, 3 Nov 2011 15:45:05 GMT
helo aixmail
mailserver (setting up the communication,'ehlo' works as well)
250
aixmail.fsc.uk Hello
aixdb2.fsc.uk [10.200.200.22], pleased to meet you
mail from:
some...@anything.com
mailbox (don't forget on mailrelay could be some restricions)
250 2.1.0 some...@anything.com... Sender ok
rcpt to:
mail_a...@anything.com
250 2.1.5 mail_a...@anything.com... Recipient ok
data
subject: test message
this is a test message from aixdb2
.
250 2.0.0 pA3Fj5mf586210 Message accepted for delivery
quit
==========================================
So I basically want sendmail to re-write the username from "root@hostname" to "
ro...@anything.com" and then forward to my "aixmail" gateway. Should be fairly simple, but something is not working as expected. I believe it is something to do with external MX record lookup as I've seen similar issues on redhat which were fixed by telling it not to do external MX lookup, but no such option seems to exist on AIX.
Any help would be gratefully received.
Thanks,
John