1

我需要认真的帮助。我上过 Google、Stackoverflow、Postfix 的网站和许多论坛。我被正式卡住了,我什至试图复制另一台机器的配置文件。

问题:

我正在尝试设置 Thunderbird 来接收邮件管理员的电子邮件。我想使用 Postfix 来做到这一点。

在 localhost、dev1.testdomain.com 和 dev2.testdomain.com 上有一个通过 Apache 托管的站点。

通常 localhost 和 dev2.testdomain.com 指向同一个托管应用程序(单...不重要)。

每个托管应用程序都有一个 web.config 文件,我们可以在其中设置一个指向 postmaster 电子邮件地址的属性。通常,该电子邮件地址与在 Thunderbird 中设置的接收所有邮政主管电子邮件的电子邮件地址相同。

更多信息:

Postmaster email needs to be: postmaster@mycomputer.com

Computer name: developmentmachine

Administrator User Account: developer

我尝试进行“ Maildir ”类型设置,但无法正常工作。

谁能给我一个关于如何实现这样的事情的分步说明?

我希望将发送到 postmaster@mycomputer.com 的邮件发送到开发人员UNIX帐户的Maildir* 。

请不要发布到其他网站的链接,因为我已经在 Google 上尝试了所有这些网站但无法正常工作。

或者有人可以告诉我我做错了什么吗?

我目前拥有的:

/etc/别名

postmaster:    developer

/etc/邮件名

mycomputer.com

Postfix 标准互联网站点安装。

/etc/postfix/main.cf

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

append_dot_mydomain = no

readme_directory = no

smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

myhostname = developmentmachine
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mycomputer.com, developmentmachine, localhost.localdomain, localhost
relayhost = 
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
home_mailbox = Maildir/
mailbox_command =
luser_relay = postmaster@mycomputer.com
notify_classes = bounce, 2bounce

更新:将文件复制到 Maildir/

必须进行 dovecot 安装才能将电子邮件发送到我的 Thunderbird。

http://www.server-world.info/en/note?os=Ubuntu_14.04&p=mail&f=2

我现在将去记录这个以供将来参考。

感谢您的关注和帮助。

4

1 回答 1

2

我使用以下配置进行了测试,并且可以正常工作。

#/etc/postfix/main.cf
#....
#....
alias_maps = hash:/etc/aliases 
alias_database = hash:/etc/aliases
mydestination = $myhostname, localhost.$mydomain, localhost, mycomputer.com
home_mailbox = Maildir/
#....
#....
#/etc/aliases
postmaster:    developer

按顺序运行以下命令

postalias /etc/aliases # to rebuild aliases map
service postfix reload 
echo "Hi Everyone"|mail -s "Test email" postmaster@mycomputer.com

我可以看到邮件发送到/home/developer/Maildir

于 2014-05-23T07:04:01.460 回答