[Dovecot] LDA not being called by postfix?
Luca Corti
cortez at tiscali.it
Thu May 11 02:02:34 EEST 2006
Hello,
I'm using Postfix with virtual domains (MySQL), Dovecot 1.0beta7 and CVS
LDA. I've set up postfix to use the LDA for maildir delivery and defined
a global sieve script.
-- master.cf --
...
dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/deliver -d
${recipient}
...
-- main.cf --
smtpd_banner = $myhostname ESMTP
append_dot_mydomain = no
relayhost =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
program_directory = /usr/lib/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
soft_bounce = yes
message_size_limit = 15728640
biff = no
myhostname = mail.example.com
mydomain = example.com
myorigin = /etc/mailname
mynetworks = 127.0.0.0/8 1.2.3.8/29 192.168.0.0/24
mydestination = $myhostname localhost localhost.localdomain
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
local_recipient_maps = proxy:unix:passwd.byname $alias_maps
local_transport = local
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains =
proxy:mysql:/etc/postfix/maps/mysql_virtual_domains_maps.cf
virtual_mailbox_maps =
mysql:/etc/postfix/maps/mysql_virtual_mailbox_maps.cf
virtual_alias_maps =
proxy:mysql:/etc/postfix/maps/mysql_virtual_alias_maps.cf
proxy:mysql:/etc/postfix/maps/mysql_virtual_mailbox_maps.cf
virtual_uid_maps = static:1234
virtual_gid_maps = static:1234
virtual_minimum_uid = 1001
dovecot_destination_recipient_limit = 1
virtual_transport = dovecot
relay_domains =
proxy:mysql:/etc/postfix/maps/mysql_relay_domains_maps.cf
relay_transport = relay
transport_maps = proxy:mysql:/etc/postfix/maps/mysql_transport_maps.cf
relocated_maps =
proxy:mysql:/etc/postfix/maps/mysql_virtual_relocated_maps.cf
smtpd_helo_required = yes
disable_vrfy_command = yes
strict_rfc821_envelopes = yes
smtpd_recipient_restrictions =
reject_unknown_sender_domain,
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
reject_rbl_client sbl.spamhaus.org,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client dul.dnsbl.sorbs.net
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
content_filter = smtp-amavis:[127.0.0.1]:10024
-- dovecot.conf --
protocols = imap imaps pop3 pop3s
ssl_cert_file = /etc/postfix/smtpd.cert
ssl_key_file = /etc/postfix/smtpd.key
disable_plaintext_auth = no
syslog_facility = mail
login_greeting = Server ready.
default_mail_env = maildir:/var/vmail/%d/%n/Maildir
protocol lda {
module_dir = /usr/local/lib/dovecot/lda
postmaster_address = postmaster at example.com
global_script_path = /var/vmail/sieve.script
auth_socket_path = /var/run/dovecot-auth-master
}
protocol imap {
login_executable = /usr/local/libexec/dovecot/imap-login
mail_executable = /usr/local/libexec/dovecot/imap
login_greeting_capability = yes
imap_client_workarounds = outlook-idle delay-newmail
}
protocol pop3 {
login_executable = /usr/local/libexec/dovecot/pop3-login
mail_executable = /usr/local/libexec/dovecot/pop3
pop3_uidl_format = %08Xu%08Xv
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
}
auth_executable = /usr/local/libexec/dovecot/dovecot-auth
auth_default_realm = example.com
auth default {
mechanisms = plain digest-md5 cram-md5
socket listen {
master {
path = /var/run/dovecot-auth-master
mode = 0660
user = vmail
group = vmail
}
}
passdb sql {
args = /usr/local/etc/dovecot-sql.conf
}
userdb static {
args = uid=1234 gid=1234 home=/var/vmail/%d/%n/Maildir
}
}
-- sieve.script --
require [ "fileinto" ];
if headers :contains "To" "luca at example.com" {
fileinto "Spam";
}
In my postfix logs I get
May 11 00:59:50 ns1 postfix/virtual[9675]: 5E114847BC:
to=<luca at example.com>, relay=virtual, delay=0, status=sent (delivered to
maildir)
and the message is there but no filtering is done and the sieve script
is not compiled.
--
Luca Corti
PGP Key ID 1F38C091
Adesso dico: "Amore."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20060511/904ca2ee/attachment-0001.pgp
More information about the dovecot
mailing list