On 2012-03-22 14:53, /dev/rob0 wrote:
> On Thu, Mar 22, 2012 at 12:33:26PM +0100, Claudius wrote:
>> Or do I have to compile a file that has all my domains in it?
> You do. In regexp/pcre you can enclose the LHS (local-part) matches
> in an IF/ENDIF loop with the domains:
>
> if /\@(example\.com|(
On Thu, Mar 22, 2012 at 08:53:09AM -0500, /dev/rob0 wrote:
> if /\@(example\.com|(other|third)\.example)$/
> ... your LHS stuff ...
> endif
>
> (Escaping of the \@ is necessary in PCRE but not POSIX RE.)
It is not necessary in PCRE either. One only needs to escape @ in
Perl code, but not in PCRE
On Thu, Mar 22, 2012 at 12:33:26PM +0100, Claudius wrote:
> I have a configuration/understanding problem with
> virtual_alias_maps and a regexp to catch all my domains.
>
> This is my config:
>
> main.cf:
> virtual_alias_maps =
> regexp:/etc/postfix/virtual_aliases_global.regexp,
> [...]
>
Hi,
I have a configuration/understanding problem with virtual_alias_maps and
a regexp to catch all my domains.
This is my config:
main.cf:
virtual_alias_maps =
regexp:/etc/postfix/virtual_aliases_global.regexp,
[...]
virtual_aliases_global.regexp:
/^(postmaster|root|MAILER-DAEMON|abuse|admi