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:<ch...@chrisdos.com> XVERP"
       echo "RCPT TO:<no-one-h...@chrisdos.com>"
       echo "DATA"
       echo "From: <ch...@chrisdos.com>"
       echo "To: <no-one-h...@chrisdos.com>"
       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 "chris+no-one-home=chrisdos....@chrisdos.com" 
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=<20090317213022.4e36128c...@mail-dr.sharperagent.com>
Mar 17 15:30:22 mail-dr postfix/qmgr[4432]: 4E36128CEDD: 
from=<ch...@chrisdos.com>, 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=<no-one-h...@chrisdos.com>,
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 
<no-one-h...@chrisdos.com>: 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=<20090317213022.ec0fb290...@mail-dr.sharperagent.com>
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=<chris+no-one-home=chrisdos....@chrisdos.com>,
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 
<chris+no-one-home=chrisdos....@chrisdos.com>: 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

Reply via email to