Res a écrit : > Is it possible to set the default reject message for this type? So in > access file "1.2.3.4 reject" only needs 'reject' rather than > re-entering the custom message for every entry. >
[method 1] use a script. sed -e s'/%REJECT_NO_5%/reject blah blah/' \ /etc/postfix/client_access.in > \ /etc/postfix/client_access then use a Makefile to do this as well as 'postmap ...' things. [method 2] use restriction classes: smtpd_restriction_classes = ... my_reject_no_5 my_reject_no_5 = check_client_access pcre:/etc/postfix/my_reject_5 == my_reject_5 /./ reject blah blah == my_access 1.2.3.4 my_reject_no_5 [method 3] use sql > The closest I can see is the default_rbl_reply, if this is not currently > possible, Wietse, if you read this, could you perhaps consider this as a > future feature request please :) > > TIA >