Hello folks,
I was trying to set up Dovecot deliver LDA instead of Postfix default
virtual LDA
In Postfix main.cf I specified:
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
In Postfix master.cf  I entered:
dovecot   unix  -       n       n       -       -       pipe
        user=mailer flags=DRhu
argv=/usr/local/mail/libexec/dovecot/deliver -f ${sender} -d ${recipient}
In Dovecot dovecot.conf  I have the following entries:
passdb sql {
    args = /etc/dovecot/dovecot-sql.conf
}
userdb prefetch {
}
userdb sql {
    args = /etc/dovecot/dovecot-sql.conf
}
In Dovecot dovecot-sql.conf  I have this:
user_query = SELECT maildir as mail FROM dovecot_email_maps WHERE email
= '%u'
password_query = SELECT user, password, userdb_uid, userdb_gid,
userdb_home, userdb_mail FROM dovecot_user_maps WHERE user = '%n'
After reloading postfix and restarting dovecot I'm getting this type of
warnings in dovecot.err log:
May 04 10:43:10 deliver(some_address at some_domain.com): Error: userdb
lookup: connect(/var/run/dovecot//auth-master) failed: No such file or
directory
Could somebody please help me to resolve this mistery.
What am I missing ether in configuration file or somewhere else?
Many thanks in advance,
Alex
Il 04/05/2010 23:14, Alex ha scritto:> Hello folks, > I was trying to set up Dovecot deliver LDA instead of Postfix default > virtual LDA > > > May 04 10:43:10 deliver(some_address at some_domain.com): Error: userdb > lookup: connect(/var/run/dovecot//auth-master) failed: No such file or > directory >Hello, I think you are missing the master authentication socket in yout dovecot.conf http://wiki.dovecot.org/LDA Under Virtual users: auth default { .. socket listen { # Note that we're setting a master socket. SMTP AUTH for Postfix and Exim uses client sockets. master { # Typically under base_dir/, if not the directory must be created. path = /var/run/dovecot/auth-master # Auth master socket can be used to look up userdb information for # given usernames. This probably isn't very sensitive information # for most systems, but still try to restrict the socket access if possible. mode = 0600 user = vmail # User running deliver #group = mail # Or alternatively mode 0660 + deliver user in this group } } .. }
bugger sent that direct, please send that output to the list :) On Wed, 2010-05-05 at 09:04 +1000, Noel Butler wrote:> Alex, > > Please show the output of dovecot -n > > > On Tue, 2010-05-04 at 15:23 -0700, Alex wrote: > > > Thanks for the hint. > > > > I enabled 'socket listen' it in dovecot.conf as you pointed it out. > > > > Now dovecot.err log has these error messages: > > > > May 04 14:57:19 deliver(user1 at some_domain.com): Error: User > > user1 at some_domain.com is missing UID (set mail_uid) > > May 04 14:57:19 deliver(user2 at some_domain.com): Error: User > > user2 at some_domain.com is missing UID (set mail_uid) > > May 04 14:57:25 deliver(user3 at some_domain.com): Error: User > > user3 at some_domain.com is missing UID (set mail_uid) > > > > > > I tried to set necessary mail_uid in dovecot-sql.conf in user_query: > > > > user_query = SELECT maildir as mail, 51 as userdb_uid, 51 as > > userdb_gid, > > 51 as mail_uid FROM dovecot_email_maps WHERE email = '%u' > > > >-------------- next part -------------- A non-text attachment was scrubbed... Name: stock_smiley-1.png Type: image/png Size: 873 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20100505/e78edadf/attachment-0002.png>
Hello Noel,
dovecot -n shows this:
# 1.2.11: /etc/mail/dovecot.conf
# OS: Linux 2.6.32.8-cluster x86_64 openSUSE 11.2 (x86_64)
base_dir: /var/run/dovecot/
log_path: /var/log/dovecot.err
info_log_path: /var/log/dovecot.info
protocols: imaps pop3s
listen: 333.33.33.33
ssl_listen: 333.33.33.33
ssl_ca_file: /etc/postfix/tls/cacert.pem
ssl_cert_file: /etc/postfix/tls/cert.pem
ssl_key_file: /etc/postfix/tls/key.pem
ssl_key_password: mailswamp
ssl_cipher_list: ALL:!LOW
login_dir: /var/run/dovecot/login
login_executable(default): /usr/local/mail/libexec/dovecot/imap-login
login_executable(imap): /usr/local/mail/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/mail/libexec/dovecot/pop3-login
login_user: mailer
login_greeting: Dovecot Ready.
login_max_processes_count: 256
first_valid_uid: 51
last_valid_uid: 51
first_valid_gid: 51
last_valid_gid: 51
maildir_stat_dirs: yes
maildir_copy_preserve_filename: yes
mail_executable(default): /usr/local/mail/libexec/dovecot/imap
mail_executable(imap): /usr/local/mail/libexec/dovecot/imap
mail_executable(pop3): /usr/local/mail/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/local/mail/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/mail/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/mail/lib/dovecot/pop3
auth default:
  mechanisms: plain digest-md5 cram-md5
  passdb:
    driver: sql
    args: /etc/mail/dovecot-sql.conf
  userdb:
    driver: prefetch
  userdb:
    driver: static
    args: uid=51 gid=51
  socket:
    type: listen
    master:
      path: /var/run/dovecot/auth-master
      mode: 384
      user: mailer
      group: mailer
Please let me know if I should provide any additional data.
Thanks again,
Alex
On 05/04/10 16:06, Noel Butler wrote:> bugger sent that direct, please send that output to the list :)
>
>
> On Wed, 2010-05-05 at 09:04 +1000, Noel Butler wrote:
>
>   
>> Alex,
>>
>> Please show the output of dovecot -n
>>
>>
>> On Tue, 2010-05-04 at 15:23 -0700, Alex wrote: 
>>
>>     
>>> Thanks for the hint.
>>>
>>> I enabled 'socket listen' it in dovecot.conf as you pointed
it out.
>>>
>>> Now dovecot.err log has these error messages:
>>>
>>> May 04 14:57:19 deliver(user1 at some_domain.com): Error: User
>>> user1 at some_domain.com is missing UID (set mail_uid)
>>> May 04 14:57:19 deliver(user2 at some_domain.com): Error: User
>>> user2 at some_domain.com is missing UID (set mail_uid)
>>> May 04 14:57:25 deliver(user3 at some_domain.com): Error: User
>>> user3 at some_domain.com is missing UID (set mail_uid)
>>>
>>>
>>> I tried to set necessary mail_uid in dovecot-sql.conf in
user_query:
>>>
>>> user_query = SELECT maildir as mail, 51 as userdb_uid, 51 as
>>> userdb_gid,
>>> 51 as mail_uid FROM dovecot_email_maps WHERE email = '%u'
>>>
>>>       
>>
>>     
>