User Tools

Site Tools


This is an old revision of the document!



Some notes regarding the installation & configuration of postfix in the most secure way I know so far today.

The target operating system is an Ubuntu 16.


sudo apt-get install postfix 
sudo apt-get install mailutils


Copy the default config:

cp /usr/share/postfix/ /etc/postfix/

This is my configuration for a host that it is isolated in internet, and it has no special needs (it is not the mail server for any domain, it only needs to send some emails):

# See /usr/share/postfix/ for a commented, more complete version

# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
myhostname =

mydomain =

myorigin = $myhostname

mydestination = $myhostname, localhost, novaprime

mynetworks_style = host

relay_domains = $mydestination

smtpd_banner = $myhostname ESMTP $mail_name
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

Do some testing

mail --subject="hello from server"
linux/postfix.1489170948.txt.gz · Last modified: 2017/03/10 19:35 by rlunaro