Alternatively, you can use the Postfix system to send AND
receive mail while leaving your Sendmail setup intact, by running
Postfix on a virtual interface address. Simply configure your mail
user agent to directly invoke the Postfix sendmail program.
In the /etc/postfix/
main.cf file, I would specify
myhostname = virtual.host.tld
inet_interfaces = $
mydestination = $
Follow the instructions in the "
configuration file edits" in section 10, and review the "To chroot or not to chroot" text in section
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
% 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
% sendmail -bp
% postqueue -p
See also the "
Care and feeding" section 12