[Dovecot] Problem with sieve

Cedric Jeanneret cjeanneret at internux.ch
Tue Mar 20 11:08:01 EET 2012


> > won't work as I also have a mailman on the same domain - and dovecot doesn't know about mailman lists... That's why I used virtual.
> > It _should_ take
> > transport_maps = hash:/etc/postfix/transport
> > which specify "use mailman for foo at domain.com" and "use dovecot for @domain.com" (at the end)... but doesn't seem to work as expected :(
> Once you have dovecot set up in your master.cf you should be able to put 
> as the last line simply
> domain.com dovecot
> What do your logs look like when this is set?
> 

I guess it may be easier if I paste my whole config in here:

postfix main.cf:
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = public_fqdn, localhost
mynetworks = 127.0.0.0/8
inet_interfaces = all
recipient_delimiter = +

smtpd_sasl_security_options = noanonymous
myorigin = domain.ltd
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot

owner_request_special = no

smtpd_tls_CAfile = /etc/postfix/ssl/ca.crt
smtpd_tls_cert_file = /etc/postfix/ssl/cert.crt
smtpd_tls_key_file = /etc/postfix/ssl/keyForApache2.key
smtpd_use_tls = yes
smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
smtpd_sasl_auth_enable = yes

default_process_limit = 5
smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/access, permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_unlisted_recipient
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache

broken_sasl_auth_clients = yes
transport_maps = hash:/etc/postfix/transport

virtual_transport = dovecot
transport_maps = hash:/etc/postfix/transport
virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf, hash:/var/lib/mailman/data/virtual-mailman
virtual_gid_maps = static:104
virtual_minimum_uid = 8
virtual_uid_maps = static:8
virtual_mailbox_base = /
mailman_destination_recipient_limit = 1
virtual_mailbox_domains = avocats-ch.ch
virtual_mailbox_maps = ldap:/etc/postfix/ldap-accounts.cf


With this configuration, here's what I get:
sending to a virtual user:
Mar 20 10:02:48 sqdf3 postfix/smtpd[1525]: connect from remote.host.ltd[...]
Mar 20 10:02:48 sqdf3 postfix/smtpd[1525]: improper command pipelining after EHLO from remote.host.ltd[...]
Mar 20 10:02:48 sqdf3 postfix/smtpd[1525]: DC9285659F4: client=remote.host.ltd[...]
Mar 20 10:02:48 sqdf3 postfix/cleanup[1528]: DC9285659F4: message-id=<>
Mar 20 10:02:49 sqdf3 postfix/qmgr[1462]: DC9285659F4: from=<me at me.ltd>, size=279, nrcpt=1 (queue active)
Mar 20 10:02:49 sqdf3 dovecot: deliver(camptocamp): msgid=: saved mail to INBOX
Mar 20 10:02:49 sqdf3 postfix/pipe[1529]: DC9285659F4: to=<virtual_user at domain.ltd>, relay=dovecot, delay=0.45, delays=0.18/0.01/0/0.26, dsn=2.0.0, status=sent (delivered via dovecot service)
Mar 20 10:02:49 sqdf3 postfix/qmgr[1462]: DC9285659F4: removed

so it uses dovecot. but mail is not filtered as it should :((

And now, sending a mail to a mailman list:
Mar 20 10:06:25 sqdf3 postfix/smtpd[1525]: connect from remote.host.ltd[...]
Mar 20 10:06:25 sqdf3 postfix/smtpd[1525]: improper command pipelining after EHLO from remote.host.ltd[...]
Mar 20 10:06:25 sqdf3 postfix/smtpd[1525]: NOQUEUE: reject: RCPT from remote.host.ltd[...]: 550 5.1.1 <my-list at domain.ltd>: Recipient address rejected: User unknown in virtual mailbox table; from=<me at me.ltd> to=<my-list at domain.ltd> proto=ESMTP helo=<remote.host.ltd>
Mar 20 10:06:25 sqdf3 postfix/smtpd[1525]: warning: non-SMTP command from remote.host.ltd[...]: Subject: testing mailman
Mar 20 10:06:25 sqdf3 postfix/smtpd[1525]: disconnect from remote.host.ltd[...]

may I cry ? :(



More information about the dovecot mailing list