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
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

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

  




 

 

Postfix Documentation
Previous Page Home Next Page

7 - Configuring Postfix to send mail only

If you are going to use Postfix to send mail only, there is no need to change your existing sendmail setup. Instead, set up your mail user agent so that it calls the Postfix sendmail program directly.

Follow the instructions in the " Mandatory configuration file edits" in section 10, and review the "To chroot or not to chroot" text in section 11.

You MUST comment out the "smtp inet" entry in /etc/postfix/ master.cf, in order to avoid conflicts with the real sendmail. Put a "#" character in front of the line that defines the smtpd service:

/etc/postfix/
master.cf:
    #smtp      inet  n       -       n       -       -       smtpd

Start the Postfix system:

# 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 something 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