Hello,

Dne pá, srp 29, 2025 at 03:16:51 CEST napsal(a) Markus Schönhaber via 
Postfix-users:
> > it's quite confusing:
> 
> You're probably confused because you compare a key-value store with a RE
> table and think they should behave alike.
> 
> > /etc/postfix/virtual:
> > 
> > [email protected] account1
> > [email protected] account2
> > @virtual.domain other_account
> > 
> > postmap -q [email protected] hash:/etc/postfix/virtual
> > account1
> > 
> > postmap -q [email protected] hash:/etc/postfix/virtual
> > 
> > (nothink and exit status of 1)
> 
> As documented (see above): postmap looks for exactly
> "[email protected]" - which is not contained in your virtual file.
> 
> > /etc/postfix/virtual.pcre
> > 
> > /[email protected]/ account1
> > /[email protected]/ account2
> > /.*@virtual.domain$/ other_account
> > 
> > postmap -q [email protected] pcre:/etc/postfix/virtual.pcre
> > account1
> > 
> > postmap -q [email protected] pcre:/etc/postfix/virtual.pcre
> > other_account
> 
> With a PCRE table, postmap matches the query string against all patterns
> contained in the PCRE-file - and the RE "/.*@virtual.domain$/" matches
> the search string "[email protected]".

Markus, many thanks for explanation.

> 
> > It would be advantage to test maps in way as in pcre...
> 
> I don’t think so, Tim.
> I'd consider *that* very confusing.

As I wrote in reply to Wietse: I would have a tool for testing
virtual_alias_maps...

> 
> -- 
> Regards
>   mks
> 

Sincerely
Jan Marek
-- 
Ing. Jan Marek
University of South Bohemia
Academic Computer Centre
Phone: +420389032080
http://www.gnu.org/philosophy/no-word-attachments.cs.html

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to