Re: Virtual map regex

2022-02-11 Thread daniel Azuelos
Since there is not any \(BRE\) in your LHS, then ${1} could be the whole matching BRE, but there will never be a ${2}. Personal advice: start to test REs with sed, sed -E or perl. -- « The only thing necessary for the triumph of evil is for good men to do nothing. »

Rewriting @localhost to @$myhostname

2022-02-11 Thread michael . osipov
Hi, I am currently migrating from a sendmail-based relay to Postfix 3.6.3. Sendmail has the feature to automatically rewrite @localhost to @$myhostname automatically. As far as I have seen Postfix doesn't do this with trivial-rewrite(8) by default nor is a config option for this. What I have

Re: Virtual map regex

2022-02-11 Thread Wietse Venema
raf: > On Thu, Feb 10, 2022 at 11:21:07PM -0500, Viktor Dukhovni > wrote: > > > > On 10 Feb 2022, at 11:17 pm, raf wrote: > > > > > > But I still don't see why it was only the second > > > replacement index that was out of range, and not the > > > first as well. > > > > https://sciencing.com/

Re: Rewriting @localhost to @$myhostname

2022-02-11 Thread Wietse Venema
michael.osi...@siemens.com: > Hi, > > I am currently migrating from a sendmail-based relay to Postfix 3.6.3. > Sendmail has the feature to automatically rewrite @localhost to > @$myhostname automatically. As far as I have seen Postfix doesn't do > this with trivial-rewrite(8) by default nor is

Re: Rewriting @localhost to @$myhostname

2022-02-11 Thread michael . osipov
Am 2022-02-11 um 15:38 schrieb Wietse Venema: michael.osi...@siemens.com: Hi, I am currently migrating from a sendmail-based relay to Postfix 3.6.3. Sendmail has the feature to automatically rewrite @localhost to @$myhostname automatically. As far as I have seen Postfix doesn't do this with tri

Passing final recipient address to policy service

2022-02-11 Thread Vladimir Mishonov
Hello again. I apologize in advance for a lot of text. This question relates to a Postfix+Dovecot setup, but I'm posting it in the Postfix list because I think this should be solved on the Postfix side. I have a small personal mail server with a MariaDB virtual users backend hosting several

Re: Rewriting @localhost to @$myhostname

2022-02-11 Thread Benny Pedersen
On 2022-02-11 15:09, michael.osi...@siemens.com wrote: What I have come up with is doing in /usr/local/etc/postfix/canonical: @localhost @myhostname I had to add the actual hostname since @$myhostname is not supported. My question: Is this the proper way to go with Postfix to mimic sendmail b

Re: Rewriting @localhost to @$myhostname

2022-02-11 Thread Wietse Venema
michael.osi...@siemens.com: > Am 2022-02-11 um 15:38 schrieb Wietse Venema: > > michael.osi...@siemens.com: > >> Hi, > >> > >> I am currently migrating from a sendmail-based relay to Postfix 3.6.3. > >> Sendmail has the feature to automatically rewrite @localhost to > >> @$myhostname automatically.

Re: Passing final recipient address to policy service

2022-02-11 Thread Wietse Venema
Consider using reject_unverified_recipient, instead of using the dovecot quota check. https://www.postfix.org/ADDRESS_VERIFICATION_README.html#recipient That would work with both 1:1 aliases and 1:n ones. Wietse

Re: Rewriting @localhost to @$myhostname

2022-02-11 Thread Viktor Dukhovni
> On 11 Feb 2022, at 9:09 am, michael.osi...@siemens.com wrote: > > What I have come up with is doing in /usr/local/etc/postfix/canonical: >> @localhost @myhostname > > I had to add the actual hostname since @$myhostname is not supported. > My question: Is this the proper way to go with Postfi

Re: Passing final recipient address to policy service

2022-02-11 Thread Vladimir Mishonov
On 2022-02-11 19:30, Wietse Venema wrote: Consider using reject_unverified_recipient, instead of using the dovecot quota check. https://www.postfix.org/ADDRESS_VERIFICATION_README.html#recipient That would work with both 1:1 aliases and 1:n ones. Wietse Interesting, I never thought o

SRS implementing questions

2022-02-11 Thread Matus UHLAR - fantomas
Hello, It looks that I'll have to implement SRS on one of machines I maintain. The machine (debian) has multiple canonical domains, and some forwarding done in virtual_alias_maps and some in users' .forward. possibilities are perl-based srs, pysrs and postsrsd. pysrs seems to support milter,

Re: SRS implementing questions

2022-02-11 Thread Wietse Venema
The "500" is the "not found" response. See "man tcp_table". Wietse

Re: Virtual map regex

2022-02-11 Thread raf
On Fri, Feb 11, 2022 at 09:30:29AM -0500, Wietse Venema wrote: > raf: > > On Thu, Feb 10, 2022 at 11:21:07PM -0500, Viktor Dukhovni > > wrote: > > > > > > On 10 Feb 2022, at 11:17 pm, raf wrote: > > > > > > > > But I still don't see why it was only the second > > > > replacement index that