Noel Jones wrote:
Steve wrote:
Hi List,
What is the quickest, easiest (and scriptable) way to have Postfix defer
everything with a 4xx error. It's an extension to my 'after midnight'
tests. Not allowing any connections is fine, but I would prefer to
reject with a custom 4xx message such as "GO AWAY - IT'S AFTER MIDNIGHT
-- COME BACK IN THE MORNING"
It's an odd request to be able to 'offline' with a defer so I won't be
surprised if I can't do it, but I would be Cindy Ecstacy Ecstatic if I
could.
TIA.
Steve.
# /etc/postfix/deferall.regexp
/^/ DEFER Please try again during business hours
The sender may get a better error message if you change the
above to
/^/ DEFER 4.3.2 Please try again during business hours
The 4.3.2 suggests your system is down for maintenance and may
influence the error the end user sees if they have an MTA that
mangles error codes.
-- Noel Jones