0

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?

1 Answer 1

0

Ok, looks like check_recipient_access isn't the way to go for this. I found this post and got it to work using smtpd_end_of_data_restrictions.

Snippet from main.cf

smtpd_end_of_data_restrictions = check_recipient_access,hash:/etc/postfix/conf.d/custom_replies,permit

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .