I'm using MAMP PRO 5.5.1 (17995)
on my Mac that runs with macOS Mojave 10.14.6 (18G1012)
.
I included Postfix service in GroupStart, and inserted a domain for outgoing emails. (I also tried with and without Smart host, but this didn't change anything.)
When trying to send an e-mail with PHP mail()
function, there's no error but the e-mail never gets send.
In Terminal app I tried:
mailq
results to: postqueue: fatal: Queue report unavailable - mail system is down
sudo postfix reload
outputs the following:
postfix: Postfix is running with backwards-compatible default settings
postfix: See http://www.postfix.org/COMPATIBILITY_README.html for details
postfix: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
/usr/sbin/postconf: warning: /etc/postfix/main.cf: unused parameter: mydomain_fallback=localhost
postfix/postfix-script: fatal: the Postfix mail system is not running
Although it says that the mails system is down, I'm able to send command to send a mail: date | mail -s test mail@example.com
. There's no error, just a new line, as usual. But I still don't get the e-mail.
When trying mailq
again, I get the following:
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
172D118CDB9 163 Thu Nov 21 18:31:29 david
mail@example.com
I already googled a lot but without success. Most manuals for configuring Postfix don't help because it seems that MAMP already did the configurations.
Does anybody have an idea what I can do?