After much research, I found what I needed to do was setup Postfix as a 'Null client'. This means there is no users to speak of and will only send out email. Though a bit fiddly, the main bulk of what is needed to do this can be found here:
There's exim too. Check with your VPS provider in case they already include a working installation of that, as well as what smtp server or relay to use in the hosting provider, if any.
If there's nothing like that, a crude solution for the PHP side is setting an smtp server in php.ini so that simple mail() will work outright.
发布评论
评论(2)
经过大量研究,我发现我需要做的是将 Postfix 设置为“空客户端”。这意味着没有用户可言,只会发送电子邮件。虽然有点繁琐,但执行此操作所需的主要内容可以在这里找到:
http: //www.postfix.org/STANDARD_CONFIGURATION_README.html#null_client
After much research, I found what I needed to do was setup Postfix as a 'Null client'. This means there is no users to speak of and will only send out email. Though a bit fiddly, the main bulk of what is needed to do this can be found here:
http://www.postfix.org/STANDARD_CONFIGURATION_README.html#null_client
还有exim。请咨询您的 VPS 提供商,看他们是否已包含该软件的有效安装,以及在托管提供商中使用的 smtp 服务器或中继(如果有)。
如果没有这样的情况,PHP 端的一个粗略解决方案是在 php.ini 中设置一个 smtp 服务器,以便简单的 mail() 可以直接工作。
There's exim too. Check with your VPS provider in case they already include a working installation of that, as well as what smtp server or relay to use in the hosting provider, if any.
If there's nothing like that, a crude solution for the PHP side is setting an smtp server in php.ini so that simple mail() will work outright.