Link to home
Start Free TrialLog in
Avatar of fireguy1125
fireguy1125

asked on

Checking Logs on Sendmail Server

I have a RedHat Sendmail server relay internet facing then relays email to our Exchange server.  I don't have any fluency in the sendmail server, and only have access to command line.  I'm trying to troubleshoot a sender getting bounce backs 4.4.1 errors - but I don't see these messages even reaching the Exchange server, so I'm leaning towards the relay server.  I'm not sure of the configuration of it, and would like to review it see if there are any logs that show denys or drops of incoming mail - is this possible? If so, what commands do I enter to view this log? I'm not familiar with any Redhat/Linux command line, so I would need step by step.
Avatar of fireguy1125
fireguy1125

ASKER

Also to add, we have 2 MX records, our Primary faces our Edge/TMG Exchange servers, and secondary is reaching the secondary MX record - this is where the bounce back is coming from - which begs the question, why the e-mail is not attempting to arrive at the primary mx record mail server.  We've added the sender domains to all whitelists and checked logs but dont see any record of the email reaching Exchange.
Avatar of slubek
sendmail logs its activity via syslogd daemon. It was configured in /etc/syslog.conf in older Redhats, but in new CentOS configuration goes to /etc/rsyslog.conf. Find that file, open it and find line starting with "mail.*" - in that line you'll find name of log file.
Default mail log location is /var/log/maillog. Open the shell (place where you can execute commands) and if you want to see what is already in log, do (as a root):
less /var/log/maillog

Open in new window

If you want to see messages incoming to log, do:
tail -f /var/log/maillog

Open in new window

Ok, thanks, how can I get the less /var/log/maillog command somehow exported to review the logs, preferably in a csv format so I can view it in excel?  I'm viewing it in vmware console.
ASKER CERTIFIED SOLUTION
Avatar of slubek
slubek
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial