On 1/31/2017 10:33 AM, Tim Smith wrote: > Sorry, one more question ! > > Is it possible to issue a 554 to the sending server using discard: ? >
The whole point of discard: is you pretend to accept the mail, then bit-bucket it. Rejecting the recipient with an error is the opposite of that. Postfix has no built-in feature to both accept a message AND return an error, but that can be done with a milter or proxy filter. To reject the recipient with an error, use the error: transport rather than discard: # transport [email protected] error:some text the sender might see Alternately, you can use a check_recipient_access table to reject the recipient, or you can just not create that user in the first place and let postfix reject it as an unknown recipient... seems like that was where we started this conversation. -- Noel Jones
