Re: [Exim] 4.10 and Amavis

Pàgina inicial
Delete this message
Reply to this message
Autor: Larry Rosenman
Data:  
A: Suresh Ramasubramanian
CC: exim-users
Assumpte: Re: [Exim] 4.10 and Amavis
On Sun, 2002-08-04 at 22:42, Suresh Ramasubramanian wrote:
>
> "Larry Rosenman" <ler@???> (Monday, August 05, 2002 11:26 AM)
>
>
> > Hmm. I see the notes about redirect taking the place of smartuser
> > WITHOUT transport. This one had a transport. I've also tried basic
> > changes to make it a redirect, but without success :-( .
> > I also tried running my changes through convert4r4 with just gibberish
> > coming out :-(.
> > Not a biggie, I'll keep playing.
>
> Post that part of your config again please - I accidentally deleted it when
> you sent it to me offlist.
>


Here is the full README.exim from the amavisd distribution:

How To Use AMaViS With exim
***************************

Scanning incoming mail only
===========================

First of all, create the group "amavis" and the user "amavis", which
is in this group. Add the user amavis to your trusted users, so in the
MAIN CONFIGURATION SETTINGS add the following line

trusted_users = amavis

(or, if this line already exists simply add amavis, separated with a
colon).

In the TRANSPORT CONFIGURATION, add the following:

amavis:
driver = pipe
command = "/usr/sbin/amavis <${sender_address}> ${pipe_addresses}"
prefix =
suffix =
check_string =
escape_string =
# for debugging change return_output to true
return_output = false
return_path_add = false
user = amavis
group = amavis
path = "/bin:/sbin:/usr/bin:/usr/sbin"
current_directory = "/var/amavis"

At the *beginning* of the DIRECTORS CONFIGURATION, add the following:

amavis_director:
condition = "${if eq {$received_protocol}{scanned-ok} {0}{1}}"
driver = smartuser
transport = amavis

NOTE: Please keep in mind that the ORDER matters!

Scanning incoming/outgoing and relayed mail
===========================================

Scanning of outgoing mail is also possible: (based on a contribution
by John Burnham)

At the *beginning* of the ROUTERS CONFIGURATION, add the following

amavis_router:
condition = "${if eq {$received_protocol}{scanned-ok} {0}{1}}"
driver = domainlist
route_list = "*"
transport = amavis

The configure script should be called with the option
--enable-exim. Well, it is enabled by default if the MTA qmail is not
installed on the system.

NOTE: if the MTA qmail is installed on your system, too, you *MUST*
add --disable-qmail

NOTE: do not forget to set up an (eMail) alias for "amavis" to a real
user account. If you used --with-notifyreceivers, and a user sends a
mail to an non-existent remote user, the bounce message from the
remote MTA will be send to pseudo-user amavis.

Note: If you want to add a "X-Virus-Scanned" header you can do this in
your exim configuration, too. Use the headers_add option in the
scanmails TRANSPORT CONFIGURATION, i.e. headers_add =
"X-Virus-Scanned: by AMaViS (http://amavis.org/)"


FAQ
---

Q: Whenever I am receiving many mails in large batches (i.e. via
UUCP or fetchmail), the system load on the machine on which AMaViS
runs climbs to a level that renders the machine virtually unusable.
How do I prevent such behaviour?

A: The reason for the high load is that one AMaViS process (and in
turn AMaViS' children processes) are started for every message that is
received. The obvious solution is to limit the number of AMaViS
processes that are started simultaniously.

AMaViS does not currently support this itself, but every sensible MTA
does. Moreover, it makes sense to limit the number of messages that an
MTA can deliver at one time, to prevent mail server death by spamming.

For Exim, the configuration keywords to look for are deliver_load_max,
deliver_queue_load_max, and queue_only_load which control whether
mails are delivered (read: passed to AMaViS) or queued only under high
load. More detailed information can be found in the Exim
Specification.


Credits
-------
Philip Hazel, Marc Haber, John Burnham, Jeffrey C. Ollie, Hilko Bengen

TODO
----

* whatever you whish to add here :-)

Author
------
Rainer Link
eMail: Rainer.Link@???
WWW: http://rainer.w3.to

Please send bug reports, questions, suggestions and more directly to
the author. Thanks :-)

>     --srs

>
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>

--
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: ler@???
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749