I dont know if there a way to build an no-smtp milter. The local mails come from different users with different domains, this ones stay on my local mashine right, but my customers only know the 'real e-mail-adress' also the alias from the recipient and not the internal local username, so i cant create bounce messages which contain the local username, the sender would be confused.
If mails come from external - the internet - the smtpd-recipitient-restrictions work fine and bounce a pretty postfix error message with the correct recipient mail-adress in there. Mit freundlichen Grüßen Yours sincerely Pascal Rudolf -----Ursprüngliche Nachricht----- Von: owner-postfix-us...@postfix.org <owner-postfix-us...@postfix.org> Im Auftrag von Jaroslaw Rafa Gesendet: Freitag, 23. April 2021 11:28 An: postfix-users@postfix.org Betreff: Re: Change default reject message Dnia 23.04.2021 o godz. 09:36:50 rud...@padaru.de pisze: > I agree with you, i dont want produce late bounces. And thats my problem. > > For mails, who handeld by the smtpd ist works fine. But local Mails > bypass the smtpd module, so also the smtpd_recipient_restrictions. But the local mails come from existing accounts in your own domain, right? What other source could they come from? So you will be not sending bounces out to the Internet. They will stay at your local machine. -- Regards, Jaroslaw Rafa r...@rafa.eu.org -- "In a million years, when kids go to school, they're gonna know: once there was a Hushpuppy, and she lived with her daddy in the Bathtub."