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.
Reply
 
Thread Tools Display Modes
  #1  
Old 14th August 2012, 05:17
snowweb snowweb is offline
Member
 
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

virtual_mailbox_domains
virtual_mailbox_base
virtual_mailbox_maps
virtual_uid_maps
virtual_gid_maps

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
Code:
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
Code:
# 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. :-)

Peter
Reply With Quote
Sponsored Links
  #2  
Old 18th August 2012, 22:15
tahunasky tahunasky is offline
Member
 
Join Date: Jul 2012
Location: Buenos Aires
Posts: 84
Thanks: 1
Thanked 8 Times in 8 Posts
 
Default

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:

Code:
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 18:54.
Reply With Quote
Reply

Bookmarks

Tags
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 14:11
Postfix SMTP Auth to Dovecot Not Working -- HELP! Scratchpad Server Operation 6 12th April 2011 13:29
dovecot: lda: Fatal: Unknown user dpicella Installation/Configuration 1 22nd August 2010 02:59
Postfix can't received email from exterior astra2000 Server Operation 5 17th October 2009 23:26
Xen on Ubuntu kmand HOWTO-Related Questions 17 5th March 2009 18:43


All times are GMT +2. The time now is 22:16.


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