1 (edited by ramsri 2016-02-10 18:37:48)

Topic: SMTP Error (451): Failed to add recipient "" (4.3.5 Server config)

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.4
- Linux/BSD distribution name and version: Ubuntu 14.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? Yes
- Related log if you're reporting an issue:
====
Installed iRedMail on clean Ubuntu 14.04 server (VPS from linode).
when trying to send a mail through roundcube getting error message
SMTP Error (451): Failed to add recipient "xxxxx@gmail.com" (4.3.5 Server configuration problem).

mail.log
Feb 10 10:14:13 mx postfix/submission/smtpd[5729]: connect from mx.delitesoftech.com[127.0.0.1]
Feb 10 10:14:13 mx postfix/submission/smtpd[5729]: warning: connect to 127.0.0.1:7777: Connection refused
Feb 10 10:14:13 mx postfix/submission/smtpd[5729]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Feb 10 10:14:14 mx postfix/submission/smtpd[5729]: warning: connect to 127.0.0.1:7777: Connection refused
Feb 10 10:14:14 mx postfix/submission/smtpd[5729]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Feb 10 10:14:14 mx postfix/submission/smtpd[5729]: NOQUEUE: reject: RCPT from mx.delitesoftech.com[127.0.0.1]: 451 4.3.5 Server configuration problem; from=<postmaster@delitesoftech.com> to=<xxxx@gmail.com> proto=ESMTP helo=<mx.delitesoftech.com>
Feb 10 10:14:14 mx roundcube: ERROR: Invalid response code received from server (451)
Feb 10 10:14:14 mx roundcube: <3qdakhhp> SMTP Error: Failed to add recipient 'xxxxx@gmail.com'. 4.3.5 Server configuration problem (Code: 451) in /opt/www/roundcubemail-1.1.4/program/lib/Roundcube/rcube.php on line 1712 (POST /mail/?_task=mail&_unlock=loading1455099251347&_lang=en_US&_framed=1?_task=mail&_action=send)
Feb 10 10:14:14 mx postfix/submission/smtpd[5729]: disconnect from mx.delitesoftech.com[127.0.0.1]

iredapd log

2016-02-10 09:57:25 INFO Starting iRedAPD (version: 1.8.0, backend: ldap), listening on 127.0.0.1:7777.
2016-02-10 09:57:25 INFO Log rotate type: time, interval: W6, backup copies: 12.
2016-02-10 09:57:25 INFO Loading plugin: reject_null_sender
2016-02-10 09:57:25 INFO Loading plugin: ldap_maillist_access_policy
2016-02-10 09:57:25 INFO Loading plugin: amavisd_wblist
2016-02-10 09:57:55 ERROR LDAP bind failed: incorrect bind dn or password.
2016-02-10 10:00:01 INFO * Query SQL server to get mail domain names.
2016-02-10 10:01:55 INFO Starting iRedAPD (version: 1.8.0, backend: ldap), listening on 127.0.0.1:7777.
2016-02-10 10:01:55 INFO Log rotate type: time, interval: W6, backup copies: 12.
2016-02-10 10:01:55 INFO Loading plugin: reject_null_sender
2016-02-10 10:01:55 INFO Loading plugin: ldap_maillist_access_policy
2016-02-10 10:01:55 INFO Loading plugin: amavisd_wblist
2016-02-10 10:03:35 ERROR LDAP bind failed: incorrect bind dn or password.
2016-02-10 10:10:02 INFO * Query SQL server to get mail domain names.

I even noticed iredapd is getting stopped whenever I'm trying to send a mail.
As this is a fresh install unable to understand where to diagnose the issue. I even tried on CentOS 7 same issue.

Please let me know if any additional information is required.

----

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

2

Re: SMTP Error (451): Failed to add recipient "" (4.3.5 Server config)

Try this:

cd /opt/iredapd/
find . -name '*pyc' | xargs rm -f {}
service iredapd restart

If it still complains "ERROR LDAP bind failed: incorrect bind dn or password", please double check the ldap bind dn/password in /opt/iredapd/settings.py.

3 (edited by ramsri 2016-02-10 19:29:08)

Re: SMTP Error (451): Failed to add recipient "" (4.3.5 Server config)

Dear Zhang Huangbin,
It did the job. since yesterday I have searched a lot of posts. But didn't worked.

Basically I'm migrating to new server I have done all configurations and when tried to send a mail got this issue. So reinstalled everything two times in centos and finally installed Ubuntu suspecting OS issue.

Guess it works if I shifted to CentOS as well.

Thanks a lot.