This article will show how to configure postfix & dovecot from webmin control panel to send mail.
Logging to your webmin/virtualmin control panel by below url:
https://hostname:10000
switch to webmin part.
Edit Postfix config files:
Go to Servers > Postfix Mail Server and click over the “Edit Config Files” icon.
Select main.cf from the “Edit config file” dropdown box.
Click the “Edit” button.
Scroll down to the end of the configuration file, and add the following settings:
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
Also make sure you have exactly this line into your main.cf file :
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination permit_sasl_authenticated

Finally also at the same file (at the middle of the file this time) uncomment the line :
home_mailbox = Maildir/
Click the “Save” button.

Notice that for the last setting we could have done it by navigating at Server > Postfix Mail Server, and by clicking at “Local delivery” icon and by setting Maildir/ at the voice “Home-relative pathname of user mailbox file”.

Edit Dovecot config files
Navigate to Servers > Dovecot IMAP/POP3 Server and click over the “Edit Config Files” icon.
Select /etc/dovecot/conf.d/10-master.conf from the “Edit config file” dropdown.
Click the “Edit” button.
Find the configuration section for the auth service, and uncomment lines related to the socket. Specify the username and group name of your Postfix user.
In our case is user=postfix, group = postfix.
The section should look something like the following code when finished:
service auth { ... # Postfix smtp-auth unix_listener /var/spool/postfix/private/auth { mode = 0660 user = postfix group = postfix } ... }
Click “Save”

Now go to file : /etc/dovecot/conf.d/10-auth.conf and hit the “Edit” button.
Find and change auth_mechanisms to :
auth_mechanisms = plain login
Click “Save”.

Click the “Stop Dovecot Server” button and then the “Start Dovecot Server” button to restart the dovecot daemon.
Set Postfix to listen at Port 587
We need to instruct Postfix to listen for SMTP connections on port 587.
Navigate to Servers > Postfix Mail Server and click at the “Server Processes” icon.
Click the “Add a new server process” link.
In the “Create Server Process” form fill like this :
Set “Transport type” to Internet.
Set Server name/port” to 587.
Set “Process command” to smtpd.
Set “Enabled?” to Yes.
Set “Listen on host address” to Any address.
Set “Private to mail system?” to No.

Click the “Create” button.
At the “Server Processes” list you should have a new process with name 587 like the picture below.

Navigate to Servers > Postfix Mail Server.
Click “Stop Postfix” and then “Start Postfix” to restart the service.
Now you can send or receive & can read mail from your virtualmin server.
Thank you for reading this article.
Was this helpful?
4 / 2
Pretty section of content.I enjoyed account your blog posts.
I am extremely impressed with your writing skills and also with the layout on your blog.
Either way keep up the excellent quality writing, it is rare to see a nice
blog like this one nowadays.
Keep up the excellent quality writing, it is rare to see a nice
blog like this one nowadays.
Pretty section of content. I just stumbled upon your website and in accession capital to assert that I acquire in fact enjoyed account your blog posts.
Any way I’ll be subscribing to your feeds.
I am extremely impressed with your writing skills and also with the layout on your blog.
Either way keep up the excellent quality writing, it is rare to see a nice
blog like this one nowadays.
Awesome blog structure! The total look of your content material is
fantastic!
Remarkable! Its in fact amazing piece of writing, I have got much clear idea concerning from this article.
Bless you!
Hey very cool blog!! Guy .. Excellent ..
Superb .. I’ll bookmark your website and take the
feeds also? I’m happy to seek out a lot of useful information here
within the post, we need develop more strategies
in this regard, thank you for sharing.
Maybe one day I will write a book based on this perfect writing. Great job really.
Magnificent beat ! I would like to apprentice even as you amend your web site, how can i subscribe for a weblog site? The account aided me a appropriate deal. I were tiny bit familiar of this your broadcast offered brilliant transparent idea
Undeniably believe that which you stated. Your favorite justification seemed to be on the net the simplest thing to be aware of. I say to you, I certainly get irked while people think about worries that they just don’t know about. You managed to hit the nail upon the top as well as defined out the whole thing without having side effect , people could take a signal. Will likely be back to get more. Thanks
Hello! This is kind of off topic but I need some help from an established blog. Is it very hard to set up your own blog? I’m not very techincal but I can figure things out pretty fast. I’m thinking about making my own but I’m not sure where to start. Do you have any ideas or suggestions? Many thanks
Heya i am for the first time here. I came across this board and I find It truly useful & it helped me out a lot. I hope to give something back and aid others like you helped me.
I used to be able to find good information from your blog articles.
Good post. I be taught one thing more challenging on totally different blogs everyday. It should all the time be stimulating to read content material from other writers and observe just a little one thing from their store. I’d choose to make use of some with the content on my weblog whether or not you don’t mind. Naturally I’ll give you a hyperlink on your web blog. Thanks for sharing.
Hi, I do think this is an excellent site.
I stumbled upon it 😉 I may revisit once again since i have bookmarked it.
Money and freedom is the greatest way to change,
may you be rich and continue to help others.
It’s appropriate time to make some plans for the long run and it’s time to be happy.
I have learn this post and if I may just I want to
counsel you some interesting things or advice. Maybe you can write subsequent articles referring to this article.
I wish to read even more things about it!