Re: Setting up virtual alias domains and maps - failing to deliver

2021-03-23 Thread Simon Wilson
- Message from Simon Wilson - Date: Wed, 24 Mar 2021 09:57:37 +1000 From: Simon Wilson Reply-To: si...@simonandkate.net Subject: Re: Setting up virtual alias domains and maps - failing to deliver To: postfix-users@postfix.org - Message from Noel Jones

Re: Setting up virtual alias domains and maps - failing to deliver

2021-03-23 Thread Simon Wilson
- Message from Noel Jones - Date: Tue, 23 Mar 2021 12:46:29 -0500 From: Noel Jones Reply-To: njo...@megan.vbhcs.org Subject: Re: Setting up virtual alias domains and maps - failing to deliver To: postfix-users@postfix.org On 3/23/2021 6:31 AM, Simon Wilson wrote:

Re: Backscatter problems + fixes + RFC idea

2021-03-23 Thread Dominic Raferd
On 20/03/2021 18:52, Rahul Dhesi wrote: On Sat, 20 Mar 2021, Dominic Raferd wrote: You may find my script helpful: https://www.timedicer.co.uk/programs/help/relay-enforcer.sh.php Looks very interesting, thanks. I ran 'shellcheck' on it and saw many scary warnings; highly recommended to

Re: how not to match a sub-subdomain

2021-03-23 Thread Viktor Dukhovni
On Tue, Mar 23, 2021 at 12:57:08PM -0500, Noel Jones wrote: > To control how many levels are matched you'll need a regex or pcre > table. > > for matching one level, maybe: > /^[a-z0-9]+\.example\.com$/ transport:nexthop With transport lookups in regex tables, the lookup key is the full

Re: how not to match a sub-subdomain

2021-03-23 Thread Noel Jones
On 3/23/2021 8:35 AM, Marc Risse wrote: Hello everyone, will ".domain.com" match "b...@sub2.sub1.domain.com" or only "b...@sub1.domain.com" in transport maps? "parent_domain_matches_subdomains" is not set and I don't want it to match all subdomains on all levels. Best Marc To

Re: Setting up virtual alias domains and maps - failing to deliver

2021-03-23 Thread Noel Jones
On 3/23/2021 6:31 AM, Simon Wilson wrote: Changes: mydestination - removed, left as default Don't do that. Set it to something specific maybe "localhost.local" virtual_alias_domains = simonandkate.lan, simonandkate.net, etc... virtual_alias_maps = hash:/etc/postfix/virtual (and

Re: Rewrite user xxx in a specific local domain

2021-03-23 Thread Noel Jones
On 3/22/2021 10:39 PM, Simon Wilson wrote: ... I think that is correct? Not exactly. virtual_alias_maps can be considered a general-purpose alias mechanism, having nothing directly to do with virtual domains. That's why you can use it to easily rewrite your local domain addresses.

Re: Sequence of checks for virtual alias

2021-03-23 Thread Viktor Dukhovni
On Tue, Mar 23, 2021 at 02:24:09PM +1000, Simon Wilson wrote: > I have some user email addresses (in domains that are specified as > virtual_alias_domain) listed in /etc/postfix/recipient_access and > configured to return 550 Mailbox no longer in use. If you just delete both the virtual(5)

Re: (now unsigned) how not to match a sub-subdomain

2021-03-23 Thread Wietse Venema
Marc Risse: > Am 23.03.21 um 15:10 schrieb Wietse Venema: > > Marc Risse: > >> Hello everyone, > >> > >> will ".domain.com" match "b...@sub2.sub1.domain.com" or only > >> "b...@sub1.domain.com" in transport maps? > > With an indexed table (for example, hash: or btree:), .domain.com > > will not

Re: (now unsigned) how not to match a sub-subdomain

2021-03-23 Thread Marc Risse
Am 23.03.21 um 15:10 schrieb Wietse Venema: Marc Risse: Hello everyone, will ".domain.com" match "b...@sub2.sub1.domain.com" or only "b...@sub1.domain.com" in transport maps? With an indexed table (for example, hash: or btree:), .domain.com will not match any email address, and it will match

Re: (now unsigned) how not to match a sub-subdomain

2021-03-23 Thread Wietse Venema
Marc Risse: > Hello everyone, > > will ".domain.com" match "b...@sub2.sub1.domain.com" or only > "b...@sub1.domain.com" in transport maps? With an indexed table (for example, hash: or btree:), .domain.com will not match any email address, and it will match every subdomain. If you want finer

Re: Sequence of checks for virtual alias

2021-03-23 Thread Matus UHLAR - fantomas
On 23.03.21 14:24, Simon Wilson wrote: I have some user email addresses (in domains that are specified as virtual_alias_domain) listed in /etc/postfix/recipient_access and configured to return 550 Mailbox no longer in use. Do I still need to list them in virtual_alias_maps, or is

(now unsigned) how not to match a sub-subdomain

2021-03-23 Thread Marc Risse
Hello everyone, will ".domain.com" match "b...@sub2.sub1.domain.com" or only "b...@sub1.domain.com" in transport maps? "parent_domain_matches_subdomains" is not set and I don't want it to match all subdomains on all levels. Best Marc

how not to match a sub-subdomain

2021-03-23 Thread Marc Risse
Hello everyone, will ".domain.com" match "b...@sub2.sub1.domain.com" or only "b...@sub1.domain.com" in transport maps? "parent_domain_matches_subdomains" is not set and I don't want it to match all subdomains on all levels. Best Marc smime.p7s Description: S/MIME Cryptographic

Re: Setting up virtual alias domains and maps - failing to deliver

2021-03-23 Thread Simon Wilson
- Message from Simon Wilson - Date: Tue, 23 Mar 2021 21:31:29 +1000 From: Simon Wilson Reply-To: si...@simonandkate.net Subject: Re: Setting up virtual alias domains and maps - failing to deliver To: postfix-users@postfix.org - Message from Simon Wilson

Re: Sequence of checks for virtual alias

2021-03-23 Thread Simon Wilson
- Message from Matus UHLAR - fantomas - Date: Tue, 23 Mar 2021 12:15:03 +0100 From: Matus UHLAR - fantomas Subject: Re: Sequence of checks for virtual alias To: postfix-users@postfix.org On 23.03.21 14:24, Simon Wilson wrote: I have some user email addresses (in

Re: spamassassin user_prefs getting ignore

2021-03-23 Thread Matus UHLAR - fantomas
On 21 Mar 2021, at 11:51, Steve Dondley wrote: user=debian-spamd argv=/usr/bin/spamc -u ${user} -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient} On 23.03.21 05:31, @lbutlr wrote: As Bill Cole said, the -f is obsolete, is not needed, and does literally nothing. If you check the man

Re: Setting up virtual alias domains and maps - failing to deliver

2021-03-23 Thread Simon Wilson
- Message from Simon Wilson - Date: Tue, 23 Mar 2021 17:45:56 +1000 From: Simon Wilson Reply-To: si...@simonandkate.net Subject: Setting up virtual alias domains and maps - failing to deliver To: postfix-users@postfix.org Following recommendation from Viktor,

Re: spamassassin user_prefs getting ignore

2021-03-23 Thread @lbutlr
On 21 Mar 2021, at 11:51, Steve Dondley wrote: > user=debian-spamd argv=/usr/bin/spamc -u ${user} -f -e /usr/sbin/sendmail > -oi -f ${sender} ${recipient} As Bill Cole said, the -f is obsolete, is not needed, and does literally nothing. If you check the man page for spamc, you will see that

Re: Sequence of checks for virtual alias

2021-03-23 Thread Matus UHLAR - fantomas
On 23.03.21 14:24, Simon Wilson wrote: I have some user email addresses (in domains that are specified as virtual_alias_domain) listed in /etc/postfix/recipient_access and configured to return 550 Mailbox no longer in use. Do I still need to list them in virtual_alias_maps, or is

Setting up virtual alias domains and maps - failing to deliver

2021-03-23 Thread Simon Wilson
Following recommendation from Viktor, trying to set up virtual alias domains. Previous arrangement works fine: domains in mydestination, local transport uses lmtp to cyrus. Here is an example of that arrangement - sent off to Amavis, then off to lmtp for successful delivery: Mar 23