[Dovecot] user unknown with deliver

Nikolay Shopik shopik at inblock.ru
Thu Jul 16 17:16:12 EEST 2009


Charles Marcus wrote:
> On 7/16/2009 9:38 AM, Nikolay Shopik wrote:
>>>> I'm using GMAIL style saving sent items automatically, so email don't
>>>> send twice to server. First when sending via smtp, second when MUA
>>>> saving it to IMAP sent folder.
> 
>>> Hmmm... interesting idea...
>>>
>>> Are you having trouble with a working config after an upgrade? Or are
>>> you still in the process of trying to get it to work?
> 
>> Well its working if email address and authentication name are same and I
>> use such command line:
>> flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${sender}
>> -m Sent
>>
>> I can't say its Dovecot problem, I'm just curious if that problem of
>> Dovecot or I should post this to Postfix mailing list.
> 
> Care to share your configs (bothe dovecot and postfix sides) to make
> this work after *sending* an email? Since LDA is generally not invoked
> for sending/outbound, I'm curious how you invoke it?
> 

Nothing fancy.

# 1.0.15: /etc/dovecot/dovecot.conf
log_path: /var/log/dovecot.log
protocols: imap
ssl_ca_file: /etc/postfix/ca.crt
ssl_cert_file: /etc/postfix/chained.pem
ssl_key_file: /etc/postfix/mail.inblock.ru.key
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/imap-login
login_greeting_capability: yes
mail_location: maildir:/var/mail/store/%u
dotlock_use_excl: yes
maildir_copy_with_hardlinks: yes
namespace:
   type: public
   separator: /
   prefix: Pub/
   location: maildir:/var/mail/public
namespace:
   type: private
   separator: /
   inbox: yes
auth default:
   mechanisms: PLAIN CRAM-MD5
   passdb:
     driver: passwd-file
     args: /etc/dovecot/passwd
   userdb:
     driver: static
     args: uid=vmail gid=vmail home=/var/mail/store/%u
   socket:
     type: listen
     client:
       path: /var/spool/postfix/private/auth
       mode: 432
       user: postfix
       group: postfix
     master:
       path: /var/run/dovecot/auth-master
       mode: 438
       user: root
       group: root


postfix master.cf
smtp      inet  n       -       -       -       -       smtpd
submission inet n       -       -       -       -       smtpd
#  -o smtpd_enforce_tls=yes
#  -o smtpd_sasl_auth_enable=yes
   -o sender_bcc_maps=hash:/etc/postfix/sender_bcc
   -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps     inet  n       -       -       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#628      inet  n       -       -       -       -       qmqpd
dovecot   unix  -       n       n       -       -       pipe
   flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f 
${sender} -d ${recipient}
dov_loc   unix  -       n       n       -       -       pipe
   flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -m 
Pub/${mailbox}
copy2sent   unix  -       n       n       -       -       pipe
   flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d 
${sender} -m Sent
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       -       300     1       oqmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       -       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       -       -       -       smtp
         -o smtp_fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
retry     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache    unix  -       -       -       -       1       scache

postfix main.cf - is kinda huge share only dovecot related part

transport_maps = hash:/etc/postfix/transport

smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_authenticated_header = yes

dovecot_destination_recipient_limit = 1
virtual_transport = dovecot
virtual_mailbox_domains = inblock.ru
virtual_mailbox_maps = hash:/etc/postfix/vmailbox

#copy2sent
sender_bcc_maps = hash:/etc/postfix/sender_bcc



More information about the dovecot mailing list