dar...@chaosreigns.com put forth on 2/19/2010 11:26 PM:
> I want to collect all spam delivered to my server to an invalid user /
> domain.  luser_relay seems to be doing part of the job, but how do I get it
> around or through spamassassin which is set up as a pre-queue content
> filter?  It looks like skipping the smtpd_proxy_filter isn't an option, so
> can I set a header or something for spamassassin to whitelist on?
> 
> 
> I love running spamassassin as a pre-queue filter, knowing that any false
> positives will get an error message, without causing any backscatter.
> 
> (Honey pot, for maintenance of whitelist / blacklist type things.)

Just add

smtpd_recipient_restrictions =
        check_recipient_access hash:/etc/postfix/honey_pot_whitelist

at the very top of your smtpd_recipient_restrictions list.


/etc/postfix/honey_pot_whitelist
# white list honey pot addresses

honey-...@yourdomain.com        OK
sw33t3r-...@yourdomain.com      OK
sw33t3st-...@yourdomain.com     OK


All of the above assumes you're using the "all smtpd_foo_restrictions are
consolidated into smtpd_recipient_restrictions" style main.cf.  If you're using
the classic style, with separate smtpd_foo_restrictions sections, you'll need to
add the check_recipient_access line to the very top of each of section, because
an OK in one section means nothing when the next restriction section gets
evaluated.  "First match wins" but only within a given restriction section.

smtpd_client_restrictions
smtpd_sender_restrictions
smtpd_helo_restrictions
smtpd_recipients_restrictions

-- 
Stan

Reply via email to