Email Queue issues: SMTP Error: data not accepted. SMTP server error: DATA command failed Detail: SMTP code: 422

Hi everyone,

I’ve been experiencing this issue for a while now having previously resorted to using a different method. I’m aware this may not be SuiteCRM’s fault though I wondered if there were any known settings that could help cause I’ve looked everywhere for them.

When sending campaigns we struggle to get over 100 emails sent out without trouble, the main issue for us at the moment is the lengthy cool-down period where we are only able to try again in X many seconds (often 3000+).

I have looked up the SMTP code 422 and struggle to believe that so many recipients’ have full mailboxes.

Below is the information from the logs:

SMTP Error: data not accepted.SMTP server error: DATA command failed Detail: try again in 2956 second(s)
SMTP code: 422
Tue Jan 31 11:20:48 2017 [3][e2ef51af-f562-ce23-e046-570fa19f041d][FATAL] SugarPHPMailer encountered an error: SMTP Error: data not accepted.
Tue Jan 31 11:20:48 2017 [3][e2ef51af-f562-ce23-e046-570fa19f041d][FATAL] Email delivery FAILURE:Array
(
[date_entered] => 2017-01-27 16:20:04
[date_modified] =>
[user_id] => e2ef51af-f562-ce23-e046-570fa19f041d
[id] => 129116
[campaign_id] => b1fd2290-fced-92c2-608e-5889e9606572
[marketing_id] => a92557a3-7dc5-969c-3921-588b72f10e7d
[list_id] => 5f63fce1-ec02-7011-ce6e-588b5042cfdc
[send_date_time] => 2017-01-27 16:30:00
[modified_user_id] =>
[in_queue] => 0
[in_queue_date] => 2017-01-30 16:25:02
[send_attempts] => 0
[deleted] => 0
[related_id] => 7ed4a912-1534-ad72-0f89-57cc8da98adc
[related_type] => Contacts
)

Tue Jan 31 11:20:48 2017 [3][e2ef51af-f562-ce23-e046-570fa19f041d][FATAL] Email delivery error:Array
(
[date_entered] => 2017-01-27 16:20:04
[date_modified] =>
[user_id] => e2ef51af-f562-ce23-e046-570fa19f041d
[id] => 129116
[campaign_id] => b1fd2290-fced-92c2-608e-5889e9606572
[marketing_id] => a92557a3-7dc5-969c-3921-588b72f10e7d
[list_id] => 5f63fce1-ec02-7011-ce6e-588b5042cfdc
[send_date_time] => 2017-01-27 16:30:00
[modified_user_id] =>
[in_queue] => 0
[in_queue_date] => 2017-01-30 16:25:02
[send_attempts] => 0
[deleted] => 0
[related_id] => 7ed4a912-1534-ad72-0f89-57cc8da98adc
[related_type] => Contacts
)
SMTP Error: data not accepted.SMTP server error: DATA command failed Detail: try again in 2956 second(s)
SMTP code: 422

Outside of Suite we have not set any limits on emails per day/hour etc

As I’ve said we are able to send SOME emails but I’d really like to know if there’s any way I can reduce the time taken to re-attempt as it’s really hindering our ability to send out mailshots on schedule.

Many thanks

Have you properly setup the mass mailing related scheduler?

Kindly look for some useful info here: https://community.sugarcrm.com/thread/20627

With thanks,

RK

Hi theachiever

Yeah I’ve spotted that thread before - for some reason our config_override.php doesn’t have any jobs listed…

Very odd

I should add that I’ve added the following to config_override as there was nothing there before

$sugar_config[‘jobs’][‘timeout’] = 180;
$sugar_config[‘jobs’][‘min_retry_interval’] = 5;
$sugar_config[‘jobs’][‘max_retries’] = 5;

Alas I’ve not seen a difference in the cool-down time yet

ok that didn’t display properly, it was meant to read:

$sugar_config jobs timeout = 180;
$sugar_config jobs min_retry_interval = 5;
$sugar_config jobs max_retries = 5;

Did it work for you?

If it helped you find the appropriate solution to the problem you were having, then it is good.

RK

Afraid not, in fact it’s asked me not to try again for over 50,000 seconds