1

Topic: "Errore SMTP (451): Fallito l'inserimento del destinatario"

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====
Hi! I'm Ale
I've a problem with iRedMail version 0.9.4 on ubuntu 15.10 64 bit, with mysql and apache
When i try to send and e-mail via roundcube it fails, with this error "Errore SMTP (451): Fallito l'inserimento del destinatario" (SMTP error (451): Failed entering the recipient)
How can i solve it? Can anyone help me?
Thank you!!

Ale

----

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

2

Re: "Errore SMTP (451): Fallito l'inserimento del destinatario"

*) Any related log in /var/log/mail.log?
*) I'm sorry that i cannot read the language in your error message, could you please either translate it to English?

3

Re: "Errore SMTP (451): Fallito l'inserimento del destinatario"

ZhangHuangbin wrote:

*) Any related log in /var/log/mail.log?
*) I'm sorry that i cannot read the language in your error message, could you please either translate it to English?

The error is: "(SMTP error (451): Failed entering the recipient)"

And this is the log file:
Jan 26 07:42:19 confezioni postfix/submission/smtpd[7047]: connect from confezioni.ddns.net[127.0.0.1]
Jan 26 07:42:19 confezioni postfix/submission/smtpd[7047]: warning: connect to 127.0.0.1:7777: Connection refused
Jan 26 07:42:19 confezioni postfix/submission/smtpd[7047]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Jan 26 07:42:20 confezioni postfix/submission/smtpd[7047]: warning: connect to 127.0.0.1:7777: Connection refused
Jan 26 07:42:20 confezioni postfix/submission/smtpd[7047]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Jan 26 07:42:20 confezioni postfix/submission/smtpd[7047]: NOQUEUE: reject: RCPT from confezioni.ddns.net[127.0.0.1]: 451 4.3.5 Server configuration problem; from=<aleprova@cemmedue.it> to=<monny123@gmail.com> proto=ESMTP helo=<confezioni.ddns.net>
Jan 26 07:42:20 confezioni roundcube: ERROR: Invalid response code received from server (451)
Jan 26 07:42:20 confezioni roundcube: <lqfe9fu3> SMTP Error: Failed to add recipient 'monny123@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=loading1453790539575&_lang=it&_framed=1?_task=mail&_action=send)
Jan 26 07:42:20 confezioni postfix/submission/smtpd[7047]: disconnect from confezioni.ddns.net[127.0.0.1]
Jan 26 07:42:41 confezioni postfix/submission/smtpd[7047]: connect from confezioni.ddns.net[127.0.0.1]
Jan 26 07:42:41 confezioni postfix/submission/smtpd[7047]: warning: connect to 127.0.0.1:7777: Connection refused
Jan 26 07:42:41 confezioni postfix/submission/smtpd[7047]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Jan 26 07:42:42 confezioni postfix/submission/smtpd[7047]: warning: connect to 127.0.0.1:7777: Connection refused
Jan 26 07:42:42 confezioni postfix/submission/smtpd[7047]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Jan 26 07:42:42 confezioni postfix/submission/smtpd[7047]: NOQUEUE: reject: RCPT from confezioni.ddns.net[127.0.0.1]: 451 4.3.5 Server configuration problem; from=<aleprova@cemmedue.it> to=<monny123@gmail.com> proto=ESMTP helo=<confezioni.ddns.net>
Jan 26 07:42:42 confezioni roundcube: ERROR: Invalid response code received from server (451)
Jan 26 07:42:42 confezioni roundcube: <lqfe9fu3> SMTP Error: Failed to add recipient 'monny123@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=loading1453790561097&_lang=it&_framed=1?_task=mail&_action=send)
Jan 26 07:42:42 confezioni postfix/submission/smtpd[7047]: disconnect from confezioni.ddns.net[127.0.0.1

4

Re: "Errore SMTP (451): Fallito l'inserimento del destinatario"

monny999 wrote:

Jan 26 07:42:19 confezioni postfix/submission/smtpd[7047]: warning: connect to 127.0.0.1:7777: Connection refused

iRedAPD service is not running. Please start it first.

5

Re: "Errore SMTP (451): Fallito l'inserimento del destinatario"

ZhangHuangbin wrote:
monny999 wrote:

Jan 26 07:42:19 confezioni postfix/submission/smtpd[7047]: warning: connect to 127.0.0.1:7777: Connection refused

iRedAPD service is not running. Please start it first.

Same error again..
Log file:
Jan 26 09:09:59 confezioni postfix/submission/smtpd[8127]: connect from confezioni.ddns.net[127.0.0.1]
Jan 26 09:10:00 confezioni postfix/submission/smtpd[8127]: warning: connect to 127.0.0.1:7777: Connection refused
Jan 26 09:10:00 confezioni postfix/submission/smtpd[8127]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Jan 26 09:10:00 confezioni postfix/submission/smtpd[8127]: NOQUEUE: reject: RCPT from confezioni.ddns.net[127.0.0.1]: 451 4.3.5 Server configuration problem; from=<aleprova@cemmedue.it> to=<monny999@gmail.com> proto=ESMTP helo=<confezioni.ddns.net>
Jan 26 09:10:00 confezioni roundcube: ERROR: Invalid response code received from server (451)
Jan 26 09:10:00 confezioni roundcube: <hl2rtpp7> SMTP Error: Failed to add recipient 'monny999@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=loading1453795801090&_lang=it&_framed=1?_task=mail&_action=send)
Jan 26 09:10:00 confezioni postfix/submission/smtpd[8127]: disconnect from confezioni.ddns.net[127.0.0.1]

6

Re: "Errore SMTP (451): Fallito l'inserimento del destinatario"

I am having the same error as well!!

7

Re: "Errore SMTP (451): Fallito l'inserimento del destinatario"

monny999 wrote:

Jan 26 09:10:00 confezioni postfix/submission/smtpd[8127]: warning: connect to 127.0.0.1:7777: Connection refused

iRedAPD service is not running, please start it first.

8

Re: "Errore SMTP (451): Fallito l'inserimento del destinatario"

ZhangHuangbin wrote:
monny999 wrote:

Jan 26 09:10:00 confezioni postfix/submission/smtpd[8127]: warning: connect to 127.0.0.1:7777: Connection refused

iRedAPD service is not running, please start it first.

Yes it is running
Maybe any ports on The router?

9

Re: "Errore SMTP (451): Fallito l'inserimento del destinatario"

monny999 wrote:

Maybe any ports on The router?

No, it's running on localhost, no need to check router.

What's the output if you telnet to port 7777 like this:

$ telnet localhost 7777

10

Re: "Errore SMTP (451): Fallito l'inserimento del destinatario"

ZhangHuangbin wrote:
monny999 wrote:

Maybe any ports on The router?

No, it's running on localhost, no need to check router.

What's the output if you telnet to port 7777 like this:

$ telnet localhost 7777

This is the result:

Trying 127.0.0.1...
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused


Ale

11

Re: "Errore SMTP (451): Fallito l'inserimento del destinatario"

So the iredapd service is not running. Please try to start it, and check the log in /var/log/iredapd/iredapd.log.

If it cannot be started, please turn on debug mode and try again:
http://www.iredmail.org/docs/debug.iredapd.html

12

Re: "Errore SMTP (451): Fallito l'inserimento del destinatario"

ZhangHuangbin wrote:

So the iredapd service is not running. Please try to start it, and check the log in /var/log/iredapd/iredapd.log.

If it cannot be started, please turn on debug mode and try again:
http://www.iredmail.org/docs/debug.iredapd.html

It is started without problems.
This is the log file, when i try to send an email:

2016-01-27 13:20:01 INFO * Query SQL server to get mail domain names.
2016-01-27 13:22:11 INFO Starting iRedAPD (version: 1.8.0, backend: ldap), listening on 127.0.0.1:7777.
2016-01-27 13:22:11 INFO Log rotate type: time, interval: W6, backup copies: 12.
2016-01-27 13:22:11 INFO Loading plugin: reject_null_sender
2016-01-27 13:22:11 INFO Loading plugin: ldap_maillist_access_policy
2016-01-27 13:22:11 INFO Loading plugin: amavisd_wblist
2016-01-27 13:22:14 INFO Starting iRedAPD (version: 1.8.0, backend: ldap), listening on 127.0.0.1:7777.
2016-01-27 13:22:14 INFO Log rotate type: time, interval: W6, backup copies: 12.
2016-01-27 13:22:14 INFO Loading plugin: reject_null_sender
2016-01-27 13:22:14 INFO Loading plugin: ldap_maillist_access_policy
2016-01-27 13:22:14 INFO Loading plugin: amavisd_wblist
2016-01-27 13:22:49 ERROR LDAP bind failed: {'desc': "Can't contact LDAP server"}.

Ale

13

Re: "Errore SMTP (451): Fallito l'inserimento del destinatario"

monny999 wrote:

2016-01-27 13:22:49 ERROR LDAP bind failed: {'desc': "Can't contact LDAP server"}.

Is OpenLDAP service running?

14

Re: "Errore SMTP (451): Fallito l'inserimento del destinatario"

ZhangHuangbin wrote:
monny999 wrote:

2016-01-27 13:22:49 ERROR LDAP bind failed: {'desc': "Can't contact LDAP server"}.

Is OpenLDAP service running?

How can i start it?

Than you

15

Re: "Errore SMTP (451): Fallito l'inserimento del destinatario"

Run command below to check its status:

service slapd status

16

Re: "Errore SMTP (451): Fallito l'inserimento del destinatario"

ZhangHuangbin wrote:

Run command below to check its status:

service slapd status

This is the result:

slapd.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

17

Re: "Errore SMTP (451): Fallito l'inserimento del destinatario"

ZhangHuangbin wrote:

Run command below to check its status:

service slapd status

I've installed it with the command "sudo apt-get install slapd ldap-utils"
Then reboot and service slapd status

And this is the result:
service slapd status
● slapd.service - LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)
   Loaded: loaded (/etc/init.d/slapd)
   Active: active (running) since mer 2016-01-27 17:23:09 CET; 1min 13s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 712 ExecStart=/etc/init.d/slapd start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/slapd.service
           └─916 /usr/sbin/slapd -h ldap:/// ldapi:/// -g openldap -u openlda...

gen 27 17:23:08 confezioni systemd[1]: Starting LSB: OpenLDAP standalone se.....
gen 27 17:23:08 confezioni slapd[712]: * Starting OpenLDAP slapd
gen 27 17:23:09 confezioni slapd[780]: @(#) $OpenLDAP: slapd  (Ubuntu) (Sep... $
                                               buildd@lgw01-05:/build/openl...pd
gen 27 17:23:09 confezioni slapd[916]: slapd starting
gen 27 17:23:09 confezioni slapd[712]: ...done.
gen 27 17:23:09 confezioni systemd[1]: Started LSB: OpenLDAP standalone ser...).
Hint: Some lines were ellipsized, use -l to show in full.


But again the same error

18

Re: "Errore SMTP (451): Fallito l'inserimento del destinatario"

I'm confused here. You mentioned that it's MySQL backend, but the iRedAPD shows it's using OpenLDAP backend. Could you please try this:

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

Then try to send email again.

19

Re: "Errore SMTP (451): Fallito l'inserimento del destinatario"

ZhangHuangbin wrote:

I'm confused here. You mentioned that it's MySQL backend, but the iRedAPD shows it's using OpenLDAP backend. Could you please try this:

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

Then try to send email again.

Ok it sends the email; but i don't receive nothing and if i try to send an email from my gmail account to the iredmail account, this is the mail that i receive:
"Subject : Mail Delivery Subsystem
Technical details of permanent failure:
DNS Error: 11377551 DNS type 'mx' lookup of mail.confezioni.ddns.net responded with code NXDOMAIN
Domain name not found: mail.confezioni.ddns.net"


And this is mail.log
"Jan 28 08:21:34 mx postfix/master[1427]: terminating on signal 15
Jan 28 08:21:34 mx postfix/master[3002]: daemon started -- version 2.11.3, configuration /etc/postfix
Jan 28 08:21:37 mx postfix/submission/smtpd[3006]: connect from mx.confezioni.ddns.net[127.0.0.1]
Jan 28 08:21:37 mx postfix/submission/smtpd[3006]: 9F5A0711B7: client=mx.confezioni.ddns.net[127.0.0.1], sasl_method=LOGIN, sasl_username=aleprova@mail.confezioni.ddns.net
Jan 28 08:21:37 mx postfix/cleanup[3016]: 9F5A0711B7: message-id=<08b7b3eba14f47914650247a4e9f5400@mail.confezioni.ddns.net>
Jan 28 08:21:37 mx postfix/qmgr[3004]: 9F5A0711B7: from=<aleprova@mail.confezioni.ddns.net>, size=592, nrcpt=1 (queue active)
Jan 28 08:21:37 mx roundcube: <d8fehfj9> User aleprova@mail.confezioni.ddns.net [external_ipaddress]; Message for monny999@gmail.com; 250: 2.0.0 Ok: queued as 9F5A0711B7
Jan 28 08:21:37 mx postfix/submission/smtpd[3006]: disconnect from mx.confezioni.ddns.net[127.0.0.1]
Jan 28 08:21:38 mx postfix/smtpd[3033]: connect from mx.confezioni.ddns.net[127.0.0.1]
Jan 28 08:21:38 mx postfix/smtpd[3033]: 6615F711BE: client=mx.confezioni.ddns.net[127.0.0.1]
Jan 28 08:21:38 mx postfix/cleanup[3016]: 6615F711BE: message-id=<08b7b3eba14f47914650247a4e9f5400@mail.confezioni.ddns.net>
Jan 28 08:21:38 mx postfix/qmgr[3004]: 6615F711BE: from=<aleprova@mail.confezioni.ddns.net>, size=1747, nrcpt=1 (queue active)
Jan 28 08:21:38 mx amavis[2178]: (02178-01) Passed CLEAN {RelayedInternal}, ORIGINATING/MYNETS LOCAL [127.0.0.1]:51462 [127.0.0.1] <aleprova@mail.confezioni.ddns.net> -> <monny999@gmail.com>, Queue-ID: 9F5A0711B7, Message-ID: <08b7b3eba14f47914650247a4e9f5400@mail.confezioni.ddns.net>, mail_id: BdjaNtxslzW3, Hits: 0.169, size: 592, queued_as: 6615F711BE, dkim_new=dkim:mail.confezioni.ddns.net, 712 ms
Jan 28 08:21:38 mx postfix/smtpd[3033]: disconnect from mx.confezioni.ddns.net[127.0.0.1]
Jan 28 08:21:38 mx postfix/smtp[3021]: 9F5A0711B7: to=<monny999@gmail.com>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.91, delays=0.16/0.02/0.01/0.71, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 6615F711BE)
Jan 28 08:21:38 mx postfix/qmgr[3004]: 9F5A0711B7: removed
Jan 28 08:21:39 mx postfix/smtp[3034]: connect to gmail-smtp-in.l.google.com[2a00:1450:400c:c06::1b]:25: Network is unreachable
Jan 28 08:21:41 mx postfix/smtp[3034]: 6615F711BE: to=<monny999@gmail.com>, relay=gmail-smtp-in.l.google.com[64.233.184.26]:25, delay=3, delays=0.01/0.03/2/0.98, dsn=2.0.0, status=sent (250 2.0.0 OK 1453965701 gk3si13518580wjd.195 - gsmtp)
Jan 28 08:21:41 mx postfix/qmgr[3004]: 6615F711BE: removed"

20

Re: "Errore SMTP (451): Fallito l'inserimento del destinatario"

monny999 wrote:

DNS Error: 11377551 DNS type 'mx' lookup of mail.confezioni.ddns.net responded with code NXDOMAIN
Domain name not found: mail.confezioni.ddns.net"

No MX and A DNS records for your mail domain name 'mail.confezioni.ddns.net'. Please follow our tutorial here to setup DNS records:
http://www.iredmail.org/docs/setup.dns.html