Postfix

Installing postfix mail server on ubuntu

apt install postfix

If you want to sent out email from this server, select Internet Site on Postfix Configuration screen.

To see postfix configuration, run

postconf -d

To see value of specific item, for example myhostname, run

postconf -d myhostname

Testing Mail

To test, sent a test email with command


echo "Test email" | mail -s "Test email" you@yourdomin.com


Posted in Ubuntu