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.