1 (edited by stefanreisner 2015-10-30 21:35:40)

Topic: Won't recieve mail (status=deferred(temporary failure))

Hi there,

I just installed iRedMail on my Debian.
Everything seems to work fine, but when I try to send an email with Roundcube I get an error.

mail.log:

Oct 29 20:43:54 roundcube: <khjp7avd> SMTP Error: Failed to add recipient 'xxx@xxx.net'. 4.3.5 Server configuration problem (Code: 451) in /opt/www/roundcubemail-1.1.1/program/lib/Roundcube/rcube.php on line 1714 (POST /mail/?_task=mail&_unlock=loading1446147833562&_lang=de_DE&_framed=1?_task=mail&_action=send)
Oct 29 20:43:54  roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /opt/www/roundcubemail-1.1.1/vendor/pear/net_smtp/Net/SMTP.php on line 489
Oct 29 20:43:54  roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /opt/www/roundcubemail-1.1.1/vendor/pear/net_smtp/Net/SMTP.php on line 263
Oct 29 20:43:54  roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /opt/www/roundcubemail-1.1.1/vendor/pear/net_smtp/Net/SMTP.php on line 492
Oct 29 20:43:54 roundcube: PHP Deprecated:  Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in /opt/www/roundcubemail-1.1.1/vendor/pear/net_smtp/Net/SMTP.php on line 495
Oct 29 20:43:54 DHost postfix/smtpd[5135]: disconnect from localhost[127.0.0.1]

mail.err:

SMTP Error: Failed to add recipient 'xxxr@xxx.net'. 4.3.5 Server configuration problem (Code: 451) in /opt/www/roundcubemail-1.1.1/program/lib/Roundcube/rcube.php on line 1714 (POST /mail/?_task=mail&_unlock=loading1446147833562&_lang=de_DE&_framed=1?_task=mail&_action=send)

Do you know what I have to do to fix this problem?

Greetings

EDIT:
I tested if the server is able to receive mail. The mail.log says:

postfix/smtpd[6587]: connect from mout.gmx.net[212.227.17.21]
Oct 29 21:09:29 DHost postfix/smtpd[6587]: warning: connect to 127.0.0.1:7777: Connection refused
Oct 29 21:09:29 DHost postfix/smtpd[6587]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Oct 29 21:09:30 DHost postfix/smtpd[6587]: warning: connect to 127.0.0.1:7777: Connection refused
Oct 29 21:09:30 DHost postfix/smtpd[6587]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Oct 29 21:09:30 DHost postfix/smtpd[6587]: NOQUEUE: reject: RCPT from mout.gmx.net[212.227.17.21]: 451 4.3.5 Server configuration problem; from=<xxx@gmx.net> to=<info@xxx.at> proto=ESMTP helo=<mout.gmx.net>
Oct 29 21:09:30 DHost postfix/smtpd[6587]: disconnect from mout.gmx.net[212.227.17.21]

AND iredapd won't start:

Okt 29 20:37:13 DHost iredapd[4951]: Starting iredapd ...
Okt 29 20:37:13 DHost iredapd[4951]: Traceback (most recent call last):
Okt 29 20:37:13 DHost iredapd[4951]: File "/opt/iredapd/iredapd.py", line 245, in <module>
Okt 29 20:37:13 DHost iredapd[4951]: main()
Okt 29 20:37:13 DHost iredapd[4951]: File "/opt/iredapd/iredapd.py", line 217, in main
Okt 29 20:37:13 DHost iredapd[4951]: uid = pwd.getpwnam(settings.run_as_user)[2]
Okt 29 20:37:13 DHost iredapd[4951]: KeyError: 'getpwnam(): name not found: iredapd'

Edit 1.1

I now edited main.cf and put a # before smtpd_recipient_restrictions. The mail.log output is now:

Oct 29 21:33:47 DHost postfix/qmgr[4330]: D35E8362B00: from=<xxx@gmx.net>, size=2774, nrcpt=1 (queue active)
Oct 29 21:33:47 DHost amavis[1763]: (01763-01) Passed CLEAN {RelayedInternal}, MYUSERS LOCAL [212.227.17.20]:51006 [178.165.133.2] <xxx@gmx.net> -> <info@xxx.at>, Queue-ID: 35CEB362AFC, Message-ID: <trinity-fd0ae218-cb3b-4c40-b6d1-1fb4067c44c0-1446150826390@msvc-mesg-gmx106>, mail_id: hqNkWJPxkT-y, Hits: 0.556, size: 2321, queued_as: D35E8362B00, 490 ms
Oct 29 21:33:47 DHost postfix/smtp[7345]: 35CEB362AFC: to=<info@xxx.at>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.71, delays=0.21/0/0.01/0.49, 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 D35E8362B00)
Oct 29 21:33:47 DHost postfix/qmgr[4330]: 35CEB362AFC: removed
Oct 29 21:33:47 DHost postfix/pipe[7351]: D35E8362B00: to=<info@xxx.at>, relay=dovecot, delay=0.03, delays=0/0/0/0.02, dsn=4.3.0, status=deferred (temporary failure)

And no mails in the inbox.



- iRedMail version: 0.9.2
- Linux/BSD distribution name and version: Debian 8
- Store mail accounts in which backend: Mysql
- Web server:Apache
- Manage mail accounts with iRedAdmin-Pro? No

----

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

2

Re: Won't recieve mail (status=deferred(temporary failure))

stefanreisner wrote:

AND iredapd won't start:
Okt 29 20:37:13 DHost iredapd[4951]: Starting iredapd ...
Okt 29 20:37:13 DHost iredapd[4951]: Traceback (most recent call last):
Okt 29 20:37:13 DHost iredapd[4951]: File "/opt/iredapd/iredapd.py", line 245, in <module>
Okt 29 20:37:13 DHost iredapd[4951]: main()
Okt 29 20:37:13 DHost iredapd[4951]: File "/opt/iredapd/iredapd.py", line 217, in main
Okt 29 20:37:13 DHost iredapd[4951]: uid = pwd.getpwnam(settings.run_as_user)[2]
Okt 29 20:37:13 DHost iredapd[4951]: KeyError: 'getpwnam(): name not found: iredapd'

Do you have the system user 'iredapd'? Please show us output of command "id iredapd".