1

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

hello,

we are talking about the CentOS 5.6 64 Bit ...

while waiting for upgrade to pro ver I tested the free ver and I received following error from roundcube.
SMTP Error (451): Failed to add recipient "xxx@hotmail.com" (4.3.5 Server configuration problem)

The log:

Apr 20 13:52:40 mail postfix/smtpd[3848]: connect from localhost.localdomain[127.0.0.1]
Apr 20 13:52:41 mail postfix/smtpd[3848]: warning: connect to 127.0.0.1:7777: Connection refused
Apr 20 13:52:41 mail postfix/smtpd[3848]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Apr 20 13:52:42 mail postfix/smtpd[3848]: warning: connect to 127.0.0.1:7777: Connection refused
Apr 20 13:52:42 mail postfix/smtpd[3848]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Apr 20 13:52:42 mail postfix/smtpd[3848]: NOQUEUE: reject: RCPT from localhost.localdomain[127.0.0.1]: 451 4.3.5 Server configuration problem; from=<ww$
Apr 20 13:52:42 mail roundcube: Invalid response code received from server (451):
Apr 20 13:52:42 mail roundcube: SMTP Error: SMTP error: Failed to add recipient 'xxx@hotmail.com' in /var/www/roundcubemail-0.5.1/program/steps/mail/func.$
Apr 20 13:52:42 mail postfix/smtpd[3848]: disconnect from localhost.localdomain[127.0.0.1]

I found the more or less the same problem on another post on this forum but it was a debian linux....

Could you help me to fix this on the CentOS ?

Thank You
cheers

2

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

Apr 20 13:52:41 mail postfix/smtpd[3848]: warning: problem talking to server 127.0.0.1:7777: Connection refused

iRedAPD service is not running. Could you try to start it manually?

# /etc/init.d/iredapd restart

And make sure it will be started automatically when system start up:

# chkconfig --level 345 iredapd on

3

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

now I receive the message Mail Sent, so it`s ok, but the email never reach the destination.... not sure what causes this ??

4

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

OviVan wrote:

but the email never reach the destination....

What do you mean? You didn't receive mails which were sent before restarting iredapd?

5

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

I mean when I restarted the iredpad and tried to send the email I got the message Email Sent Successfully...
BUT this email which is sent, I never received it... in short words, it seems that server is sending the email BUT email never reaches the destination... like it`s not sent at all, but the roundcube says that email is sent...

6

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

You should check postfix maillog and dovecot log file to check what happened:
/var/log/maillog
/var/log/dovecot.log
/var/log/sieve.log

7

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

log says nothing to me, can`t see what`s wrong..... could be something with hosting provider and running centOS on Virtuzzo ?
I know from my     experience when You are running virtual machine on virtuzzo, there is something wired for example:

You cannot change the hostname
iptables goes crazy
You cannot adjust the clock time-date

what more could be god knows...
but any way here is the log output:

/var/log/maillog :

Apr 21 05:24:59 mail postfix/qmgr[1622]: 3109D119810BD: from=<xxx@xxx.co>, size=530, nrcpt=1 (queue active)
Apr 21 05:24:59 mail postfix/smtp[3134]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Apr 21 05:24:59 mail postfix/smtp[3134]: 3109D119810BD: to=<xxx@xxxx.net>, relay=none, delay=5716, delays=5716/0.03/0/0, dsn=4.4.1, status=defe$
Apr 21 05:27:18 mail postfix/smtpd[3200]: connect from localhost.localdomain[127.0.0.1]
Apr 21 05:27:18 mail postfix/smtpd[3200]: 9D4E01198107B: client=localhost.localdomain[127.0.0.1], sasl_method=LOGIN, sasl_username=xxx@xxx.co
Apr 21 05:27:18 mail postfix/cleanup[3207]: 9D4E01198107B: message-id=<cdbadcac2eb585ecc61819f0ec60d0f7@xxx.co>
Apr 21 05:27:18 mail postfix/qmgr[1622]: 9D4E01198107B: from=<xxx@xxx.co>, size=526, nrcpt=1 (queue active)
Apr 21 05:27:18 mail roundcube: User xxx@xxx.co [84.49.11.229]; Message for xxx@xxx.net; 250: 2.0.0 Ok: queued as 9D4E01198107B
Apr 21 05:27:18 mail postfix/smtp[3212]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Apr 21 05:27:19 mail postfix/smtp[3212]: 9D4E01198107B: to=<xxx@xxx.net>, relay=none, delay=0.67, delays=0.63/0.03/0/0, dsn=4.4.1, status=defe$
Apr 21 05:27:19 mail postfix/smtpd[3200]: disconnect from localhost.localdomain[127.0.0.1]

/var/log/dovecot.log

Apr 21 05:26:44 imap-login: Info: Login: user=<xxx@xxx.co>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Apr 21 05:26:44 IMAP(xxx@xxx.co): Info: Disconnected: Logged out bytes=29/419
Apr 21 05:26:45 imap-login: Info: Login: user=<xxx@xxx.co>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Apr 21 05:26:45 dict: Info: mysql: Connected to localhost (vmail)
Apr 21 05:26:45 IMAP(xxx@xxx.co): Info: Disconnected: Logged out bytes=70/679
Apr 21 05:26:47 imap-login: Info: Login: user=<xxx@xxx.co>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Apr 21 05:26:47 IMAP(xxx@xxx.co): Info: Disconnected: Logged out bytes=50/410
Apr 21 05:26:47 imap-login: Info: Login: user=<xxx@xxx.co>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Apr 21 05:26:47 IMAP(xxx@xxx.co): Info: Disconnected: Logged out bytes=284/1000
Apr 21 05:26:52 imap-login: Info: Login: user=<xxx@xxx.co>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Apr 21 05:26:52 IMAP(xxx@xxx.co): Info: Disconnected: Logged out bytes=32/390
Apr 21 05:26:53 imap-login: Info: Login: user=<xxx@xxx.co>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Apr 21 05:26:53 IMAP(xxx@xxx.co): Info: Disconnected: Logged out bytes=44/582
Apr 21 05:27:17 imap-login: Info: Login: user=<xxx@xxx.co>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Apr 21 05:27:19 IMAP(xxx@xxx.co): Info: Disconnected: Logged out bytes=420/505
Apr 21 05:27:20 imap-login: Info: Login: user=<xxx@xxx.co>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Apr 21 05:27:20 IMAP(xxx@xxx.co): Info: Disconnected: Logged out bytes=70/680
Apr 21 05:27:21 imap-login: Info: Login: user=<xxx@xxx.co>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Apr 21 05:27:21 auth-worker(default): Info: mysql: Connected to localhost (vmail)
Apr 21 05:27:21 IMAP(xxx@xxx.co): Info: Disconnected: Logged out bytes=50/410
Apr 21 05:27:21 imap-login: Info: Login: user=<xxx@xxx.co>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Apr 21 05:27:21 IMAP(xxx@xxx.co): Info: Disconnected: Logged out bytes=284/1000


/var/log/sieve.log


Apr 21 03:37:25 deliver(xxx@xxx.co): Info: msgid=<20110421083724.50D9E119810BE@mail.xxx.co>: saved mail to INBOX
Apr 21 03:37:25 deliver(xxx@xxx.co): Info: msgid=<20110421083724.C25E8119810BB@mail.xxx.co>: saved mail to INBOX

8

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

OviVan wrote:

Apr 21 05:24:59 mail postfix/smtp[3134]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused

Amavisd service is not running. That's why you can't receive mails.
Try this:

# /etc/init.d/amavisd restart

9

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

thank You it work now... fixed.....