postfix-users October 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Posfix: deliver to spam folder analog of reject_r

Posfix: deliver to spam folder analog of reject_rbl_client

From: Покотиленко Костик <casper_at_nospam>
Date: Tue Oct 26 2010 - 11:11:59 GMT


I have the following postfix configuration:

smtpd_recipient_restrictions =
    check_recipient_access hash:/etc/postfix/recipients_access,
    check_client_access cidr:/etc/postfix/access_noauth,
    check_client_access hash:/etc/postfix/rbl_whitelist,
    check_sender_access hash:/etc/postfix/rbl_sender_whitelist,
    check_sender_access hash:/etc/postfix/rhsbl_sender_domain_whitelist,
    check_sender_access hash:/etc/postfix/sender_access,
    check_sender_access hash:/etc/postfix/maps/verify_domain

which is working fine but... is very agressive, many ISPs get blocked for several years and
are not willing to delist b/c sorbs doesn't offer free delist for them.

So there is problem with false-positives. There are not much of them,
but all cases needs additional investigation.

>From other side this combination ( + doesn't pass
spam almost at all, they even doesn't leave anything for spamassassin,
so I don't want to remove checks.

So the question is: how it is possible to direct SPAM mail to a user's
imap spam folder?

Postfix works with cyrus by lmtp. I googled alot for this question and
the only way of doing this I was able to find is to use procmail +

If there is a way to set specific header instead of rejecting mail it
would be easy to move tagged mail to spam folder by SEIVE filters. This
would be prefered variant.

-- Покотиленко Костик <>