Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 从MAMP和MAC OS设置POSTFIX或SENDMAIL_Php_Macos_Mamp_Sendmail_Postfix - Fatal编程技术网

Php 从MAMP和MAC OS设置POSTFIX或SENDMAIL

Php 从MAMP和MAC OS设置POSTFIX或SENDMAIL,php,macos,mamp,sendmail,postfix,Php,Macos,Mamp,Sendmail,Postfix,我想找人帮我配置POSTFIX或SENDMAIL从MAMP和MAC OS SIERRA,以便在本地测试PHPmail()。几天以来我一直在挣扎!但仍然无法使任何东西起作用 我尝试对MAMP使用的php.ini进行如下更改 然后我在/etc/postfix中修改了文件main.cf 我指定我是编码初学者;-) 感谢您的理解Postfix在Sierra基本上已被破坏 解决方案是升级到High Sierra。 或者这样说,你可以有一个正确的配置,但它不会在Sierra中工作 这里有更多的信息: 在ma

我想找人帮我配置
POSTFIX
SENDMAIL
MAMP
MAC OS SIERRA,以便在本地测试PHP
mail()
。几天以来我一直在挣扎!但仍然无法使任何东西起作用

我尝试对
MAMP
使用的
php.ini
进行如下更改

然后我在
/etc/postfix
中修改了文件
main.cf

我指定我是编码初学者;-)


感谢您的理解

Postfix在Sierra基本上已被破坏

解决方案是升级到High Sierra。

或者这样说,你可以有一个正确的配置,但它不会在Sierra中工作

这里有更多的信息:


在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
但我不确定:

compatibility_level = 2
这个帖子解决了这个问题