V
V
Vladimir Chernyshev2012-08-27 22:56:13
Google
Vladimir Chernyshev, 2012-08-27 22:56:13

Message rejected when sent by script via SMTP to Google Apps account. CHADNT?

There is a site with registration. Screwed GMail Google Apps on your domain. When registering, a letter is sent (phpmailer) first with a link for activation, then about successful activation. SPF and DKIM are connected (the latter by means of Google itself, that is, I don’t know the private key), when it is delivered, third-party services do not mind, even such fastidious ones as mail.ru. But from time to time there are periods when, when trying to send, I get first

Delivery to the following recipient failed permanently: **********@*.com Technical details of permanent failure: Message rejected. See http://support.google.com/mail/bin/answer.py?answer=69585 for more information.

And then in general SMTP Error: Data not accepted.in the script. At the same time, everything is sent by hand from the GMail web interface. After a while, everything goes by itself.

It has been observed that this behavior occurs when several addresses are encountered, to which their servers respond that such a user / mailbox does not exist (something likeLocal mailbox [email protected] is unavailable: user not found). There is a suspicion that Google has a counter in which, after several not found from external servers, sending is blocked for some time, and if you persist (an advertising campaign is launched), then it is not even sent via smtp.

How to deal with erroneously (or deliberately) entered non-existent addresses? I really do not want to raise postfix locally and deal with its configs, especially bundled with DKIM. The admin of me is even worse than the developer.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Boris Syomov, 2012-08-28
@kotomyava

Well, firstly, Googlemail has a message limit, if my memory serves me, somewhere around 5000 / day.
Secondly, what prevents you from hiring a system administrator for a small penny, so that he correctly configures your mailer, since there is already somewhere, and you are not confident in your abilities?
You can fight by analyzing delivery errors, and deleting addresses from the mailing list. Well, checking the correctness of the mailbox domain, DNS requests - some of the completely left addresses will be eliminated.

M
marchelly, 2012-08-28
@marchelly

You can try to use the smtp provider. there are a lot of them now. mailgun, sendgrid, smtp.com. The first free account has up to 200 or 300 messages per day, but very rich APIs
. Personally, I use my own SMTP server (postfix), with spf, dkim, whitelisting for major ESP (yahoo, google, aol, roadrunner). Mail leaves quickly, gets into the inbox. Probably in the case of VDS without a dedicated IP, this option will not work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question