[英]Setting of POSTFIX or SENDMAIL from MAMP and MAC OS SIERRA
I am looking for someone to help me to configure POSTFIX
or SENDMAIL
from MAMP
and MAC OS SIERRA in order to test PHP mail()
locally. 我找人帮我配置
POSTFIX
或SENDMAIL
从MAMP
和MAC OS SIERRA为了测试PHP mail()
在本地。 I am struggling since few days ! 几天来我一直在挣扎! But still unable to make anything working.
但是仍然无法使任何事情起作用。
I do try some change in php.ini
used by MAMP
as follows. 我确实尝试对
MAMP
使用的php.ini
进行如下更改。
Then I modified the file main.cf
in /etc/postfix
. 然后,我在
/etc/postfix
修改了文件main.cf
I specify I am beginner in coding ;-) 我指定我是编码初学者;-)
Thanks for your understanding 感谢您的理解
Postfix is basically broken in Sierra. 在Sierra中,Postfix基本上已被破坏。
Solution is to upgrade to High Sierra. 解决方案是升级到High Sierra。
Or put it this way, you can have a correct config, and it will not work, in Sierra. 或这样说,您可以在Sierra中拥有正确的配置,并且该配置将不起作用。
Here's a little more information: 这里是更多信息:
https://unix.stackexchange.com/questions/412895/how-to-fix-postfix-on-macos-sierra-10-12-6?rq=1&newreg=d74c5f8df597424a861a6adc81e68faa https://unix.stackexchange.com/questions/412895/how-to-fix-postfix-on-macos-sierra-10-12-6?rq=1&newreg=d74c5f8df597424a861a6adc81e68faa
Adding this line in the main.cf solved the same problem on Sierra 10.12.6 在main.cf中添加此行可解决Sierra 10.12.6上的相同问题
smtp_tls_security_level = may
smtp_tls_loglevel = 1
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
and this but I am not sure: 这,但我不确定:
compatibility_level = 2
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.