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.
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):
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
If you want to see messages incoming to log, do:
tail -f /var/log/maillog
ASKER
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER