我已经用筛子设置了鸽舍:
protocol lda {
# Address to use when sending rejection mails.
#postmaster_address = [email protected]
# Hostname to use in various parts of sent mails, eg. in Message-Id.
# Default is the system's real hostname.
#hostname =
log_path = /var/mail/dovecot-deliver.log
info_log_path = /var/mail/dovecot-deliver.log
# Support for dynamically loadable plugins. mail_plugins is a space separated
# list of plugins to load.
mail_plugins = cmusieve
mail_plugin_dir = /usr/lib/dovecot/modules/lda
# If user is over quota, return with temporary failure instead of
# bouncing the mail.
#quota_full_tempfail = no
# Format to use for logging mail deliveries. You can use variables:
# %$ - Delivery status message (e.g. "saved to INBOX")
# %m - Message-ID
# %s - Subject
# %f - From address
#deliver_log_format = msgid=%m: %$
# Binary to use for sending mails.
#sendmail_path = /usr/lib/sendmail
# Subject: header to use for rejection mails. You can use the same variables
# as for rejection_reason below.
#rejection_subject = Automatically rejected mail
# Human readable error message for rejection mails. You can use variables:
# %n = CRLF, %r = reason, %s = original subject, %t = recipient
#rejection_reason = Your message to <%t> was automatically rejected:%n%r
# UNIX socket path to master authentication server to find users.
#auth_socket_path = /var/run/dovecot/auth-master
}
我已经启用它:
protocols = imap imaps managesieve lda
我已经验证它/usr/lib/dovecot/modules/lda/
存在,并且里面有文件:
ls
lib01_acl_plugin.so lib11_trash_plugin.so lib20_fts_plugin.so lib90_cmusieve_plugin.a
lib10_quota_plugin.so lib20_convert_plugin.so lib20_mail_log_plugin.so lib90_cmusieve_plugin.la
lib11_autocreate_plugin.so lib20_expire_plugin.so lib21_fts_squat_plugin.so lib90_cmusieve_plugin.so
我调整了后缀,以便通过 LDA 进行交付:
dovecot unix - n n - - pipe
flags=DRhu user=:5000:5000 argv=/usr/lib/dovecot/deliver -d ${recipient}
而且我已经为要使用的域设置了传输映射dovecot:
。
我重新启动了 dovecot,但从未在日志中看到有关 cmusieve 的任何内容。我应该寻找什么来解决这个问题?
尝试设置:
并在尝试投递邮件时检查它记录的内容。
还要确保如果您正在登录到 syslog,则需要写入 syslog 套接字(通常是 /dev/log),检查传递是否具有写入权限。
如果您正在登录 Dovecot 的默认日志文件,则需要为日志文件提供足够的写入权限以进行交付。
如果您发布日志,帮助找出问题会容易得多。