Ville Walveranta a écrit : > On Mon, Nov 17, 2008 at 1:04 AM, Darren Pilgrim <[EMAIL PROTECTED]> wrote: >> Use a pcre map to return the local part @someotherdomain.com: >> >> /^(.+)@fourthdomain\.com$/ [EMAIL PROTECTED] > > Where would you put that pcre map?
depends on what you want to do with the map. but don't use this in virtual_alias_maps, because 1- as said before, it rbeaks recipient validation, 2- you don't need regular expressions here: @fourthdomain.com @someotherdomain.com does exactly the same. I tried few different patterns in > check_recipient_access in smtpd_recipient_restrictions but Postfix > didn't like it ("server misconfiguration"). > without more infos, we can't help. you first ned to verify that your postfix was built with pcre support: # postconf -m and if so, you can use pcre maps in many places. if you get an error, look at other errors/warnings in the logs and you'll see the reason for the error.