Is there a way to get sendmail to log traffic on AIX?


I am using an AIX server to relay smtp messages from one subnet to our main Smart relay host. I am also trying to send mail through it using a java application on our webserver. The Java application complains that the "Domain" can't be found for my "FROM" field????   I think this is a setting in the java application but I want to rule out any other reasons so I would like to capture the traffic that goes to my sendmail relay to make sure that NOTHING is going through there... can this be done? and are there log files for sendmail?
bganoushAsked:
Who is Participating?
 
woolmilkporcCommented:
Domain: If sendmail cannot determine your domain from /etc/resolv.conf set a domain in the "Dj" macro of sendmail.cf

Logging: To get the highest logging level add an entry to /etc/syslog.conf like

mail.debug   /var/adm/mail.log

Issue

touch   /var/adm/mail.log

and

refresh -s syslogd
refresh -s sendmail

/var/adm/mail.log will contain your sendmail log.

wmp
0
 
bganoushAuthor Commented:

How do you use Dj?
0
 
woolmilkporcCommented:
In /etc/mail/sendmail.cf:

Dj$w.mydomain.com

$w contains the respective hostname from

"Dw" or "Cw" or "Fw". See the appropriate comments in /etc/mail/sendmail.cf.


0
 
balasundaram_sCommented:
Is your Java Application using "javamail" to send the e-mails ?  In that case, sendmail does not play a major role here.
0
 
bganoushAuthor Commented:

Thanks, it turns out that the server did not have an MX entry so the domain I was using to send "from" errored out with a "domain not found" error... The logs worked fine.. thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.