Hi,
a smtpd_recipient_restrictions for a submission service usually end
with explicit "reject". That result in a smtp response string
554 5.7.1 <recipient>: Recipient address rejected: Access denied
Sometimes it's helpful to have a more detailed error,
"please authenticate", "go away", "goto http://here.you.get/help", or
any other descriptive text.
currently I do this with a separate file.
...
smtpd_recipient_restrictions =
check_foo_to_allow_something,
check_recipient_access pcre:$config_directory/nice_reject.pcre
# never reached
reject
nice_reject.pcre:
/.*/ REJECT you did this or that wrong, call +49 ... for assistance
It would be nice if I could specify this direct as argument to reject
in main.cf.
<wish>
smtpd_recipient_restrictions =
check_foo_to_allow_something,
reject "you did this or that wrong, call +49 ... for assistance"
</wish>
Is that possible?
At least the configuration would be much [easier|more precise].
Andreas