[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postfix-users
Subject:    Re: redirect all except whitelisted ?
From:       Robin Sinclair <paracas () 360 ! com>
Date:       2011-09-27 16:43:12
Message-ID: 703808139.5119831317141792408.JavaMail.root () wmbxc6-s1 ! prd ! de1 ! sp ! vodafone ! com
[Download RAW message or body]

thanks - that did the trick :-) 
I was also able to whitelist whole domains using the parentheses/matching technique. 
Here's my final config, in case its useful for Randy or others: 

/etc/postfix/virtual : 
# 1. whitelisted individuals: 
rob@hotmail.com rob@hotmail.com 
# 2. whitelisted domains 
/(.*)@foobar.com$/ ${1}@foobar.com 

/etc/postfix/virtual.pcre : 
/./ mailsink@example.com 

virtual_alias_maps = hash:/etc/postfix/virtual pcre:/etc/postfix/virtual.pcre 


>Rather than an access map, you can use virtual_alias_maps as 
>discussed in the parallel thread "Many to one address rewriting, 
>exceptions exist." 



[Attachment #3 (text/html)]

<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div \
style='font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: \
#000000'><style>p { margin: 0; }</style><div style="font-family: \
Arial,Helvetica,sans-serif; font-size: 10pt; color: rgb(0, 0, 0);"><br>thanks -&nbsp; \
that did the trick :-)<br>I was also able to whitelist whole domains using the \
parentheses/matching technique.<br>Here's my final config, in case its useful for \
Randy or others:<br><br>/etc/postfix/virtual \
:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 1. whitelisted \
individuals:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
rob@hotmail.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
rob@hotmail.com<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # 2. whitelisted \
domains&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
/(.*)@foobar.com$/&nbsp;&nbsp;&nbsp; \
${1}@foobar.com<br><br>/etc/postfix/virtual.pcre:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
/./&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mailsink@example.com<br><br>&nbsp; \
virtual_alias_maps = hash:/etc/postfix/virtual \
pcre:/etc/postfix/virtual.pcre<br><br><br>&gt;Rather than an access map, you can use \
virtual_alias_maps as<br>&gt;discussed in the parallel thread "Many to one address \
rewriting,<br>&gt;exceptions exist."<br><br>&nbsp;<br></div></div></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic