Where is sendmail log file




















It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search. Therefore, which file it gets written to depends on how syslog was configured. If you system uses syslog-ng instead of the more "traditional" syslog , then you'll have to look up your syslog-ng. You'll should something like this:. The offending line will look like this:.

Also, if nothing is going out you may want to check your firewall as follows be sure to do this as root :. I was directed to this answer via a search. And all other mentioned directories are non-existent. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Where to check log of sendmail?

Ask Question. Asked 12 years, 2 months ago. Active 6 years, 2 months ago. Viewed k times. I can't send out emails, need to look into the logs, but where is the log? Also, error conditions can cause unexpected entries to the mail queue. This script forces the sendmail command to process the queue and maintains four progressively older copies of log files, named log.

Each time the script runs it moves:. This allows logging to start over with a new file. Run this script either manually or at a specified interval with the cron daemon. Many SMTP implementations do not fully implement the protocol.

These can be very hard to trace. If you suspect such a problem, you can set traffic logging using the -X flag. For example:. This logs a lot of data very quickly and should never be used during normal operations. After starting such a daemon, force the errant implementation to send a message to your host.

All message traffic in and out of sendmail , including the incoming SMTP traffic, will be logged in this file. Recording information, for example, about site connectivity and total message volume, can help the system administrator generate sendmail more efficiently. Through these logs, administrators can also solve message delivery problems between the sender and recipient.

The Sendmail logs default location varies based on your Linux distribution. To access the Sendmail logs, use the following command that will display all logs on the terminal window:. Most users cannot read or understand the Sendmail logs.

Logs messages display in the following format. Each line in logs consists of a timestamp, the machine name that generated this message, the Sendmail word, and message details.



0コメント

  • 1000 / 1000