From: Rudy Gevaert on
Hello postfix users,

I have question concerning the hold queue.

I have a smtpd_*_restriction map that puts certain mails in the hold
queue. (E.g. phishing messages).

My idea was to then update the restriction to DISCARD or REJECT the
message and to move the mails out of the hold queue.

However, the re-queued mail gets delivered to the mailbox. Is this
default behavior? Can it be changed?

Thanks in advance,

Rudy

From: Wietse Venema on
Rudy Gevaert:
> Hello postfix users,
>
> I have question concerning the hold queue.
>
> I have a smtpd_*_restriction map that puts certain mails in the hold
> queue. (E.g. phishing messages).
>
> My idea was to then update the restriction to DISCARD or REJECT the
> message and to move the mails out of the hold queue.
>
> However, the re-queued mail gets delivered to the mailbox. Is this
> default behavior? Can it be changed?

The smtpd_*_restrictions apply ONLY when mail arrives via SMTP.

However, header_checks, body_checks and external content filters
can still be used when requeuing mail.

Wietse

From: Rudy Gevaert on
Wietse Venema wrote:
> Rudy Gevaert:
>> Hello postfix users,
>>
>> I have question concerning the hold queue.
>>
>> I have a smtpd_*_restriction map that puts certain mails in the hold
>> queue. (E.g. phishing messages).
>>
>> My idea was to then update the restriction to DISCARD or REJECT the
>> message and to move the mails out of the hold queue.
>>
>> However, the re-queued mail gets delivered to the mailbox. Is this
>> default behavior? Can it be changed?
>
> The smtpd_*_restrictions apply ONLY when mail arrives via SMTP.
>
> However, header_checks, body_checks and external content filters
> can still be used when requeuing mail.

Thanks for clarifying the above

Rudy

From: Victor Duchovni on
On Fri, Apr 16, 2010 at 08:24:52AM -0400, Wietse Venema wrote:

> > However, the re-queued mail gets delivered to the mailbox. Is this
> > default behavior? Can it be changed?
>
> The smtpd_*_restrictions apply ONLY when mail arrives via SMTP.
>
> However, header_checks, body_checks and external content filters
> can still be used when requeuing mail.

Note, "requeuing" above means "postsuper -r" not "postsuper -H", which
simply "unholds" the message and allows it to be delivered with high
latency as the only impact of "HOLD".

--
Viktor.

P.S. Morgan Stanley is looking for a New York City based, Senior Unix
system/email administrator to architect and sustain our perimeter email
environment. If you are interested, please drop me a note.