Skip to content

Instantly share code, notes, and snippets.

@charlespeach
Last active December 15, 2015 18:58
Show Gist options
  • Save charlespeach/5307319 to your computer and use it in GitHub Desktop.
Save charlespeach/5307319 to your computer and use it in GitHub Desktop.
Just some useful stuff for sendmail

Sendmail

Checking Queue

sendmail -bp or mailq

to check whats in the sendmail queue

Checking the logs

The sendmail logs should be located:

/var/log/maillog or /var/log/messages

if not, grep the syslog config for mail

cat /etc/syslog.conf | grep mail

This should give you some filenames of mail logs.

In my case, the server was using rsyslog so the adjusted command

cat /etc/rsyslog.conf | grep mail

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment