【问题标题】:Set up postmaster using Postfix on Ubuntu 14.04在 Ubuntu 14.04 上使用 Postfix 设置 postmaster
【发布时间】:2014-05-22 03:50:12
【问题描述】:

我需要认真的帮助。我上过 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 的邮件发送到 developer UNIX 帐户的 Maildir*

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

或者谁能告诉我我做错了什么?

我目前拥有的:

/etc/别名

postmaster:    developer

/etc/mailname

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

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

感谢您的关注和帮助。

【问题讨论】:

  • 你能把你的要求说清楚吗?类似于“发送到postmaster@mycomputer.com 的邮件应发送到Maildirdeveloper UNIX 帐户”
  • 我已将其包含在问题中

标签: localhost installation postfix-mta ubuntu-14.04 dovecot


【解决方案1】:

我使用以下配置进行了测试,并且成功了。

#/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

【讨论】:

  • 我会试一试的。
  • 这行得通,所以已经完成了一半,但是如何在 Thunderbird 中获得它?我的应用程序将它传送到 Maildir/new。现在我需要把它送到 Thunderbird 并将它传送到 Maildir/cur。
  • 看来我需要安装 Dovecot 才能将 ti 加载到 Thunderbird 中
  • 使用POP3/IMAP 服务器,您可以从任何电子邮件客户端访问您的电子邮件,而不仅仅是Thunderbird
猜你喜欢
  • 1970-01-01
  • 2015-03-24
  • 2018-07-21
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-02-24
相关资源
最近更新 更多