|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Mark Plomer (mail
it-plomer.de)
Date: Tue Jun 26 2007 - 14:12:59 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> all this can be done with simple mysql statements. no need for regex,
> stored procedures or whatever. can you state exactly what you want to
> achieve and your mysql tables structure?
My goal is to deliver all spam mails to different mailboxes, even if
they are rewritten by aliases especially by the catchall alias, but only
if the message is delivered internally.
So ... first problem ... for example if I have a message from
amavisd-new for "catchall+spam
domain.xyz":
- catchall+spam
domain.xyz is not existent in the table
- catchall
domain.xyz is not existent in the table
- But
domain.xyz is existent in the table and is rewritten to
mail
domain.xyz
- And there is a mail
domain.xyz and a mail+spam
domain.xyz entry in
the table
- Now I didn't find any possibility to deliver the spam mail to
mail+spam
domain.xyz instead of mail
domain.xyz, because the catchall
matches the whole address and therefore the address extension is lost.
How would you do that, regardless of the table structure?
The second problem is: If, and only if, the destination address of the
alias lookup points to an external domain, then the address extension
must not be added.
Is there any possibility?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]