1

Topic: [SOLVED] SMTP Error: SMTP error(451): Failed to add recipient

Hi Folks,

I am trying iRedOS and just insatlled the same. Installation was pretty smooth but when I try to send email to others I keep getting below error in maillog.

Jul  8 00:08:35 mx1 roundcube: Invalid response code received from server (451):
Jul  8 00:08:35 mx1 roundcube: [08-Jul-2011 00:08:35 -0400]: SMTP Error: SMTP error: Failed to add recipient 'xxx@xxx.xxx' in /var/www/roundcubemail-0.3.1/program/steps/mail/func.inc on line 1365 (POST /webmail/?_task=mail&_action=send)


Any clue why?

----

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

2

Re: [SOLVED] SMTP Error: SMTP error(451): Failed to add recipient

Please paste related postfix log in /var/log/maillog, not just log of roundcube.

3

Re: [SOLVED] SMTP Error: SMTP error(451): Failed to add recipient

ZhangHuangbin wrote:

Please paste related postfix log in /var/log/maillog, not just log of roundcube.

Ok here are the logs from maillog file


Jul  8 02:44:09 mx1 postfix/smtpd[2831]: connect from mx1.isn.net[127.0.0.1]
Jul  8 02:44:09 mx1 postfix/smtpd[2831]: warning: connect to 127.0.0.1:7777: Connection refused
Jul  8 02:44:09 mx1 postfix/smtpd[2831]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Jul  8 02:44:10 mx1 postfix/smtpd[2831]: warning: connect to 127.0.0.1:7777: Connection refused
Jul  8 02:44:10 mx1 postfix/smtpd[2831]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Jul  8 02:44:10 mx1 postfix/smtpd[2831]: NOQUEUE: reject: RCPT from mx1.isn.net[127.0.0.1]: 451 4.3.5 Server configuration problem; from=<xxx@isn.net> to=<xxx@isn.net> proto=ESMTP helo=<192.168.1.203>
Jul  8 02:44:10 mx1 roundcube: Invalid response code received from server (451):
Jul  8 02:44:10 mx1 roundcube: [08-Jul-2011 02:44:10 -0400]: SMTP Error: SMTP error: Failed to add recipient 'blason@isn.net' in /var/www/roundcubemail-0.3.1/program/steps/mail/func.inc on line 1365 (POST /webmail/?_task=mail&_action=send)
Jul  8 02:44:10 mx1 postfix/smtpd[2831]: disconnect from mx1.isn.net[127.0.0.1]

4

Re: [SOLVED] SMTP Error: SMTP error(451): Failed to add recipient

It seems there is some issue with iRedAPD. I have gone through the documents and didnt find any files for iRedAPD in iRedOS.
is it not included with iRedOS?

5

Re: [SOLVED] SMTP Error: SMTP error(451): Failed to add recipient

blason wrote:

Jul  8 02:44:09 mx1 postfix/smtpd[2831]: warning: connect to 127.0.0.1:7777: Connection refused

iRedAPD service is not running.
Please start it immediately:

# /etc/init.d/iredapd restart

It will log in file /var/log/iredapd.log, If it doesn't work, please check its log file first.

6

Re: [SOLVED] SMTP Error: SMTP error(451): Failed to add recipient

Great ..Thnks a ton..I just resolved the issue and mail routing is working as it should be. I appeared to be ireapd issue only.

7

Re: [SOLVED] SMTP Error: SMTP error(451): Failed to add recipient

same issue iam facing
Apr 29 17:49:09 mail postfix/submission/smtpd[1894]: disconnect from localhost[127.0.0.1]
Apr 29 17:55:34 mail clamd[1408]: SelfCheck: Database status OK.
Apr 29 17:58:40 mail postfix/postfix-script[2529]: stopping the Postfix mail system
Apr 29 17:58:40 mail postfix/master[1279]: terminating on signal 15
Apr 29 17:58:40 mail postfix/postfix-script[2614]: warning: /var/spool/postfix/etc/hosts and /etc/hosts differ
Apr 29 17:58:40 mail postfix/postfix-script[2640]: starting the Postfix mail system
Apr 29 17:58:40 mail postfix/master[2643]: daemon started -- version 2.10.1, configuration /etc/postfix
Apr 29 17:58:40 mail postfix/proxymap[2646]: error: unsupported dictionary type: pgsql
Apr 29 17:59:44 mail postfix/proxymap[2646]: error: unsupported dictionary type: pgsql
Apr 29 17:59:44 mail postfix/proxymap[2646]: error: unsupported dictionary type: pgsql
Apr 29 17:59:44 mail postfix/proxymap[2646]: error: unsupported dictionary type: pgsql
Apr 29 17:59:44 mail postfix/proxymap[2646]: error: unsupported dictionary type: pgsql
Apr 29 17:59:44 mail postfix/proxymap[2646]: error: unsupported dictionary type: pgsql
Apr 29 17:59:44 mail postfix/proxymap[2646]: error: unsupported dictionary type: pgsql
Apr 29 17:59:44 mail postfix/submission/smtpd[2755]: connect from localhost[127.0.0.1]
Apr 29 17:59:44 mail postfix/submission/smtpd[2755]: Anonymous TLS connection established from localhost[127.0.0.1]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Apr 29 17:59:44 mail postfix/proxymap[2646]: error: unsupported dictionary type: pgsql
Apr 29 17:59:44 mail postfix/proxymap[2646]: error: unsupported dictionary type: pgsql
Apr 29 17:59:44 mail postfix/proxymap[2646]: error: unsupported dictionary type: pgsql
Apr 29 17:59:44 mail postfix/proxymap[2646]: error: unsupported dictionary type: pgsql
Apr 29 17:59:44 mail postfix/proxymap[2646]: warning: pgsql:/etc/postfix/pgsql/transport_maps_user.cf is unavailable. unsupported dictionary type: pgsql
Apr 29 17:59:44 mail postfix/trivial-rewrite[2757]: warning: proxy:pgsql:/etc/postfix/pgsql/transport_maps_user.cf lookup error for "*"
Apr 29 17:59:44 mail postfix/proxymap[2646]: warning: pgsql:/etc/postfix/pgsql/transport_maps_user.cf is unavailable. unsupported dictionary type: pgsql
Apr 29 17:59:44 mail postfix/trivial-rewrite[2757]: warning: proxy:pgsql:/etc/postfix/pgsql/transport_maps_user.cf lookup error for "*"
Apr 29 17:59:44 mail postfix/proxymap[2646]: warning: pgsql:/etc/postfix/pgsql/virtual_mailbox_domains.cf is unavailable. unsupported dictionary type: pgsql
Apr 29 17:59:44 mail postfix/trivial-rewrite[2757]: warning: proxy:pgsql:/etc/postfix/pgsql/virtual_mailbox_domains.cf: table lookup problem
Apr 29 17:59:44 mail postfix/trivial-rewrite[2757]: warning: virtual_mailbox_domains lookup failure
Apr 29 17:59:44 mail postfix/proxymap[2646]: warning: pgsql:/etc/postfix/pgsql/virtual_mailbox_domains.cf is unavailable. unsupported dictionary type: pgsql
Apr 29 17:59:44 mail postfix/trivial-rewrite[2757]: warning: proxy:pgsql:/etc/postfix/pgsql/virtual_mailbox_domains.cf: table lookup problem
Apr 29 17:59:44 mail postfix/trivial-rewrite[2757]: warning: virtual_mailbox_domains lookup failure
Apr 29 17:59:44 mail postfix/submission/smtpd[2755]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 451 4.3.0 <postmaster@tradesocio.lan>: Temporary lookup failure; from=<postmaster@tradesocio.lan> to=<sriram.r153@gmail.com> proto=ESMTP helo=<_>
Apr 29 17:59:44 mail roundcube: <6bqgt9g5> SMTP Error: Failed to add recipient 'sriram.r153@gmail.com'. 4.3.0 <postmaster@tradesocio.lan>: Temporary lookup failure (Code: 451) in /var/www/roundcubemail-1.3.0/program/lib/Roundcube/rcube.php on line 1665 (POST /mail/?_task=mail&_unlock=loading1525024784127&_lang=en_US&_framed=1&_action=send)
Apr 29 17:59:44 mail postfix/submission/smtpd[2755]: disconnect from localhost[127.0.0.1]
Apr 29 18:05:34 mail clamd[1408]: SelfCheck: Database status OK.

8

Re: [SOLVED] SMTP Error: SMTP error(451): Failed to add recipient

sriram.r153 wrote:

Apr 29 17:58:40 mail postfix/proxymap[2646]: error: unsupported dictionary type: pgsql

Please make sure package 'postfix-pgsql' is installed on server.

9

Re: [SOLVED] SMTP Error: SMTP error(451): Failed to add recipient

ZhangHuangbin wrote:
sriram.r153 wrote:

Apr 29 17:58:40 mail postfix/proxymap[2646]: error: unsupported dictionary type: pgsql

Please make sure package 'postfix-pgsql' is installed on server.

Thanks for reply,

checking.

10 (edited by sriram.r153 2018-04-30 13:36:54)

Re: [SOLVED] SMTP Error: SMTP error(451): Failed to add recipient

Hi package 'postfix-pgsql' instaled
i don't have luck sad same issue facing

please help me on this
Thanks in advance:)

11

Re: [SOLVED] SMTP Error: SMTP error(451): Failed to add recipient

*) If 'postfix-pgsql' package is installed, did you restart Postfix service?
*) What's the latest error message now?

12

Re: [SOLVED] SMTP Error: SMTP error(451): Failed to add recipient

ZhangHuangbin wrote:

*) If 'postfix-pgsql' package is installed, did you restart Postfix service?
*) What's the latest error message now?

Hi

Thanks for reply i have uninstalled and reinstalled with mariadb then the smtp issue is solved

Thanks you.