Jump to content

mail() doesn't work with MacOSX Lion


Martijn Geerts
 Share

Recommended Posts

I haven't configured anything on my computer (OS X Snow Leopard) but did notice that mail() never works, unless I email to an address powered by GMail. :) I don't need mail() to work locally, but thought it was curious that GMail apparently accepts mail from my computer where nobody else does.

Link to comment
Share on other sites

Actually I gonna be busy with a little "site" where "players" can upload their multiple photo's, and "voters" on the other hand can vote on 1 uploaded photo out of the list. How to set-up this thing is still a little bit vague to me. Maybe I need an other "folder" for storing each vote ( template with image_name, players_id ) or something. )

ps. I'll post the whole thing over here:

Configure Postfix for Gmail SMTP

Edit file /etc/postfix/main.cf in this example it's done with nano in the terminal

sudo nano /etc/postfix/main.cf

and add in the following below the commented out relayhosts:

relayhost = [smtp.gmail.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

Generate sasl_password if not already exists

sudo nano /etc/postfix/sasl_passwd

and enter in the following (replace username & password with your's )

[smtp.gmail.com]:587 username@gmail.com:password

Then run the following commands:

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

And you are done….

btw: Thank you Anuj Gakhar (www.anujgakhar.com)

  • Like 2
Link to comment
Share on other sites

 Share

×
×
  • Create New...