Postfix Configuration for a Linux PC. See also


# only for local clients - mostly cron jobs
inet_interfaces = localhost
# local delivery 
mydestination = $myhostname, localhost.$mydomain, localhost
myorigin = $myhostname
masquerade_domains =

# relay without slow DNS lookups
relayhost = []
# do not modify the rest of

Using sSMTP instead of sendmail

on the clients, to make a simpler setup, and no running daemon.

sSMTP RPM page on pbone

sudo yum install -y ssmtp
sudo perl -i -p -e 's/^mailhub.*$/mailhub=psi/' /etc/ssmtp/ssmtp.conf
sudo rpm -e sendmail

On the psi server, change Postfix's mydestinations in to accept mail from these machines:

mydestination = $myhostname, localhost.$mydomain, localhost, regexp:/etc/postfix/mydestinations

and /etc/postfix/mydestinations:

/.*\.local/ localhost