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: 211B318690B: to=<email@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: connect to firstname.lastname@example.org : Operation timed out postfix/smtp: to=<email@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 ??