Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 14th August 2012, 06:17
snowweb snowweb is offline
Join Date: Dec 2010
Posts: 32
Thanks: 4
Thanked 3 Times in 3 Posts
Default Configuring Postfix (virtual_transport = dovecot)

I've setup dovecot to use user/password files to store username and passwords and I'm able to login via roundcube successfully, which makes use of those files via dovecot.

I have setup Postfix to use virtual_transport = dovecot so since dovecot is now able to see my maildirs, usernames and their associated passwords, I would expect Postfix to have all that it needs to authenticate users sending mail and to deliver incoming mail to their maildirs.

That doesn't seem to be the case though and I wonder if someone can give me some pointers?

I didn't use the following directives in the /etc/postfix/main.cf


because dovecot already knows all those things and since we're using "virtual_transport = dovecot" I guess they are not needed?

Here is my postconf -n output
alias_database = hash:/etc/aliases                               
alias_maps = hash:/etc/aliases                                   
command_directory = /usr/sbin                                    
config_directory = /etc/postfix                                  
daemon_directory = /usr/libexec/postfix                          
data_directory = /var/lib/postfix                                
debug_peer_level = 2                                             
default_destination_concurrency_limit = 5                        
home_mailbox = Maildir/                                          
html_directory = no                                              
in_flow_delay = 1s                                               
inet_protocols = all                                             
local_recipient_maps =                                           
mail_owner = postfix                                             
mail_spool_directory = /var/mail                                 
mailq_path = /usr/bin/mailq.postfix                              
manpage_directory = /usr/share/man                               
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain                                                            
myhostname = mail.bk1.server                                     
mynetworks_style = host
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
unknown_local_recipient_reject_code = 550
virtual_transport = dovecot
here is my dovecot -n
# OS: Linux 2.6.32-279.2.1.el6.x86_64 x86_64 CentOS release 6.3 (Final) ext4
auth_mechanisms = plain login
disable_plaintext_auth = no
last_valid_gid = 1000
mail_gid = 502
mail_location = maildir:/var/mail/%d/%n/Maildir
mail_uid = 501
passdb {
  args = username_format=%u /etc/dovecot/users
  driver = passwd-file
ssl = no
userdb {
  args = username_format=%u /etc/dovecot/users
  driver = passwd-file
verbose_proctitle = yes
The server will be host to a few virtual domains.

Thanks, I really appreciate your attention. :-)

Reply With Quote
Sponsored Links
Old 18th August 2012, 23:15
tahunasky tahunasky is offline
Join Date: Jul 2012
Location: Buenos Aires
Posts: 84
Thanks: 1
Thanked 9 Times in 9 Posts

You need to tell postfix that dovecot is going to be your LDA (local delivery agent), so you need to edit the postfix/master.cf file and put something like this in it:

dovecot   unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail:mail argv=/usr/libexec/dovecot/dovecot-lda -f {sender} -d ${recipient}
You will also need to disable SELinux or find some way to make it work with dovecot as the LDA, i tried for ages and couldnt, so gave up.

Last edited by tahunasky; 20th August 2012 at 19:54.
Reply With Quote


dovecot, postfix

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig3 won't start after update Cracklefish Installation/Configuration 15 28th February 2012 15:11
Postfix SMTP Auth to Dovecot Not Working -- HELP! Scratchpad Server Operation 6 12th April 2011 14:29
dovecot: lda: Fatal: Unknown user dpicella Installation/Configuration 1 22nd August 2010 03:59
Postfix can't received email from exterior astra2000 Server Operation 5 18th October 2009 00:26
Xen on Ubuntu kmand HOWTO-Related Questions 17 5th March 2009 19:43

All times are GMT +2. The time now is 08:52.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.