我的后缀配置有问题。我已将其设置为从活动目录中获取用户和密码。几乎一切正常。我几乎可以为每个帐户发送和接收电子邮件。有一些例外。所有用户都有他们的姓氏作为用户名。现在,我让所有用户都拥有 [email protected] 的电子邮件帐户。这些地址有效,因为电子邮件地址的用户部分与用户名匹配。但是有些用户已经给出了[email protected]。这些都行不通。Postmap 显示正确的目录。
postmap -q [email protected] ldap://....
surname/Maildir/
postmap -q [email protected] ldap://....
surname/Maildir/
但是:maildrop 尝试投递到 /home/vmail/given_name.surname/Maildir/
postfix/pipe[30831]: 252B8161FC1: to=<[email protected]>, relay=maildrop, delay=71444, delays=71443/0.02/0/0.02, dsn=4.3.0, status=deferred (temporary failure. Command output: ERR: authdaemon: s_connect() failed: No such file or directory maildirmake: /home/vmail/given_name.surname/Maildir/.Junk: No such file or directory chmod: missing operand after `/home/vmail/given_name.surname/Maildir/.Junk' Try `chmod --help' for more information. bash: /home/vmail/given_name.surname/Maildir/courierimapsubscribed: No such file or directory maildirmake: /home/vmail/given_name.surname/Maildir/.Faxe: No such file or directory chmod: missing operand after `/home/vmail/given_name.surname/Maildir/.Faxe' Try `chmod --help' for more information. bash: /home/vmail/given_name.surname/Maildir/courierimapsubscribed: No such file or directory /usr/bin/maildrop: Unable to create a dot-lock at /home/vmail/given_name.surname/30936.0.server-s03. )
master.cf 中的配置:
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d vmail ${user}
有什么建议么?
发现了错误。这是 ldap-users.cf 和 ldap-alias.cf 的错误配置。
在 ldap-users.cf 我正在寻找属于该帐户的每个地址。因此,两封电子邮件都将用户“姓氏”作为帐户返回。诀窍是:ldap-users.cf 只能找到邮件“[email protected]”。邮件“[email protected]”应由 ldap-aliases.cf 找到,然后映射到“[email protected]”