1

Topic: SMTP server error: 5.5.1 Error: nested MAIL command

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
==== ==== Required information ====
- iRedMail version: 0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: CentOS 6.3 64 Bit
- Related log if you're reporting an issue:
====

I'm trying to send campaign email for sugarcrm around 800 of them.  When it hit number 520 something it stop sending with this kind of error.

Le Dude wrote:

Sat Dec  1 17:09:23 2012 [24152][1][FATAL] Email delivery error:Array
(
    [date_entered] => 2012-11-30 22:49:21
    [date_modified] =>
    [user_id] => 1
    [id] => 3172
    [campaign_id] => 83631769-b3d7-cbec-b454-50b84cc4e404
    [marketing_id] => e2446a07-3f04-5855-b233-50b85cb4e162
    [list_id] => 13c17f0a-072b-4546-ba69-50b85f2515be
    [send_date_time] => 2012-11-30 23:00:00
    [modified_user_id] =>
    [in_queue] => 1
    [in_queue_date] => 2012-11-30 23:01:38
    [send_attempts] => 1
    [deleted] => 0
    [related_id] => d984391f-f5ca-938d-33e6-50b85b4fd18d
    [related_type] => Contacts
)
The following From address failed: myaccount@mydomain.org<p>SMTP server error: 5.5.1 Error: nested MAIL command
</p>

Sat Dec  1 17:09:24 2012 [24152][1][FATAL] SugarPHPMailer encountered an error: The following From address failed: myaccount@mydomain.org
Sat Dec  1 17:09:24 2012 [24152][1][FATAL] Email delivery FAILURE:Array
(
    [date_entered] => 2012-11-30 22:49:21
    [date_modified] =>
    [user_id] => 1
    [id] => 3428
    [campaign_id] => 83631769-b3d7-cbec-b454-50b84cc4e404
    [marketing_id] => e2446a07-3f04-5855-b233-50b85cb4e162
    [list_id] => 13c17f0a-072b-4546-ba69-50b85f2515be
    [send_date_time] => 2012-11-30 23:00:00
    [modified_user_id] =>
    [in_queue] => 1
    [in_queue_date] => 2012-11-30 23:01:38
    [send_attempts] => 1
    [deleted] => 0
    [related_id] => 4a9414d3-bd04-d38e-5cd6-50b85bf41761
    [related_type] => Contacts
)

Did some googling and some people mentioned about amavisd bug but that was in 2008.  Wouldn't it be fair to assume that by 2012 those bugs are already patched?  Am I looking at the wrong problem?  Please advise?  I'm very puzzled.  Many thanks in advance for your help Mr. Zhang.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: SMTP server error: 5.5.1 Error: nested MAIL command

No one has this problem before?  Wow...

westdude wrote:

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
==== ==== Required information ====
- iRedMail version: 0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: CentOS 6.3 64 Bit
- Related log if you're reporting an issue:
====

I'm trying to send campaign email for sugarcrm around 800 of them.  When it hit number 520 something it stop sending with this kind of error.

Le Dude wrote:

Sat Dec  1 17:09:23 2012 [24152][1][FATAL] Email delivery error:Array
(
    [date_entered] => 2012-11-30 22:49:21
    [date_modified] =>
    [user_id] => 1
    [id] => 3172
    [campaign_id] => 83631769-b3d7-cbec-b454-50b84cc4e404
    [marketing_id] => e2446a07-3f04-5855-b233-50b85cb4e162
    [list_id] => 13c17f0a-072b-4546-ba69-50b85f2515be
    [send_date_time] => 2012-11-30 23:00:00
    [modified_user_id] =>
    [in_queue] => 1
    [in_queue_date] => 2012-11-30 23:01:38
    [send_attempts] => 1
    [deleted] => 0
    [related_id] => d984391f-f5ca-938d-33e6-50b85b4fd18d
    [related_type] => Contacts
)
The following From address failed: myaccount@mydomain.org<p>SMTP server error: 5.5.1 Error: nested MAIL command
</p>

Sat Dec  1 17:09:24 2012 [24152][1][FATAL] SugarPHPMailer encountered an error: The following From address failed: myaccount@mydomain.org
Sat Dec  1 17:09:24 2012 [24152][1][FATAL] Email delivery FAILURE:Array
(
    [date_entered] => 2012-11-30 22:49:21
    [date_modified] =>
    [user_id] => 1
    [id] => 3428
    [campaign_id] => 83631769-b3d7-cbec-b454-50b84cc4e404
    [marketing_id] => e2446a07-3f04-5855-b233-50b85cb4e162
    [list_id] => 13c17f0a-072b-4546-ba69-50b85f2515be
    [send_date_time] => 2012-11-30 23:00:00
    [modified_user_id] =>
    [in_queue] => 1
    [in_queue_date] => 2012-11-30 23:01:38
    [send_attempts] => 1
    [deleted] => 0
    [related_id] => 4a9414d3-bd04-d38e-5cd6-50b85bf41761
    [related_type] => Contacts
)

Did some googling and some people mentioned about amavisd bug but that was in 2008.  Wouldn't it be fair to assume that by 2012 those bugs are already patched?  Am I looking at the wrong problem?  Please advise?  I'm very puzzled.  Many thanks in advance for your help Mr. Zhang.

3

Re: SMTP server error: 5.5.1 Error: nested MAIL command

westdude wrote:

The following From address failed: myaccount@mydomain.org<p>SMTP server error: 5.5.1 Error: nested MAIL command

How did you send emails? with port 587 or 25? If use port 587, try to avoid Amavisd by modify /etc/postfix/master.cf:

submission inet n       -       n       -       -       smtpd                                       
  -o smtpd_tls_security_level=encrypt
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
  -o content_filter=smtp-amavis:[127.0.0.1]:10026