catching some spam with warn_if_reject and reject_unknown_*

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

catching some spam with warn_if_reject and reject_unknown_*

sftf-2
Hi.
I would like temporary to catch some spam, rejected by reject_unknown_*
smtpd_client_restrictions into dedicated mailbox (for DSPAM).
But I don't figure how to distinguish such messages.
Somthing like this:
------------------------------------------------------------
inet_smtpd_client_restrictions_class=
  warn_if_reject,
  reject_unknown_reverse_client_hostname
...
somehow redirect "warn_if_rejected" messages to "rejected" mailbox
------------------------------------------------------------
Any help will be appreciated!

Reply | Threaded
Open this post in threaded view
|

Re: catching some spam with warn_if_reject and reject_unknown_*

Victor Duchovni
On Tue, May 06, 2008 at 11:09:03AM +0700, [hidden email] wrote:

> Hi.
> I would like temporary to catch some spam, rejected by reject_unknown_*
> smtpd_client_restrictions into dedicated mailbox (for DSPAM).
> But I don't figure how to distinguish such messages.
> Somthing like this:
> ------------------------------------------------------------
> inet_smtpd_client_restrictions_class=
>   warn_if_reject,
>   reject_unknown_reverse_client_hostname
> ...
> somehow redirect "warn_if_rejected" messages to "rejected" mailbox
> ------------------------------------------------------------
> Any help will be appreciated!

Not possible. The *only* side-effect of "warn_if_reject reject" is
logging, the message is not rejected, and is otherwise processed as
though the restriction were simply not there.

You may have more luck with "FILTER" or "PREPEND", but these can't be
based on the various "unknown_mumble" events. Sorry, the Postfix SMTP
server does not have:

        if (condition)
            action

it only has a monolithic "reject_if_condition". This keeps the restriction
language relatively simple, but limits its power.

--
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:[hidden email]?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.
Reply | Threaded
Open this post in threaded view
|

Re[2]: catching some spam with warn_if_reject and reject_unknown_*

sftf-2
VD> Not possible. The *only* side-effect of "warn_if_reject reject" is
VD> logging, the message is not rejected, and is otherwise processed as
VD> though the restriction were simply not there.
Even any "marks" in message header fields?

Reply | Threaded
Open this post in threaded view
|

Re: catching some spam with warn_if_reject and reject_unknown_*

Victor Duchovni
On Tue, May 06, 2008 at 12:21:52PM +0700, [hidden email] wrote:

> VD> Not possible. The *only* side-effect of "warn_if_reject reject" is
> VD> logging, the message is not rejected, and is otherwise processed as
> VD> though the restriction were simply not there.
>
> Even any "marks" in message header fields?

Even if I repeat myself, a bit louder, will it make a difference? :-)

    NOT possible. The *ONLY* side-effect of "warn_if_reject reject" is
    logging, the message is not rejected, and is otherwise processed as
    though the restriction were simply NOT THERE.

--
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:[hidden email]?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.