Difference between revisions of "Postfix + Dovecot mailserver on Ubuntu"
(Created page with "Tested on Ubuntu 12.10 VPS We will create simple mailserver using postfix and dovecot. In current example we will use secure pop3 and smtp. You should act as user so we are...") |
(No difference)
|
Revision as of 16:30, 13 June 2014
Tested on Ubuntu 12.10 VPS
We will create simple mailserver using postfix and dovecot. In current example we will use secure pop3 and smtp.
You should act as user so we are not adding this annoying "sudo" at the beginning of each command.
Install postfix
apt-get install postfix
NOTE: if you got the error: Package 'postfix' has no installation candidate. You should update the APT’s database:
apt-get update apt-get upgrade
Usually postfix configure initial config by itself correctly. But you can check and reconfigure in case something wrong:
dpkg-reconfigure postfix
Check the next details and change in case it neccessary:
Mail server configuration type: “Internet Site”. System mail name: mydomain.com Root and postmaster mail recipient: leave blank Other destinations to accept mail for: Add mydomain.com to the beginning of this comma-separated list. Force synchronous updates?: No Local networks: Enter your IP subnet that we picked in the Networking section. Use procmail?: No Mailbox size limit: “0″ Local address extension character: Leave as default. Internet protocols to use: all
Create first user that will be used for mail. Let;s create user "test" with password "test1" . Change this password to more complex.
useradd test passwd test