[Dovecot] Dovecot delivering mail in the wrong directory location

Tjerk Wolterink tjerkw at gmail.com
Thu Jul 9 17:46:03 EEST 2009


Hello everybody,my new server is setup with postfix as a MTA and dovecot as
a MDA,
mysql is used as a user db, and postfixadmin is used to setup accounts.
Login via pop works fine, also sending via smtp works fine.

HOWEVER: when i sent a mail by hand via smtp it is delivered in the wrong
directory.

For example for test at xdatasystem.com i have the following directory:
/home/vmail/xdatasystem.com/test

However the mail is delivered to this directory:
/home/vmail/test at xdatasystem.com/

I cannot figure this out as dovecot is correctly configured. ( think)
Here is the important part of my dovecot.conf (sorry for the indents):

=== DOVECOT.CONF ===
*disable_plaintext_auth = no*
*log_timestamp = "%Y-%m-%d %H:%M:%S "*
*mail_location = maildir:/home/vmail/%d/%n/Maildir*
*mail_access_groups = vmail*
*first_valid_uid = 100*
*first_valid_gid = 100*
*
*
*protocol imap {*
*}*
*
*
*protocol pop3 {*
*pop3_uidl_format = %08Xu%08Xv*
*}*
*auth default {*
*mechanisms = digest-md5 plain*
*passdb sql {*
*args = /etc/dovecot/dovecot-sql.conf*
*}*
*#userdb sql {*
*#args = /etc/dovecot/dovecot-sql.conf*
*#}*
*
*
*userdb static {*
*args = uid=vmail gid=vmail home=/home/vmail/%d/%n*
*      }*
*
*
*user = root*
*}*
=== DOVECOT.CONF ===


Has anybody a clue?
Maybe is postfix not correctly forwarding mails to dovecat?

"Here is my postfix master.cf:
=== MASTER.CF ===
smtp      inet  n       -       -       -       -       smtpd
#submission inet n       -       -       -       -       smtpd
#  -o smtpd_tls_security_level=encrypt
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#smtps     inet  n       -       -       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#628      inet  n       -       -       -       -       qmqpd
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
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       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
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
dovecot   unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f {$sender} -d
${recipient}

# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main## See the Postfix UUCP_README file for configuration
details.
#
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail
($recipient)
#
# Other external delivery methods.
#
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender
$recipient
scalemail-backend unix  -       n       n       -       2       pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
${nexthop} ${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}
cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}



-- 
--
Tjerk Wolterink @ GMail


More information about the dovecot mailing list