MAMP Pro: Difference between revisions

From HaFrWiki42
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 12: Line 12:
</pre>
</pre>
The reason of these errors is located in the wrong binding to the ipv6 instead of the ipv4.
The reason of these errors is located in the wrong binding to the ipv6 instead of the ipv4.
To change this:
* Edit the file main.cf located in the /etc/postfix/main.cf in terminal.
* Type <pre>$ sudo nano /etc/postfix/main.cf</pre>
* Add the line <pre>inet_protocols = ipv4</pre>
* Save the file in nano.
* Stop postfix: <pre> sudo launchctl stop org.postfix.master</pre>
* Start postfix: <pre> sudo launchctl start org.postfix.master</pre>
* Now look in the mail.log <pre>tail -f -n 65 /var/log/mail.log</pre>


== See also ==
== See also ==

Revision as of 16:26, 28 May 2015

Mail

If you try to send a mail with MAMP Pro you will notice that this is not working out-of-the-box. MAMP Pro uses postfix as you can find on the last tab of the MAMP Pro app.

  • Just fill in 'gmail.com' at the Domain of outgoing mail and restart the server.
  • Now open the mail log file which is located in the /var/log directory and you will see:
May 28 16:09:39 Harms-MBP-3.fritz.box postfix/master[78220]: fatal: bind fe80::1 port 25: Can't assign requested address
May 28 16:09:49 Harms-MBP-3.fritz.box postfix/master[78221]: fatal: bind fe80::1 port 25: Can't assign requested address

The reason of these errors is located in the wrong binding to the ipv6 instead of the ipv4.

To change this:

  • Edit the file main.cf located in the /etc/postfix/main.cf in terminal.
  • Type
    $ sudo nano /etc/postfix/main.cf
  • Add the line
    inet_protocols = ipv4
  • Save the file in nano.
  • Stop postfix:
     sudo launchctl stop org.postfix.master
  • Start postfix:
     sudo launchctl start org.postfix.master
  • Now look in the mail.log
    tail -f -n 65 /var/log/mail.log

See also

top

Reference

top