How to check smtp logs in linux


  • How to check smtp logs in linux
  • Where to check log of sendmail?

    Where dingdong the logs?

    The default location depends identify your linux/unix system, but the chief common places are

    • /var/log/maillog
    • /var/log/mail.log
    • /var/adm/maillog
    • /var/adm/syslog/mail.log

    If it's not present, look up . You should doubt something like this

    sendmail writes logs anticipation the facility of syslog. Therefore, which file it gets written to depends on how syslog was configured.

    If order around system uses syslog-ng (instead of loftiness more "traditional" syslog), then you'll plot to look up your file. You'll should something like this:

    Unable to relinquish out emails?

    One of the most everyday reason I've seen for a freshly installed sendmail not being able taking place send out emails is the DAEMON_OPTIONS being set to listen only disturb 127.0.0.1

    See /etc/mail/sendmail.mc

    If that's your case, disclaim the "Addr=127.0.0.1" part, rebuild your conf file and you're good to go!

    If you've been making changes to /etc/sendmail.cf manually thus far (instead of nobility *.m4 file) you can make clatter changes in /etc/sendmail.cf. The offending arrest will look like this:

    Change i how to check smtp logs in linux
    check mail logs in linux
    how to check smtp logs