[Dovecot] problem to configuration dovecot and postfix

Akihiko Sato dvorak at cosign.jp
Thu Apr 5 10:48:45 EEST 2012


Hi,

I'm having a problem with dovecot and postfix. I'm using a dovecot
version 2.0.13.
Postfix (Version: 2.8.5) config is changed according to the
http://wiki2.dovecot.org/LDA/Postfix:

I have thought to build a virtual user and virtual mailbox, and use
the functionality of the Sieve.
However, when the test set, the mail not received the mailbox. Record
that there was a "temporary
failure" in the log of Postfix.

It delivered and to change the "virtual" to "dovecot", I think that's
a matter of dovecot.

To ensure that mail is delivered as intended, will How do I?
Can anyone give me a hint what to do?

# doveconf -n:
# 2.0.13: /etc/dovecot/dovecot.conf
# OS: Linux 3.0.0-12-server x86_64 Ubuntu 11.10 ext4
auth_debug = yes
auth_debug_passwords = yes
auth_verbose = yes
disable_plaintext_auth = no
info_log_path = /var/log/dovecot-info.log
lda_mailbox_autosubscribe = yes
listen = *
log_path = /var/log/dovecot.log
mail_debug = yes
mail_location = maildir:/var/mail/vhosts/%d/%n
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope
encoded-character vacation subaddress comparator-i;ascii-numeric
relational regex imap4flags copy include variables bo
dy enotify environment mailbox date
namespace {
  inbox = yes
  list = yes
  location =
  prefix = INBOX/
  separator = /
  subscriptions = yes
  type = private
}
namespace {
  hidden = no
  list = yes
  location = maildir:/var/mail/shared/:INDEX=/var/mail/vhosts/%d/%n/shared/:CONTROL=/var/mail/vhosts/%d/%n/shared/
  prefix = &UXFnCQ-/
  separator = /
  subscriptions = yes
  type = public
}
passdb {
  args = /etc/auth/passwd.main
  driver = passwd-file
}
passdb {
  args = username_format=%n /etc/auth/%d/passwd
  driver = passwd-file
}
passdb {
  driver = pam
}
plugin {
  sieve = /var/mail/vhosts/%d/%n/_dovecot.sieve
  sieve_dir = /var/mail/vhosts/%d/%n/sieve/
}
postmaster_address = postmaster at dom3.gs3
protocols = imap sieve
service auth {
  user = root
}
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
  driver = passwd
}
userdb {
  args = /etc/auth/passwd.main
  driver = passwd-file
}
userdb {
  args = username_format=%n /etc/auth/%d/passwd
  driver = passwd-file
}
userdb {
  driver = passwd
}
protocol imap {
  mail_plugins = autocreate
}
protocol lda {
  mail_plugins = " sieve"
}

# postconf -n:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
default_transport = error
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = all
mailbox_command = /usr/lib/dovecot/deliver -c
/etc/dovecot/conf.d/01-mail-stack-delivery.conf -m "${EXTENSION}"
mailbox_size_limit = 1300000000
message_size_limit = 130000000
mydestination = qbu.example.com, qbu, localhost.localdomain, localhost
myhostname = qbu
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relay_transport = error
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = reject_unknown_sender_domain,
reject_unknown_recipient_domain, reject_unauth_pipelining,
permit_mynetworks, permit_sasl_authenticated,
reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/dovecot-auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = reject_unknown_sender_domain
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/certs/ssl-mail.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-mail.key
smtpd_tls_mandatory_ciphers = medium
smtpd_tls_mandatory_protocols = SSLv3, TLSv1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_gid_maps = static:5000
virtual_mailbox_base = /var/mail/vhosts
virtual_mailbox_domains = hash:/etc/postfix/vmaildomains
virtual_mailbox_limit = 1300000000
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 100
virtual_transport = dovecot
virtual_uid_maps = static:5000

/etc/postfix/master.cf:
+ dovecot   unix  -       n       n       -       -       pipe
+   flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/dovecot-lda -f
${sender} -d ${recipient}

/var/log/mail.log:
Apr  5 16:38:36 qbu postfix/pickup[25470]: BDC3221212: uid=0 from=<root>
Apr  5 16:38:36 qbu postfix/cleanup[25500]: BDC3221212:
message-id=<20120405073836.BDC3221212 at qbu>
Apr  5 16:38:36 qbu postfix/qmgr[25471]: BDC3221212:
from=<root at qbu.example.com>, size=230, nrcpt=1 (queue active)
Apr  5 16:38:36 qbu postfix/pipe[25502]: BDC3221212:
to=<a at example.com>, relay=dovecot, delay=0.04, delays=0.02/0/0/0.02,
dsn=4.3.0, status=deferred (temporary failure)

Regards,
Akihiko


More information about the dovecot mailing list