Bug #2108
SMTP temporary error on non-existing recipients
Status: | CLOSED | Start date: | 08/21/2013 | |
---|---|---|---|---|
Priority: | Normal | Due date: | 08/21/2013 | |
Assignee: | - | % Done: | 100% | |
Category: | nethserver-mail-common | |||
Target version: | v6.4-beta2 | |||
Security class: | Resolution: | |||
Affected version: | v6.4-beta1 | NEEDINFO: | No |
Description
Postfix returns a SMTP temporary error code (450) for non-existing recipients. A permanent error (550) was expected.
RCPT To: <nx@nethesis.it> 450 4.1.1 <nx@nethesis.it>: Recipient address rejected: unverified address: host nethservice.nethesis.it[/var/run/dovecot/lmtp] said: 550 5.1.1 <nx@nethesis.it> User doesn't exist: nx@nethesis.it (in reply to RCPT TO command)
Related issues
Associated revisions
/etc/postfix/main.cf template: Permanent error for non-existing recipients (SMTP code 550). Refs #2108
History
#1 Updated by Davide Principi almost 8 years ago
I was missing the following advice from Postfix Address Verification Howto
The
unverified_recipient_reject_code
parameter (default 450) specifies the numerical Postfix SMTP server reply code when a recipient address is known to bounce. Change this setting into 550 when you trust Postfix's judgments.
#2 Updated by Davide Principi almost 8 years ago
Moreover I would add a less verbose error explanation, by defining a custom message in unverified_recipient_reject_reason parameter.
In postconf
man page they suggest the sharp "Recipient address lookup failed".
#3 Updated by Davide Principi almost 8 years ago
- Due date set to 08/21/2013
- Status changed from NEW to TRIAGED
- Start date set to 08/21/2013
- % Done changed from 0 to 20
- Estimated time set to 2.00
#4 Updated by Davide Principi almost 8 years ago
- Status changed from TRIAGED to ON_DEV
- Assignee set to Davide Principi
- % Done changed from 20 to 30
#5 Updated by Davide Principi almost 8 years ago
- Status changed from ON_DEV to MODIFIED
- % Done changed from 30 to 60
Test case
Before update:
# ( for C in 'EHLO example.com' 'MAIL From: <me@example.com>' 'RCPT To: <nx@vboxnet0.tld>'; do sleep 3; echo $C; done; sleep 5) | tee /dev/stderr | nc localhost 25 220 davidep2.vboxnet0.tld ESMTP Postfix EHLO example.com 250-davidep2.vboxnet0.tld 250-PIPELINING 250-SIZE 20000000 250-VRFY 250-ETRN 250-STARTTLS 250-XCLIENT NAME ADDR PROTO HELO REVERSE_NAME PORT LOGIN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN MAIL From: <me@example.com> 250 2.1.0 Ok RCPT To: <nx@vboxnet0.tld> 450 4.1.1 <nx@vboxnet0.tld>: Recipient address rejected: unverified address: host davidep2.vboxnet0.tld[/var/run/dovecot/lmtp] said: 550 5.1.1 <nx@vboxnet0.tld> User doesn't exist: nx@vboxnet0.tld (in reply to RCPT TO command)
Update to nethserver-mail-common-1.3.0-4.0gitf6f5b2c6.ns6.noarch.rpm; the last response must be
550 5.1.1 <nx@vboxnet0.tld>: Recipient address rejected: undeliverable address: host davidep2.vboxnet0.tld[/var/run/dovecot/lmtp] said: 550 5.1.1 <nx@vboxnet0.tld> User doesn't exist: nx@vboxnet0.tld (in reply to RCPT TO command)
#6 Updated by Davide Principi almost 8 years ago
- Status changed from MODIFIED to ON_QA
- Assignee deleted (
Davide Principi) - % Done changed from 60 to 70
In nethserver-testing:
nethserver-mail-common-1.3.0-4.0gitf6f5b2c6.ns6.noarch.rpm
QA NOTE
verify #2093 before this issue
#7 Updated by Giacomo Sanchietti almost 8 years ago
- Assignee set to Giacomo Sanchietti
#8 Updated by Giacomo Sanchietti almost 8 years ago
Tested with nethserver-mail-common-1.3.0-4.0gitf6f5b2c6.ns6.noarch .
Server correctly respond with error 550:
[root@test t]# ( for C in 'EHLO example.com' 'MAIL From: <me@example.com>' 'RCPT To: <nx@test.loc>'; do sleep 3; echo $C; done; sleep 5) | tee /dev/stderr | nc localhost 25 220 test.test.loc ESMTP Postfix EHLO example.com 250-test.test.loc 250-PIPELINING 250-SIZE 20000000 250-VRFY 250-ETRN 250-STARTTLS 250-XCLIENT NAME ADDR PROTO HELO REVERSE_NAME PORT LOGIN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN MAIL From: <me@example.com> 250 2.1.0 Ok RCPT To: <nx@test.loc> 550 5.1.1 <nx@test.loc>: Recipient address rejected: undeliverable address: host test.test.loc[/var/run/dovecot/lmtp] said: 550 5.1.1 <nx@test.loc> User doesn't exist: nx@test.loc (in reply to RCPT TO command)
Tested also with Thunderbird.
#9 Updated by Giacomo Sanchietti almost 8 years ago
- Status changed from ON_QA to VERIFIED
- Assignee deleted (
Giacomo Sanchietti) - % Done changed from 70 to 90
Marking as VERIFIED.
#10 Updated by Davide Principi almost 8 years ago
- Status changed from VERIFIED to CLOSED
- % Done changed from 90 to 100
In nethserver-updates:
nethserver-mail-common-1.3.1-1.ns6.noarch.rpm
nethserver-mail-filter-1.1.2-1.ns6.src.rpm
nethserver-mail-server-1.4.6-1.ns6.noarch.rpm
nethserver-antivirus-1.0.5-1.ns6.noarch.rpm
Dependencies:
unzoo-4.4-7.el6.x86_64.rpm
altermime-0.3.10-3.el6.x86_64.rpm
amavisd-new-2.8.0-4.el6.noarch.rpm
clamav-db-0.97.8-1.el6.x86_64.rpm
clamav-0.97.8-1.el6.x86_64.rpm
clamd-0.97.8-1.el6.x86_64.rpm
lrzip-0.614-1.el6.x86_64.rpm
p7zip-plugins-9.20.1-2.el6.x86_64.rpm
perl-DBD-SQLite-1.27-3.el6.x86_64.rpm
perl-Razor-Agent-2.85-6.el6.x86_64.rpm