> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Philippe
> Trolliet
> Sent: Montag, 5. Marz 2007 11:41
> To: amavis-user
> Subject: Re: [AMaViS-user] amavis and aliases
> 
> 
> 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of mouss
> > Sent: Samstag, 3. Marz 2007 18:53
> > Cc: amavis-user
> > Subject: Re: [AMaViS-user] amavis and aliases
> > 
> > 
> > Philippe Trolliet wrote:
> > >> I am not sure if this will help you. But still here is my config.
> > >> I have a qmail-ldap setup with Amavisd-new (Qmqp patched) with
> > >> ldap-lookups enabled. For My email accounts i create a entry in the
> > >> Ldap with required Amavis attribs and in my Amavisd.conf I have
> > >> following search filter
> > >> ---
> > >> query_filter   =>
> > >> '(&(objectClass=amavisAccount)(|(mail=%m)(mailalternateaddress=%m))
> > >> )',
> > >> ---
> > >>
> > >> Regards
> > >> Ram
> > >>
> > >>     
> > >
> > > ah sorry, doesn?t help and i forgot to tell that i?m using a 
> > virtual domain
> > > system based on a mysql db. i?m using postfix, cyrus-imapd and 
> > amavisd-new.
> > > the aliases are in a different table than the user settings 
> > (e.g. password,
> > > policy_id, etc.) and the policy information itself.
> > >   
> > 
> > you can certainly write the right sql query to get the result you want.
> > 
> > If you decide that aliases should have the same policy as their 
> targets, 
> > and accept to ignore the effect of rewrite in bayes, then just do alias 
> > expansion before amavisd-new instead of after it (move the 
> corresponding 
> > receive_override_mapping to the 10025 listener).
> > 
> 
> ok, you mean rewrite the mail address before the mail is passed to
> amavisd-new. is that right?
> how can i do that?
> i?m using postfix as MTA.
> 

ok, i got it. in /etc/postfix/master.cf in the line

smtp      inet  n       -       n       -       -       smtpd
  -o content_filter=smtp-amavis:127.0.0.1:10024
  -o receive_override_options=no_address_mappings

i just had to remove the no_address_mappings. then it worked and amavis used
the same policies for the alias as defined for the destination e-mail
address.

-- 
I am using the free version of SPAMfighter for private users.
It has removed 3909 spam emails to date.
Paying users do not have this message in their emails.
Get the free SPAMfighter here: http://www.spamfighter.com/len
 << File: ATT00558.txt >>  << File: ATT00561.txt >> 
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to