使用postfix,dovecot,mailman和ldap设置邮件服务器

我真的没有太多的邮件服务器经验,所以如果我的一些术语closures,请原谅我。

首先,这是我想要做的:

  1. 使用ldappostfix?)获取用户信息
    • 单独的用户账户和ml账户(ml账户可以预定义)
  2. 送给ML(邮递员)
    • 将序号添加到主题
    • 将ML线轴保存在/ mnt / ml / {ml-name} / spool中
    • 使用ldap扩展ML
    • 交付给用户(步骤3)[通过后缀?]
  3. 交付给用户(dovecot-lda)
    • 保存/ mnt / mail / {用户名} /

有几个组件我的问题。

邮差/ LDAP:

  1. 是否可以使用Mailman来使用ldap获取ML的订阅者?
    • (从我研究过的,看起来好像我需要用脚本来同步Mailman和ldap,但是我想确认一下)

邮差

  1. 我认为将序列号添加到电子邮件主题是可能的,但我无法find任何信息。 有人可以帮我出来,或告诉我我应该谷歌?

  2. 将ML电子邮件保存在自定义目录中。 说实话,我并没有真正的看上去,而是一个快速的指针,告诉我它在哪里做的将有助于一堆。

后缀/达夫科特/ LDAP:

  1. 我一直在试图把所有用户的邮件(使用ldap得到)放到一个自定义挂载目录/ mnt / mail / {user-name} /中。 我想我需要使用虚拟邮箱,但是我没有成功。 正在使用dovecot-lda正确的方式来做到这一点?

我知道我问了很多,但是如果人们能够回答这四个问题中的任何一个,或者告诉我,如果我在理解每个组件所扮演的angular色时犯了错误,那么这对我们来说会有帮助。

谢谢!

艾伦

假设你正在尝试将邮件路由到一个邮递员列表,这里有几个你可以适应的难题。 首先,一些LDAP:

# mailroute, system, mydomain.net dn: ou=mailroute,ou=system,dc=mydomain,dc=net objectClass: top objectClass: organizationalUnit ou: mailroute # forward0, mailroute, system, mydomain.net dn: cn=forward0,ou=mailroute,ou=system,dc=mydomain,dc=net objectClass: top objectClass: MailForwardOnly cn: forward0 MailAlternateAddress: [email protected] MailAlternateAddress: [email protected] MailAlternateAddress: [email protected] MailForwardingAddress: [email protected] displayName: RFC emails to system administrator 

那么,一些Postfixconfiguration:

  /etc/postfix/main.cf: relay_domains = lists.mydomain.net virtual_mailbox_domains = mydomain.net virtual_mailbox_maps = proxy:ldap:/etc/postfix/ldap/virtual_mailbox_maps.cf /etc/postfix/transport: lists.mydomain.net mailman: /etc/postfix/ldap/virtual_mailbox_maps.cf: version = 3 server_host = ldaps://a.mydomain.net:636 search_base = ou=people,dc=mydomain,dc=net query_filter = (&(objectClass=*)(mail=%s)) result_attribute = uid bind = yes bind_dn = cn=postfix,ou=applications,ou=system,dc=mydomain,dc=net bind_pw = czczczcz