VDS Sphera Knowledge Base

Main / Browse Categories / Email & Sendmail / How do I change the log level for Sendmail?

Print article Print Article    Email article Email Article

How do I change the log level for Sendmail?

You can change the log level setting in the /etc/mail/sendmail.cf file. Before editing this file, be sure to back it up. For example, you can backup the file by running this command from SSH.

cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.backup

By default, the log level for Sendmail is set to 0. (Logging is disabled.) 

# log level
O LogLevel=0
The most common log level setting is 9. 
# log level
O LogLevel=9
You can see the various log levels in this article to determine what information you want captured.

Once you edit the settings, you can view the maillog file to troubleshoot email problems. Here is how you would view the maillog live on the server, using a SSH connection.
tail -f /var/log/maillog

User Comments
How do I change the log level for Sendmail?  
There are no user comments for this topic.
 

Attachments
No attachments.

Related Articles
 Can I change my MX records?
 Where is Sendmail located?
 How do I point MX Record to external mail server from VDS Control Panel
 What is the default email account for my VDS?
 How do I setup an autoresponder?

Why Choose Our Hosting?

  • Unmatched Customer Support!
  • Virtual Private Server technology provides a rich, dedicated-like environment for every account.
  • We are known for our superb quality, performance and flexible hosting environment. We manage the server, software, and network you do the rest.
Continue reading »

Featured Hosting Plan


Learn more about our VPS Extreme

What is Included?

  • PHP 5/MySQL 5
  • Parallels® Plesk Panel 10
  • Unique IP Address
  • Daily VPS Backups (Off Server)
  • SAS Hardware Raid diskspace
  • CentOS 5 x86_64 bit
  • Multi-homed Tier 1 Bandwidth
  • Full Upgrade capabilities
Continue reading »