[pfx] Re: smtpd_recipient_restrictions

2024-09-17 Thread Viktor Dukhovni via Postfix-users
On Tue, Sep 17, 2024 at 07:20:18PM +0800, Wesley via Postfix-users wrote: > > > Viktor Dukhovni via Postfix-users : > > - Just inbound mail from external sources? Or also other mail (locally > >submitted or generated)? > > yes I just reject message to that user from external source via smtp

[pfx] Re: smtpd_recipient_restrictions

2024-09-17 Thread Wesley via Postfix-users
Viktor Dukhovni via Postfix-users : - Just inbound mail from external sources? Or also other mail (locally submitted or generated)? yes I just reject message to that user from external source via smtp, does that setting work? - What is the address class of "domain.com"? sorry what

[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}: % >

[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