Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Postfix Documentation
Previous Page Home Next Page

9 - Running Postfix instead of Sendmail

Prior to installing Postfix you should save any existing sendmail program files as described in section 6. Be sure to keep the old sendmail running for at least a couple days to flush any unsent mail. To do so, stop the sendmail daemon and restart it as:

# /usr/sbin/sendmail.OFF -q

Note: this is old sendmail syntax. Newer versions use separate processes for mail submission and for running the queue.

After you have visited the " Mandatory configuration file edits" section below, you can start the Postfix system with:

# postfix start

or, if you feel nostalgic, use the Postfix sendmail command:

# sendmail -bd -qwhatever

and watch your maillog file for any error messages. The pathname is /var/log/maillog, /var/log/mail, /var/log/syslog, or someting else. Typically, the pathname is defined in the /etc/syslog.conf file.

% egrep '(reject|warning|error|fatal|panic):' /some/log/file

Note: the most important error message is logged first. Later messages are not as useful.

In order to inspect the mail queue, use one of the following commands:

% mailq

% sendmail -bp

% postqueue -p

See also the " Care and feeding" section 12 below.

Postfix Documentation
Previous Page Home Next Page