1

Topic: SMTP Error (451): Failed to add recipient

==== Required information ====
- iRedMail version: 0.8.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: OpenSUSE 12.3 64bits
- Related log if you're reporting an issue:
====
after a clean OpenSUSE 12.3 install, I installed iRedMail 0.8.5, install ran without problems

when I tried to send an email I got this error:
SMTP Error (451): Failed to add recipient "dest_user@external_domain.com" (4.3.5 Server configuration problem).

/var/log/mail shows this error message when I try to send an email (original email addresses has been masked)
2013-10-08T16:10:33.618523-05:00 mainserver postfix/smtpd[16456]: connect from unknown[127.0.0.1]
2013-10-08T16:10:34.020137-05:00 mainserver postfix/smtpd[16456]: warning: connect to 127.0.0.1:10031: Connection refused
2013-10-08T16:10:34.020168-05:00 mainserver postfix/smtpd[16456]: warning: problem talking to server 127.0.0.1:10031: Connection refused
2013-10-08T16:10:35.021321-05:00 mainserver postfix/smtpd[16456]: warning: connect to 127.0.0.1:10031: Connection refused
2013-10-08T16:10:35.021366-05:00 mainserver postfix/smtpd[16456]: warning: problem talking to server 127.0.0.1:10031: Connection refused
2013-10-08T16:10:35.021375-05:00 mainserver postfix/smtpd[16456]: NOQUEUE: reject: RCPT from unknown[127.0.0.1]: 451 4.3.5 Server configuration problem; from=<myusername@mydomain.com> to=<dest_user@external_domain.com> proto=ESMTP helo=<mainserver.localdomain.com>
2013-10-08T16:10:35.021383-05:00 mainserver roundcube: SMTP Error: SMTP error: Failed to add recipient 'dest_user@external_domain.com' in /srv/www/roundcubemail-0.9.2/program/include/rcmail.php on line 1014 (POST /mail/?_unlock=loading1381266633089&_lang=undefined?_task=mail&_action=send)
2013-10-08T16:10:35.022321-05:00 mainserver postfix/smtpd[16456]: disconnect from unknown[127.0.0.1]

I know that port 10031 is postfix policy server, checking all services status with "service --status-all" I got this
cbpolicyd.service                 loaded failed failed      SYSV: Postfix Policy Daemon

with "service cbpolicyd status" I got:
cbpolicyd.service - SYSV: Postfix Policy Daemon
      Loaded: loaded (/etc/init.d/cbpolicyd)
      Active: failed (Result: exit-code) since Tue, 2013-10-08 15:42:49 PET; 58min ago
     Process: 591 ExecStart=/etc/init.d/cbpolicyd start (code=exited, status=127)
      CGroup: name=systemd:/system/cbpolicyd.service

Oct 08 15:42:49 myserver.mydomain.com systemd[1]: Starting SYSV: Postfix Policy Daemon...
Oct 08 15:42:49 myserver.mydomain.com cbpolicyd[591]: /etc/init.d/cbpolicyd: line 11: /etc/init.d/functions: No such file or directory
Oct 08 15:42:49 myserver.mydomain.com cbpolicyd[591]: /etc/init.d/cbpolicyd: line 14: .: /etc/sysconfig/network: is a directory
Oct 08 15:42:49 myserver.mydomain.com cbpolicyd[591]: Starting cbpolicyd: /etc/init.d/cbpolicyd: line 25: daemon: command not found
Oct 08 15:42:49 myserver.mydomain.com systemd[1]: Failed to start SYSV: Postfix Policy Daemon.
Oct 08 15:42:49 myserver.mydomain.com systemd[1]: Unit cbpolicyd.service entered failed state


checking the lines with error/etc/init.d/cbpolicyd script, i saw that in line 25 says:

"daemon /usr/sbin/cbpolicyd --config /etc/policyd/cluebringer.conf"

it is daemon the command that doesn't exist...

How can I fix this problem?

Thanks in advance for your help

Regards,

vldesco
Lima - Perú

----

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

*) Could you please show me output of command "rpm -qi cluebringer"?
*) Does removing "daemon" in /usr/sbin/cbpolicyd solve this issue?

3

Re: SMTP Error (451): Failed to add recipient

I fixed this issue by editing the /etc/init.d/cbpolicyd script. Like so:

Change the following lines:
# source function library
. /etc/init.d/functions

# Get config.
. /etc/sysconfig/network

daemon /usr/sbin/cbpolicyd --config /etc/policyd/cluebringer.conf

To:
# source function library
. /etc/rc.status

# Get config.
. /etc/sysconfig/network/config

startproc /usr/sbin/cbpolicyd --config /etc/policyd/cluebringer.conf

Save update systemctl and start service.

systemctl --system daemon-reload

systemctl start cbpolicyd

Done smile