when I send mail to gmail through SMTP I got a erro

550 5.7.1 http://mail.google.com/support/bin/answer.py?answer=10336

follow the link it said

'The IP you're using to send email is not authorized...'

In order to prevent spam, Gmail refuses mail when the sending IP address does not match the sending domain. To send mail from your server to Gmail, we suggest using the SMTP relay provided by your ISP. Please note that we are unable to whitelist IP addresses or otherwise make exceptions at this time.

It seams that, gmail will test my ip with MX record, (for this test, I send from localhost), but if myhost.com has 3 MX record, will google test each MX to match my ip, or is there any way to bind a domain to a ip, not bind an ip to a domain.

Update

After google, I think the most import thing is set DNS PTR.

link|improve this question
feedback

migrated from stackoverflow.com May 3 '11 at 23:12

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

2 Answers

I think the problem is that you are not using SSL, which is demanded by Google.

link|improve this answer
feedback

You should use the gmail smtp server as your outgoing mail server. Then Gmail will authorize and process your email.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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