Re: Re: Regular expressions in alias_maps

2012-10-15 Thread Václav Pernica
Hello Wietse > You made a mistake somewhere. Show "postconf -n" command > output and someone will tell you what's wrong. You were right, the mistake was: /test27/: test The colon behind the key. Without it works fine. (I let confused by usage postalias which reported to me that the colon

Regular expressions in alias_maps

2012-10-15 Thread Václav Pernica
Hello Is it possible to use regular expressions in aliases maps? I tried to do: alias_maps = hash:/etc/aliases, pcre:/etc/aliases-regex then eg.: cat /etc/aliases-regex /test27/: test postalias /etc/aliases-regex However when trying to deliver message to test27 it says that: 550 5.1.1 :

Re: Re: Re: Re: Setup maildir path based on user ID

2012-09-26 Thread Václav Pernica
uration parameter: security_sensitivity = disable Of course it wouldn't be good idea for system connected to internet etc. but there are cases like my (internal system, which accept only spec. mails from one spec. application) where it would be very useful. Thanks a lot Wietse for you help! Václav Pernica

Re: Re: Re: Setup maildir path based on user ID

2012-09-25 Thread Václav Pernica
Wietse Venema: > Alas, as documented tcp_table(5) is an insecure table (no secure > communication) so Postfix probably will not allow you to look up > mailbox pathnames with this. You are right it doesn't work: fatal: tcp:127.0.0.1:2527 map is not allowed for security sensitive data Is there an

Re: Re: Setup maildir path based on user ID

2012-09-24 Thread Václav Pernica
wietse: > Specify: > > /etc/postfix/main.cf: > virtual_mailbox_maps = tcp:host:port Thanks! This would be really elegant and easy solution. However the server is running on RHEL 6.3 where the TCP_Tables are not supported. Is there some easy way how to allow this functionality? I tested

Setup maildir path based on user ID

2012-09-24 Thread Václav Pernica
Hello Is there any way how can I specify the mail directory location for virtual user via eg. environmental variable? I cannot use lookup tables because the user information are stored in Oracle DB The mails are delivered to user ID which looks like C. Where C is a character [a-zA-Z] a