[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 - \
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> # 1. whitelisted \
individuals:<br> \
rob@hotmail.com \
rob@hotmail.com<br> # 2. whitelisted \
domains <br> \
/(.*)@foobar.com$/ \
${1}@foobar.com<br><br>/etc/postfix/virtual.pcre:<br> \
/./ mailsink@example.com<br><br> \
virtual_alias_maps = hash:/etc/postfix/virtual \
pcre:/etc/postfix/virtual.pcre<br><br><br>>Rather than an access map, you can use \
virtual_alias_maps as<br>>discussed in the parallel thread "Many to one address \
rewriting,<br>>exceptions exist."<br><br> <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