I am not Linux pro, and after days of trying with tutorials how to set up postfix or other e-mail server I am try to find solution here.

In your office we have HP Proliant server with Ubuntu server 12.10. I installed configured, the mysql, apache2, php5, vnc, ssh, to provide webhosting for our clients (we do not provide DNS service). I tested it on multiple domains and subdomains everything is fine. Now I want to set up email server for our domain and for any other domain pointing to our ip adress. So if we create website for you client, we provide him and domain example.com with webhosting and also we want to provide him a email addresses like something@example.com.

I red some tutorials with postfix + mysql for vitual users but lot of config files are in other location or main file is including others. So I cant find lot of things in included files and main file that tutorials is described. (They seems to be outdated)

Can somebody provide me step by step instructions or ebook how to set up mailserver? From apt-get install to fetch messages with email client.

in short:

  1. not virtualized

  2. we do not provide dns service (We are using A record on domains)

  3. test domain is from http://dot.tk (soft-tech-srv.tk) using Dot.TK Free DNS service

  4. System is Ubuntu server 12.10 amd64, with Xfcedesktop and SSH + VNC access

  5. MySQL, Apache2, PHP5, FTP installed and configured

  6. full email service is needed.



The tutorial on www.howtoforge.com works perfectly to install postfix with courier and mysql for your situation using virtual users (so you don't need to open a Linux account for every mail user).

The config files used are on the default places if you install with apt-get. It is long but basically it installs everything using apt-get, build the mysql queries to manage virtual users and mails (6 simple queries if remember well) and configure postfix main and master config files. You also install squirrelmail as webmail software.

  • howtoforge tutorial not worked for me :-( postfix is not listening on 25, on restart or start i get warnings: unused parameters in main.cf and master.cf... can connect form telnet but not welcome message and cant use quit command, also port 25 seems to be blocked by isp. – Erik Kubica Mar 5 '13 at 8:17
  • You should change postfix master.cf to listen on 587 (subscription port) which is the recomended now (25 is blocked in most ISP and mail servers). The unused parameters warning is no problem, postfix works without problem with these warnings. They are issued due to a postfix bug I think. – laurent Mar 5 '13 at 12:02
  • sorry for late reply it worked :-) we asked isp to unblock the 25 port. – Erik Kubica Apr 14 '14 at 22:45
  • before trying to follow all those steps, do you know if the newer versions for 13.10 or 14.04 also work? Is there any difference? I am trying to get this running on 17.04 – feedc0de Apr 28 '17 at 19:54
  • I didn't test but it should work with nothing more than a few small adaptations (if needed). The postfix configuration to use virtual users should be the same (use port 587 instead of 25 of course now). I don't think postfix installation is different now (as it uses apt) but maybe it is good to check with the ubuntu documentation at help.ubuntu.com/lts/serverguide/postfix.html and adapt the installation if needed. – laurent May 1 '17 at 20:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.