|
|
|
|
|
|
| Author |
Message |
Hans van Kranenburg *nix forums beginner
Joined: 27 Mar 2005
Posts: 23
|
Posted: Sat Feb 26, 2005 11:32 pm Post subject:
Alias exapnsion and local_domains in Amavis
|
|
|
Hi all,
I'm setting up Postfix/Amavis/Spamassassin on a box which will recieve
mail for about 30 domains in the near future. So the majority of email
which is handled by postfix is incoming email from the internet. Some
people will use smtp auth to relay mail, squirrelmail sends mail and
some websites will generate outgoing email eventually.
It's almost working fine, but:
1. Amavis uses 'local_domains' (perl hash lookup table) to separate
incoming/outgoing mail and so decide about inserting spam-related
headers only for incoming mail.
2. I want Amavis to add header lines and insert **SPAM** into the
subject of all incoming spam, whether its's delivered locally to cyrus
or travels further on the internet (rewritten by virtual_alias_maps)
But:
Alias expansion in Postfix occurs before mail is handled over to Amavis,
so when I use the list of domains that this box is MX for, it's not
sufficient, and all virtual_aliased email remains untagged because
amavis sees only the new email address/domain...
What can I do?
- Tell Amavis to tag/insert headers on each incoming *and* outgoing mail
(=quick and dirty fix?) I trust the local users, so it's not necessary
and it's unwanted letting SA add the stuff to all emails that originate
from this machine.
- Do the alias expansion *after* amavis does it's work, so Amavis
compares the domain before-alias-expansion-kicks-in with it's
local_domains table... Is that possible, or does something else get
screwed up?
- Anything else?
Thanx!
Hans van Kranenburg,
The Netherlands |
|
| Back to top |
|
 |
mouss *nix forums Guru
Joined: 27 Feb 2005
Posts: 1947
|
Posted: Sun Feb 27, 2005 3:42 am Post subject:
Re: Alias exapnsion and local_domains in Amavis
|
|
|
Hans van Kranenburg wrote:
| Quote: |
What can I do?
- Tell Amavis to tag/insert headers on each incoming *and* outgoing mail
(=quick and dirty fix?) I trust the local users, so it's not necessary
and it's unwanted letting SA add the stuff to all emails that originate
from this machine.
- Do the alias expansion *after* amavis does it's work, so Amavis
compares the domain before-alias-expansion-kicks-in with it's
local_domains table... Is that possible, or does something else get
screwed up?
|
yes, disable address mapping in the pre-filter postfix. Check
http://www.postfix.org/FILTER_README.html#advanced_filter
http://www.ijs.si/software/amavisd/README.postfix.txt
and look for pre-cleanup and/or receive_override_options. |
|
| Back to top |
|
 |
Hans van Kranenburg *nix forums beginner
Joined: 27 Mar 2005
Posts: 23
|
Posted: Sun Feb 27, 2005 11:18 am Post subject:
Re: Alias exapnsion and local_domains in Amavis
|
|
|
mouss wrote:
| Quote: | Hans van Kranenburg wrote:
What can I do?
- Tell Amavis to tag/insert headers on each incoming *and* outgoing
mail (=quick and dirty fix?) I trust the local users, so it's not
necessary and it's unwanted letting SA add the stuff to all emails
that originate from this machine.
- Do the alias expansion *after* amavis does it's work, so Amavis
compares the domain before-alias-expansion-kicks-in with it's
local_domains table... Is that possible, or does something else get
screwed up?
yes, disable address mapping in the pre-filter postfix. Check
http://www.postfix.org/FILTER_README.html#advanced_filter
http://www.ijs.si/software/amavisd/README.postfix.txt
and look for pre-cleanup and/or receive_override_options.
|
Thanks! receive_override_options is exactly what I was searching for.
Hans van Kranenburg |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Sat Jan 10, 2009 4:28 am | All times are GMT
|
|
Babb Fest | Loans | Debt Consolidation | Personal Loans | Advertising Agency Software
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|