OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Access(5) PREPEND

From: Noel Jones (njonesmegan.vbhcs.org)
Date: Mon Mar 24 2008 - 10:28:31 CDT


Dick Middleton wrote:
> Does the PREPEND action (and I suppose other side-effect actions) in
> access(5) return OK, DUNNO or even REJECT? I'm guessing OK but is it
> possible to choose?
>
> Dick

All the actions listed on the access(5) man page under "Other
Actions" use DUNNO internally. This is not configurable.

If you need one of these actions to return something else,
build your own with smtpd_restriction_classes
http://www.postfix.org/RESTRICTION_CLASS_README.html

For example, I like to use a HOLD and OK action to hold mail
for inspection that would otherwise be rejected by a later rule:
# main.cf
smtpd_restriction_classes = HOLD_OK

HOLD_OK =
   static:HOLD,
   permit

--
Noel Jones