我有一个正在运行的鸽舍:
$ dovecot -n
# 2.2.18: /etc/dovecot/dovecot.conf
# OS: Linux 4.1.0-x86_64-linode59 x86_64 Fedora release 22 (Twenty Two) ext4
auth_debug = yes
auth_mechanisms = plain login digest-md5 cram-md5
auth_verbose = yes
auth_verbose_passwords = yes
default_internal_user = root
imap_client_workarounds = delay-newmail tb-extra-mailbox-sep
mail_debug = yes
mail_location = maildir:/home/vmail/%d/%n/Maildir
maildir_very_dirty_syncs = yes
mbox_write_locks = fcntl
namespace {
inbox = yes
location =
prefix = INBOX.
separator = .
type = private
}
namespace inbox {
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
}
passdb {
args = /etc/dovecot/dovecot-sql.conf.ext
driver = sql
}
postmaster_address = pmatos
protocols = imap
quota_full_tempfail = yes
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0666
user = postfix
}
unix_listener auth-master {
mode = 0600
user = vmail
}
user = $default_internal_user
}
ssl = required
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
userdb {
args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes
driver = static
}
protocol lda {
auth_socket_path = /var/run/dovecot/auth-master
deliver_log_format = msgid=%m: %$
log_path = /home/vmail/dovecot-deliver.log
}
protocol imap {
mail_max_userip_connections = 100
}
我开始使用与 dovecot 运行在同一主机上的 imapfilter 来过滤我的电子邮件。因此,我想将电子邮件发送到名为 的文件夹,PreINBOX
以便 imapfilter 对电子邮件进行排序,并最终仅将有用的电子邮件发送到INBOX
.
如何更改收件箱 dovecot 递送至的名称?
答案1
你想要的可以通过重新配置dovecot来实现或后缀。
[您的评论中提到了 Podtfix ]
一个简单的修复方法是让 postfix 使用virtual
mailer 将新消息传递到/home/vmail/%d/%n/Maildir/.PreINBOX/
maildir。
Postfix 虚拟 MAILBOX 示例:单独的域、非 UNIX 帐户
[ 通过 postfix 直接投递到虚拟邮箱/maildir ]