Curtis wrote:
On Tue, Mar 10, 2009 at 8:43 PM, Victor Duchovni
   transport:
       bo...@example.com       error:5.1.1 Invalid recipient address
       address.invalid         error:5.1.1 Invalid recipient address

this bounces the address when submitted locally.

Perhaps it's a problem with my postfix configuration, but the above
solution bounced the email after smtp, which won't work for us.  I did
find one solution that seems to work...

Suggests an implementation error on your part. or possibly you have an ancient postfix. The feature works as Viktor described.


main.cf:
smtpd_recipient_restrictions ... , check_recipient_access
hash:/etc/postfix/recipient_access

recipient_access:
bo...@example.com 515 Invalid Recipient

This rejects mail with a 515 reject code, which I don't think is defined.

I think you mean:
bo...@example.com  REJECT 5.1.5 Invalid recipient



...which bounced the email at smtp.  However, when sending a test
message via gmail the bounce error wasn't what I expected:

"[blah, blah, blah.... ] The error that the other server returned was:
515 515 5.7.1 <bo...@example.com>: Recipient address rejected: Invalid
Recipient (state 14)."

The error code appears to be listed 3 times... "515 515 5.7.1"

... suggests a non-ancient postfix.

According to http://www.postfix.org/access.5.html  ...' When no code
is specified at the beginning of the text below, Postfix inserts a
default enhanced status code of "5.7.1" '

Don't confuse reject codes with status codes.

  -- Noel Jones

Reply via email to