Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I know this question has been asked many times and people use to give many solutions. I have followed almost all the possibilities which I come across after investigating on it. but nothing worked out.

I did follow all the links given in this post , nothing worked out. Please explain me why php mail() does give so much problem ? what exactly happening and why it will not work?

I am using Mac OS X Lion ( 10.7.3 ).

I did all changes whatever is necessary like setting MAILSERVER=-YES- in my /etc/hostconfig Setting sendmail_path = /usr/sbin/sendmail -t -i in php.ini Setting myhostname variable in /etc/postfix/main.cf Setting hostname/User/Pass in submit.cred

So please give me solution other than changing those files.

Problems I am facing are 1> As soon as I start postfix , I will get warning messages

sudo postfix start
postfix/postfix-script: warning: not owned by root: /etc/postfix/main.cf
postfix/postfix-script: warning: not owned by root: /etc/postfix/submit.cred
postfix/postfix-script: warning: not owned by _postfix:     /Library/Server/Mail/Data/mta/./master.lock
postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Data/mta
postfix/postfix-script: starting the Postfix mail system

2> In mail.log , I will get the following output

postfix/smtp[470]: 211B318690B: to=<test@example.com>, relay=none, delay=86583, delays=86521/0.05/62/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[2607:f8b0:4002:c02::1a]:25: No route to host)
postfix/smtp[473]: connect to test@example.com : Operation timed out
postfix/smtp[473]: to=<test@example.com>, relay=none, delay=169837, delays=169717/0.04/120/0, dsn=4.4.1, status=deferred (connect to example.com: Operation timed out) 

when I ping to alt2.gmail-smtp-in.l.google.com , it will say

Request timeout for icmp_seq 0
36 bytes from IPADD: Communication prohibited by filter
( Note - IPADD means some ip address is given there )

Any Help please ??

share|improve this question

migrated from stackoverflow.com Oct 12 '12 at 8:03

This question came from our site for professional and enthusiast programmers.

1  
you've got a firewall preventing pings from reaching google, the postfix warnings are clear enough... it's not configured properly, you've got communications issues, etc... and this question is offtopic for this site, since it's server configuration problems, not actual programming issues. –  Marc B Oct 12 '12 at 4:31
    
Is your ISP filtering outbound port 25? –  jordanm Oct 12 '12 at 4:32

1 Answer 1

We just did that yesterday by simply following this description. It configures your mac to deliver eMails to googlemail.

All the Links you were following simply activate the Mailserver, but if it is not configured properly, your Mail-Provider will not accept the email as it will be regarded as spam. So be careful! You might convert your mac into a spam-machine!

Oh, and the warnings are simple warnings, so you should fix them, but you might also ignore them.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.