Originally posted by: shargus
We do something similar here, but we edit the sendmail.cf file directly.
Here's what we do:
1. Edit /etc/mail/sendmail.cf file as follows:
- Look for the line that starts with DS and add the name of your smart relay (i.e. DSsmartrelay.mydomain.com )
- Look for the line that starts with Dj and add the name of your DNS domain (i.e. Djmydomain.com )
- Security wants us to set "O PrivacyOptions=authwarnings,noexpn,novrfy"
2. Unless your server is actually
receiving mail, turn sendmail off. If you are just getting mail from your servers (status, errors, logs, etc.) they don't need to receive mail.
3. AIX sendmail seems to be compiled hard-coded to use DNS for name resolution (in other words, it won't look in /etc/hosts even if netsvc.conf says to). If you have DNS set up, make sure it resolves the relay server properly (forward and reverse lookup). Your error message implies a name resolution issue.
4. Verify your server can get to the mail relay: "telnet smartrelay.mydomain.com 25" and verify the SMTP banner.
5. Send a test mail: cat /etc/issue | mailx -v -s "test email"
myemail@mydomain.com The -v option will show the SMTP conversation. Verify it's able to talk to the relay.
6. We have a cronjob set up to periodically do a "sendmail -q" to flush the mail buffers.
#AIX-Forum