Knowledgebase
Search:     Advanced search
Browse by category:

How to debug Postfix

Views: 6751
Votes: 2
Posted: 03 Feb, 2007
by: Admin A.
Updated: 06 Mar, 2008
by: Admin A.

Postfix DEBUGGING

1.) If things are acting strangely here is a simple and quick first step that could save you a lot of time.

 

* TO CHECK THE CURRENT CONFIGURATION:

* /usr/sbin/postfix check

* validates the Postfix mail system configuration and will

* warn about bad directory/file ownership or permissions, and

* create missing directories.

2.) In debug mode Postfix will spew out more info than you might ever want so look at /var/log/mail.log to verify that you need more informationfirst. If more information is needed then restart the postfix daemon in "verbose" mode with the "-v" option. To do this you would stop the daemon first: /etc/init.d/postfix stop

then start by hand with the "-v" option and put on the reading glasses to view /var/log/mail.log:

/usr/sbin/postfix -v start

 

3.) Another cool Postfix debug feature is accessible through 2 configuration parameters:

debug_peer_level = 2

debug_peer_list = some.domain

The "debug_peer_level" parameter specifies the increment in verbose logging level when an SMTP client or server host name or address matches a pattern in the "debug_peer_list" parameter.

The "debug_peer_list" parameter specifies an optional list of domain or network patterns, /file/name patterns or type:name tables. When an SMTP client or server host name or address matches a pattern, increase the verbose logging level by the amount specified in the "debug_peer_level" parameter.

Others in this Category
document Search and replace in vi
document How can I connect to a non anonymous FTP site using Midnight Commander?
document Performing recursive commands on a Unix / Linux file system.
document How to fix weird fonts when using Midnight Commander & PuTTY?
document How can I perform a quick and easy installation of SpamAssassin?
document How to install a custom scratchbuilt kernel. (long version)
document How to build a custom kernel (short version)
document How do I label a Linux partition?
document How do I turn on IP forwarding on Linux?
document Port forwarding using netcat.
document How to build a custom install of ProFTPD from source.
document How do I remove dos line breaks ^M with vi?
document How do I set the date and time in Linux?
document Special extended ASCII characters
document Get library info for specified executables
document How do I remove duplicate packages in Redhat Package Manager (RPM)?
document How do I install RRD Tool?
document How do I obtain a new root.cache / root.hints file?
document Using awk to filter text files for specific columns of information
document Beware of the lsattr command - it can cause confusion!
document How can I connect to a Windows desktop from my Linux PC?
document How do I install Perl modules?
document How do I create an .iso image from a directory of files?
document How do I allow or deny specific users in SSH?
document Setting netbios node types in dhcpd.conf
document How can I forward ports on my Linux firewall?
document Handy one line SED command howto
document chmod parameters explained
document Error linux/config.h
document RPM repositories
document How do I perform a recursive find?
document How do I install a .src.rpm file?
document How do I find a text string using awk?
document How do I list users on Linux
document Adding Java support to Linux (specifically CentOS / Redhat)
document How to recover a grub boot partition
document Linux kernel build tips
document Adding users to groups.
document Using ssh and tar to transfer files from server to server.
document Using tar to copy files between servers
document Removing lines of text with SED



RSS