On 9/11/2011 3:40 PM, Steve wrote:
> On 11/09/2011 15:58, John Hardin wrote:
>
>> Ah. Let me throw another idea your way, then: milter-regex. It would
>> allow you to validate recipient addresses against those regexes and
>> reject at SMTP-time if they don't match. Then the catch-all would only
>> apply to the ones that match the regex but aren't at the moment actual
>> mailboxes. Would reducing the inbound volume that way be acceptable?
> That's an interesting idea... I'd have to work out how to do that from
> Postfix - but it would definitely cut the volume of spam I have to process.

Use a check_recipient_access regexp: or pcre: map.

Off the top of my head:  ( s/example.com/your-domain/)
IF /@example\.com$/
/some-allowed-pattern/  DUNNO
/explicitly-bad-pattern/  REJECT invalid recipient detected
ENDIF

> So, how do I get Postfix, my MTA, to put the envelope address into
> the headers? 

Use a check_sender_access map (under smtpd_data_restrictions so you
don't get multiple headers).

/^(.*)$/    PREPEND  X-Sender: $1

See the postfix docs or the postfix-users list for more details.



  -- Noel Jones

Reply via email to