> -----Original Message----- > From: owner-postfix-us...@postfix.org [mailto:owner-postfix- > us...@postfix.org] On Behalf Of pf at alt-ctrl-del.org > Sent: Sunday, September 19, 2010 12:31 AM > To: postfix-users@postfix.org > Subject: Re: conditional "recipient address verification" - how to do? > > Eugene V. Boontseff, September 18, 2010 5:10 PM > > CheckRelayRecipient = reject_unverified_recipient, permit > > > > If the main destination server is not working, mail is rejected with > the folowing reason: > > Recipient address rejected: unverified address: connect to > host.domain.tld [xx.xxx.xxx.xx]:25: Connection refused > > reject_unverified_recipient defaults to a 450 reject. So the sending > server should just try again later, just like if > the mailbox was full. > > But here is what I do: > transport_maps = destination_for_each_domain > relay_recipient_maps = list_of_valid_recipients > > lots_of_tests, reject_unauth_destination, reject_unlisted_recipient, > lots_of_other_tests, reject_unverified_recipient, > permit > > The final reject_unverified_recipient, prevents me from accepting and > bouncing mail for users that always have full > mailboxes. >
Should the part below not solve the practical issue? unverified_recipient_defer_code = 450 unverified_recipient_reject_code = 550 So if the account doesn't exist on the server where you want to deliver the mail (but that server is online): 550 reject If the server where you want to deliver the mail is down/unreachable: 450 unverified_recipient_reject_reason = Recipient address lookup failed If the server is up and accepts the email: accept Please correct me if I am wrong. Regards, Mark