I'm trying to get a custom response working for [email protected] and I keep getting "User doesn't exist" errors.
I have an alias of [email protected] which has a 'goto' of the same value, then I have a custom_replies
file which has the following:
[email protected] REJECT Sorry, but [email protected] is not a monitored email address.
In the /etc/postfix/main.cf
file I have:
check_recipient_access = hash:/etc/postfix/conf.d/custom_replies
And the /etc/postfix/master.cf
file:
smtp inet n - - - - smtpd
-o content_filter=spamassassin
submission inet n - n - - smtpd
-o content_filter=spamassassin
-o milter_macro_daemon_name=ORIGINATING
-o smtpd_recipient_restrictions=check_recipient_access,permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
-o smtpd_sasl_auth_enable=yes
-o smtpd_sasl_path=private/auth
-o smtpd_sasl_type=dovecot
-o smtpd_tls_security_level=encrypt
-o smtpd_tls_wrappermode=no
-o syslog_name=postfix/submission
What I think is happening is that the alias [email protected] -> [email protected] is failing before custom_replies is considered. Is this possible, or is there a better approach?