List Info

Thread: Re: Amavis + Postfix w/virtual domains creates largequeue of rejected emails




Re: Amavis + Postfix w/virtual domains creates largequeue of rejected emails
country flaguser name
France
2007-04-29 06:41:21
Colin Viebrock wrote:
> On 28-Apr-07, at 3:03 PM, mouss wrote:
>
>   
>> Colin Viebrock wrote:
>>     
>>> [snip]
>>> virtual_alias_maps =
hash:/etc/postfix/maps/virtual,    regexp:/etc/
>>> postfix/maps/mylists-regex,
hash:/etc/postfix/maps/mylists, hash:/ 
>>> var/
>>> lib/mailman/data/virtual-mailman,    
proxy:mysql:/etc/postfix/mysql/
>>> virtual_alias_maps.cf
>>>
>>>       
>> make sure these don't contain wildcard aliases,
that is
>>     *domain1.example => *domain2.example
>> because virtual_alias_maps is used to validate
recipients so if an
>> address matches the left-hand, it is considered
valid (there is no
>> recursion at recipient validation time).
>>     
>
>
> Some of the aliases in the MySQL table are wildcards,
yes.
>
> I suppose the "right way" to handle this
would be to duplicate all  
> the "domain1.tld" aliases as
"domain2.tld", instead of wildcards?
>   

yes.   with mysql, you can avoid duplication if you only
have "1 
recursion depth" aliases (or 2. but high recursion
depths complicate the 
query). make the query return a value only if the target
address exists.

------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

Re: Amavis + Postfix w/virtual domains creates largequeue of rejected emails
country flaguser name
Canada
2007-04-29 08:05:52
On 29-Apr-07, at 7:41 AM, mouss wrote:

>> Some of the aliases in the MySQL table are
wildcards, yes.
>>
>> I suppose the "right way" to handle this
would be to duplicate all
>> the "domain1.tld" aliases as
"domain2.tld", instead of wildcards?
>>
>
> yes.   with mysql, you can avoid duplication if you
only have "1
> recursion depth" aliases (or 2. but high recursion
depths  
> complicate the
> query). make the query return a value only if the
target address  
> exists.

Actually I just checked, since I'm using PostfixAdmin to
manage  
theses virtual domain aliases.  The table has entries like:

+---------------------+-------------------+
| address             | goto              |
+---------------------+-------------------+
| anewpark.org       | anewpark.ca      |
| anewpark.net       | anewpark.ca      |
| anewpark.com       | anewpark.ca      |
+---------------------+-------------------+

I suppose these would still be considered
"wildcards", even though  
they don't have asterisks?

- Colin


------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
AMaViS-userlists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user

AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )