postfix + virtual + spam - BSD

This is a discussion on postfix + virtual + spam - BSD ; Hello Postfix with virtual domains with amavis. Users with virtual accounts in Maildir format. How to force postfix (virtual?) to drop mails with spam header=YES into user's spam directory (instead of incoming directory) ? Thanx...

+ Reply to Thread
Results 1 to 6 of 6

Thread: postfix + virtual + spam

  1. postfix + virtual + spam

    Hello

    Postfix with virtual domains with amavis. Users with virtual accounts in
    Maildir format.
    How to force postfix (virtual?) to drop mails with spam header=YES into
    user's spam directory (instead of incoming directory) ?

    Thanx

  2. Re: postfix + virtual + spam

    avlee wrote:
    > Hello
    >
    > Postfix with virtual domains with amavis. Users with virtual accounts in
    > Maildir format.
    > How to force postfix (virtual?) to drop mails with spam header=YES into
    > user's spam directory (instead of incoming directory) ?
    >
    > Thanx


    header_checks

    Peter

    --
    http://www.boosten.org

    Mail: peter at boosten dot org

  3. Re: postfix + virtual + spam

    Hello

    > avlee wrote:
    >> Hello
    >>
    >> Postfix with virtual domains with amavis. Users with virtual accountsin
    >> Maildir format.
    >> How to force postfix (virtual?) to drop mails with spam header=YES into
    >> user's spam directory (instead of incoming directory) ?
    >>
    >> Thanx

    >
    > header_checks
    >


    Which action ? I can't use FILTER because it overrides content_filter
    (used by my amavis).

    Can it be done using REDIRECT ? How ??

    Thanx

  4. Re: postfix + virtual + spam

    vertigo wrote:
    > Hello
    >
    > Which action ? I can't use FILTER because it overrides content_filter
    > (used by my amavis).
    >
    > Can it be done using REDIRECT ? How ??
    >


    In your main.cf:
    header_checks = regexp:/etc/postfix/header_checks

    In your header_checks file:
    /^X-Spam-Flag: YES/ REDIRECT anymailbox@you.want

    Of course your regexp should be a bit more intelligent, since
    you're working with virtual domains.

    Peter

    --
    http://www.boosten.org

    Mail: peter at boosten dot org

  5. Re: postfix + virtual + spam

    Hello

    > vertigo wrote:
    >> Hello
    >>
    >> Which action ? I can't use FILTER because it overrides content_filter
    >> (used by my amavis).
    >>
    >> Can it be done using REDIRECT ? How ??
    >>

    >
    > In your main.cf:
    > header_checks = regexp:/etc/postfix/header_checks
    >
    > In your header_checks file:
    > /^X-Spam-Flag: YES/ REDIRECT anymailbox@you.want
    >
    > Of course your regexp should be a bit more intelligent, since
    > you're working with virtual domains.


    But i have maildir. How can i contruct REDIRECT to forward mail to user's
    Maildir/spam folder ?

    Thanx

  6. Re: postfix + virtual + spam

    avlee writes:

    > Postfix with virtual domains with amavis. Users with virtual accounts
    > in Maildir format.
    > How to force postfix (virtual?) to drop mails with spam header=YES into
    > user's spam directory (instead of incoming directory) ?


    Use maildrop for local delivery. (And NOT procmail. procmail loses
    mail far too easily.)

    The whole setup is non-trivial but there's lots of information
    floating around. Ask with details about your setup again if you really
    can't get it working.

    Mit schönem Gruß
    - Thomas


    --
    No need to close the door so fast
    I'm very fragile not built to last
    - Men at Work, High Wire
    /* PGP key auf Wunsch per e-mail || PGP key sent on request */

+ Reply to Thread