E-Mails auf dem Mac mit XAMPP senden: Unterschied zwischen den Versionen

Aus Wikizone
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „Auf dem Mac gibt es das Unix Programm postfix, das man so Konfigurieren kann, dass es die PHP Mails von XAMPP versendet. Im XAMPP Paket muß man dann nichts mehr …“)
 
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 1: Zeile 1:
 +
Siehe auch [[Postfix auf Mac OS]]
 +
 
Auf dem Mac gibt es das Unix Programm postfix, das man so Konfigurieren kann, dass es die PHP Mails von XAMPP versendet. Im XAMPP Paket muß man dann nichts mehr ändern, da es ohnehin das System nutzt.
 
Auf dem Mac gibt es das Unix Programm postfix, das man so Konfigurieren kann, dass es die PHP Mails von XAMPP versendet. Im XAMPP Paket muß man dann nichts mehr ändern, da es ohnehin das System nutzt.
  
Zeile 7: Zeile 9:
 
Lion, SMTP Postfix Relay, and Dreamhost
 
Lion, SMTP Postfix Relay, and Dreamhost
 
Published on September 10, 2011 in General. 9 Comments
 
Published on September 10, 2011 in General. 9 Comments
 +
 
When developing web-apps locally it is useful to have a fully functional smtp server to test automated emails associated with your application. Many times the network you are developing on will not allow you to simply start up postfix and and run your own local smtp server. However, this doesn’t imply that you can’t use postfix – modifying postfix to relay all outgoing mail to an external / offsite smtp server that you have control of will enable you to develop & test the parts of your application that require a local outgoing smtp server without an issue.
 
When developing web-apps locally it is useful to have a fully functional smtp server to test automated emails associated with your application. Many times the network you are developing on will not allow you to simply start up postfix and and run your own local smtp server. However, this doesn’t imply that you can’t use postfix – modifying postfix to relay all outgoing mail to an external / offsite smtp server that you have control of will enable you to develop & test the parts of your application that require a local outgoing smtp server without an issue.
  
Many times port 25 (the default smtp port) will be blocked somewhere along the line in your network connection. You can figure out if your network configuration or ISP is blocking port 25 by running
+
Many times '''port 25 (the default smtp port) will be blocked''' somewhere along the line in your network connection. You can figure out if your network configuration or ISP is blocking port 25 by running
  
 
<pre>
 
<pre>
Zeile 15: Zeile 18:
 
</pre>
 
</pre>
  
Edit /etc/postfix/main.cf
+
Edit '''/etc/postfix/main.cf'''
  
 
  relayhost = [mail.domain.com]:587
 
  relayhost = [mail.domain.com]:587
Zeile 23: Zeile 26:
 
  smtp_use_tls = yes
 
  smtp_use_tls = yes
  
Create/edit /etc/postfix/sasl_passwd
+
Create/edit '''/etc/postfix/sasl_passwd'''
  
 
  [mail.domain.com]:587 username@domain.com:password
 
  [mail.domain.com]:587 username@domain.com:password
Zeile 36: Zeile 39:
 
  mail -s "Testing, Testing" you@domain.com
 
  mail -s "Testing, Testing" you@domain.com
  
References:
+
Hinweis:
Debian Postfix Docs
+
 
Remote SMTP on Linux
+
In der Postfix Konfiguration steht auch wo die Mails gespeichert werden, der Debugger sitzt etc.
Postfix SMTP Auth Support for Relayhost
 
Port 25 Blocking
 

Aktuelle Version vom 9. Dezember 2014, 08:25 Uhr

Siehe auch Postfix auf Mac OS

Auf dem Mac gibt es das Unix Programm postfix, das man so Konfigurieren kann, dass es die PHP Mails von XAMPP versendet. Im XAMPP Paket muß man dann nichts mehr ändern, da es ohnehin das System nutzt.

So geht es:

Quelle: http://mabblog.com/blog/2011/09/lion-smtp-postfix-relay-and-dreamhost/

Lion, SMTP Postfix Relay, and Dreamhost Published on September 10, 2011 in General. 9 Comments

When developing web-apps locally it is useful to have a fully functional smtp server to test automated emails associated with your application. Many times the network you are developing on will not allow you to simply start up postfix and and run your own local smtp server. However, this doesn’t imply that you can’t use postfix – modifying postfix to relay all outgoing mail to an external / offsite smtp server that you have control of will enable you to develop & test the parts of your application that require a local outgoing smtp server without an issue.

Many times port 25 (the default smtp port) will be blocked somewhere along the line in your network connection. You can figure out if your network configuration or ISP is blocking port 25 by running

telnet smtp.server.com 25.

Edit /etc/postfix/main.cf

relayhost = [mail.domain.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_use_tls = yes

Create/edit /etc/postfix/sasl_passwd

[mail.domain.com]:587 username@domain.com:password

Run this command in your shell once the above two files are created/modified:

sudo chmod 600 /etc/postfix/sasl_passwd
sudo postmap /etc/postfix/sasl_passwd
sudo launchctl stop org.postfix.master
sudo launchctl start org.postfix.master
# test postfix, cmd+d after typing message content to send message
mail -s "Testing, Testing" you@domain.com

Hinweis:

In der Postfix Konfiguration steht auch wo die Mails gespeichert werden, der Debugger sitzt etc.