niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Apps » Postfix
Alias exapnsion and local_domains in Amavis
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
Hans van Kranenburg
*nix forums beginner


Joined: 27 Mar 2005
Posts: 23

PostPosted: Sat Feb 26, 2005 11:32 pm    Post subject: Alias exapnsion and local_domains in Amavis Reply with quote

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

PostPosted: Sun Feb 27, 2005 3:42 am    Post subject: Re: Alias exapnsion and local_domains in Amavis Reply with quote

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

PostPosted: Sun Feb 27, 2005 11:18 am    Post subject: Re: Alias exapnsion and local_domains in Amavis Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Sat Jan 10, 2009 4:28 am | All times are GMT
navigation Forum index » Apps » Postfix
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts per alias header_checks Tuan Van Postfix 1 Fri Jul 21, 2006 5:29 am
No new posts how to alias an array with a variable in a loop ? Jack Perl 4 Wed Jul 19, 2006 8:17 pm
No new posts Is this a bug with postfix + amavis Jim John Postfix 2 Tue Jul 18, 2006 8:54 pm
No new posts Postfix - Amavis - Cyrus communication fails between the ... Jean-Gabriel Duquesnoy Postfix 1 Tue Jul 18, 2006 6:11 pm
No new posts Alias or ScriptAlias ? Mauro Apache 4 Tue Jul 18, 2006 9:28 am

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
[ Time: 0.1181s ][ Queries: 16 (0.0441s) ][ GZIP on - Debug on ]