Solved

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

Posted on 2011-03-24
5
887 Views
Last Modified: 2012-08-13

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?
0
Comment
Question by:bganoush
  • 2
  • 2
5 Comments
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 35210061
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
 

Author Comment

by:bganoush
ID: 35210090

How do you use Dj?
0
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 35210133
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
 
LVL 5

Expert Comment

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

Author Comment

by:bganoush
ID: 35367511

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

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Utilizing an array to gracefully append to a list of EmailAddresses
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question