[pfx] Problem using sender canonical rewriting

2024-09-16 Thread Mark Huizer via Postfix-users
Hello, I have been investigating some issues I have with a few machines and envelope senders. Since I want to keep envelopes intact inside my local network, I want to do the cleaning up on my outgoing smarthost. So after adding an entry to a check_sender_restricting, I get to see that the smartho

[pfx] Re: Problem using sender canonical rewriting

2024-09-16 Thread Wietse Venema via Postfix-users
Mark Huizer via Postfix-users: > If I then send mail going through the relay, and check the maillog for > canonical lines and the envelope lines: > > Sep 16 08:15:58 s-mailrelay2 postfix/smtpd[95962]: < > shell1.local.dohd.org[10.0.0.170]: MAIL FROM: > SIZE=528 > Sep 16 08:15:58 s-mailrelay2 po

[pfx] Re: Restrict Sender Domain for Relay

2024-09-16 Thread Dan Lists via Postfix-users
On Fri, Sep 13, 2024 at 10:22 PM Viktor Dukhovni via Postfix-users < postfix-users@postfix.org> wrote: > On Fri, Sep 13, 2024 at 10:29:21AM -0500, Dan Lists via Postfix-users > wrote: > > > I have a small email relay server that is used to allow IOT devices to > send > > email. Some of those devi

[pfx] Re: Restrict Sender Domain for Relay

2024-09-16 Thread Viktor Dukhovni via Postfix-users
On Mon, Sep 16, 2024 at 09:55:22AM -0500, Dan Lists via Postfix-users wrote: > > How many distinct sender domains are in scope? If it is just a small > > handful, you can restriction classes: > > > > main.cf: > > smtpd_restriction_classes = > > require_sender_domain_a, > >

[pfx] Re: Restrict Sender Domain for Relay

2024-09-16 Thread Wietse Venema via Postfix-users
Viktor Dukhovni via Postfix-users: > On Mon, Sep 16, 2024 at 09:55:22AM -0500, Dan Lists via Postfix-users wrote: > > > > How many distinct sender domains are in scope? If it is just a small > > > handful, you can restriction classes: > > > > > > main.cf: > > > smtpd_restriction_class

[pfx] Re: postfix + subject tag [exernal} and [Internal] works but ...

2024-09-16 Thread Matus UHLAR - fantomas via Postfix-users
On 11.09.24 15:49, natan via Postfix-users wrote: My own user have domain example.com and send email from us...@example.com example.com have signed e-mail DKIM and SPF and _dmarc.example.com with politic "p-reject" my server (my MX) check via milter opendkim and opendmarc like: #opendkim+

[pfx] smtpd_recipient_restrictions

2024-09-16 Thread Wesley via Postfix-users
Hello I want to deny all messages for a local user. if I setup policy like this: smtpd_recipient_restrictions = hash:/etc/postfix/recipient-access in recipient-access: u...@domain.com reject Will this work? if not, what's the right syntax? Thank you. -- https://wespeng.pages.dev/ __

[pfx] Re: smtpd_recipient_restrictions

2024-09-16 Thread Viktor Dukhovni via Postfix-users
On Tue, Sep 17, 2024 at 06:38:15AM +0800, Wesley via Postfix-users wrote: > I want to deny all messages for a local user. > if I setup policy like this: > > smtpd_recipient_restrictions = hash:/etc/postfix/recipient-access > > in recipient-access: > > u...@domain.com reject > > Will this

[pfx] Re: smtpd_recipient_restrictions

2024-09-16 Thread Viktor Dukhovni via Postfix-users
On Tue, Sep 17, 2024 at 01:24:01PM +1000, Viktor Dukhovni wrote: > Makefile: > # Or (.cdb, ...) depending on the default database type > DBEXT = db > WANTS = recipient-access.${DBEXT} > > .SUFFIXES: > .SUFFIXES: .${DBEXT} > > all: ${WANTS} > > %.${DBEXT}: % >