I'm at a loss why this is not working. I'm sending a VERP SMTP e-mail using
the following script:
(
echo "EHLO $(uname -n)"
echo "MAIL FROM:<[email protected]> XVERP"
echo "RCPT TO:<[email protected]>"
echo "DATA"
echo "From: <[email protected]>"
echo "To: <[email protected]>"
echo "Subject: Testing VERP"
echo ""
echo "Testing 123"
echo "."
echo "QUIT"
) | telnet localhost 25
I have this is my main.cf:
default_verp_delimiters = +=
verp_delimiter_filter = -+=
disable_verp_bounces = no
smtpd_authorized_verp_clients = $mynetworks
propagate_unmatched_extensions = canonical, virtual
virtual_alias_maps = hash:/etc/postfix/virtual
header_checks = regexp:/etc/postfix/header_checks.regexp
nested_header_checks = regexp:/etc/postfix/header_checks.regexp
My header_checks.regexp looks like this:
/^.+\+.+\=...@.+\..+$/ DISCARD
/^.+\+.+\=...@.+\..+$/ REDIRECT verpbounce
I've tested the header check by using this:
postmap -q "[email protected]"
regexp:header_checks.regexp
and it comes back with a result of DISCARD.
I can't even get the DISCARD to work yet, much less the redirect to a alias
that calls a script.
According to the log it's doing VERP, it gets bounced, but not discarded:
Mar 17 15:30:22 mail-dr postfix/smtpd[4455]: connect from localhost[127.0.0.1]
Mar 17 15:30:22 mail-dr postfix/smtpd[4455]: 4E36128CEDD:
client=localhost[127.0.0.1]
Mar 17 15:30:22 mail-dr postfix/cleanup[4461]: 4E36128CEDD:
message-id=<[email protected]>
Mar 17 15:30:22 mail-dr postfix/qmgr[4432]: 4E36128CEDD:
from=<[email protected]>, size=561, nrcpt=1 (queue
active)
Mar 17 15:30:22 mail-dr postfix/smtpd[4455]: lost connection after QUIT from
localhost[127.0.0.1]
Mar 17 15:30:22 mail-dr postfix/smtpd[4455]: disconnect from
localhost[127.0.0.1]
Mar 17 15:30:22 mail-dr postfix/smtp[4462]: 4E36128CEDD:
to=<[email protected]>,
relay=mail.chrisdos.com[71.33.251.73]:25, delay=0.63,
delays=0.06/0.01/0.19/0.37, dsn=5.1.1, status=bounced
(host mail.chrisdos.com[71.33.251.73] said: 550 5.1.1
<[email protected]>: Recipient address rejected:
User unknown in local recipient table (in reply to RCPT TO command))
Mar 17 15:30:22 mail-dr postfix/cleanup[4461]: EC0FB290278:
message-id=<[email protected]>
Mar 17 15:30:22 mail-dr postfix/qmgr[4432]: EC0FB290278: from=<>, size=2830,
nrcpt=1 (queue active)
Mar 17 15:30:22 mail-dr postfix/bounce[4463]: 4E36128CEDD: sender non-delivery
notification: EC0FB290278
Mar 17 15:30:22 mail-dr postfix/qmgr[4432]: 4E36128CEDD: removed
Mar 17 15:30:23 mail-dr postfix/smtp[4462]: EC0FB290278:
to=<[email protected]>,
relay=mail.chrisdos.com[71.33.251.73]:25, delay=0.19, delays=0.02/0/0.11/0.05,
dsn=5.1.1, status=bounced (host
mail.chrisdos.com[71.33.251.73] said: 550 5.1.1
<[email protected]>: Recipient
address rejected: User unknown in local recipient table (in reply to RCPT TO
command))
Mar 17 15:30:23 mail-dr postfix/qmgr[4432]: EC0FB290278: removed
Does anyone have any ideas about why this is not working?
Chris