我正在挖网,findconfigurationPostfix的最佳方式。
我不想安装一个完整的Postfix服务器,我唯一想要的是用PHP邮件()发送邮件。 我知道这可能是棘手的,垃圾邮件发送者喜欢错误configuration的邮件服务器。 所以,我正在寻找最好的方法来做到这一点。
我发现的最好的文档是Archlinux 。
但在几个博客上,我发现了一些更棘手的configuration
myhostname = foo.me mydestination = localhost mynetworks = 127.0.0.0/8 myorigin = /etc/mailname mydestination = sd-24300.com , localhost mail_owner = postfix smtpd_recipient_restrictions =reject_unknown_sender_domain,reject_non_fqdn_sender,reject_unknown_recipient_domain,reject_non_fqdn_recipient,permit_mynetworks,reject_unauth_destination,permit smtpd_data_restrictions =reject_unauth_pipelining,permit inet_interfaces = loopback-only
所以我的问题是很容易的,最好的办法是什么? 我最好的意思是更安全的一个。
Ps:我的服务器使用LAMP运行Ubuntu 12.04
使用nullmailer而不是Postfix,它是一个为此目的而devise的中继服务器。
它在universe回购中可用。
由于您使用的是Ubuntu,您可以使用以下命令从几个预定义的configuration中进行select:
sudo dpkg-reconfigure postfix
它应该有一个适合你的描述。