The simplest Ubuntu mail server
Posted
by
John G.
on Server Fault
See other posts from Server Fault
or by John G.
Published on 2012-12-17T10:37:28Z
Indexed on
2012/12/17
11:04 UTC
Read the original article
Hit count: 345
After days of trying all sorts of tutorials I finally found a simple solution (not necessary the best) for a functional ubuntu mail server:
sudo aptitude install postfix
next type
sudo dpkg-reconfigure postfix
and configure like this:
Internet Site
yourdomain.com
john (type your ubuntu user)
yourdomain.com, localhost.localdomain, localhost
No
127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/192.168.0.1/24 (192.198.0.1 replace with your server ip address)
0
+
all
next install mail-stack-delivery
sudo aptitude install mail-stack-delivery
At this point you have a working mail server. Next, I configured SquirrelMail and start sending and receaving mail.
This configuration worked with both Apache and Nginx.
© Server Fault or respective owner