Here is what I use for our production spam filter box at work.
/etc/clamav.conf:
# By default it doesn't drop privileges.
#User clamav
User amavis
/etc/amavisd.conf
# Set the user and group to which the daemon will change if started as
root
# (otherwise just keep the UID unchanged, and these settings have no
effect):
$daemon_user = 'amavis'; # (no default; customary: vscan or
amavis)
$daemon_group = 'amavis'; # (no default; customary: vscan or
amavis)
Anthony
---
elemint@theriver.com wrote:
> I have postfix limited to 4 child processes.
> smtp-amavis unix - - y - 4 smtp
>
> I have amavis limited to 4 child processes.
>
> $max_servers = 4; # number of pre-forked children
> (default 2)
>
> How can I confiirm clamd and amavis are using the same user account?
>
>
> In reality it seems amavis is being hung up not postfix so if I setup
> something that can telnet to 127.0.01:10024 and if it fails then send an
>
> email to admin@somedomain.com right?
>
>
>
>
> Jim
>
>
>
>
> Craig White wrote:
>
> >On Tue, 2004-07-20 at 16:28, elemint@theriver.com wrote:
> >
> >
> >>I have been getting this in my logs on my mail system and when it
> >>happens mail just stops (no fun)
> >>
> >>
> >>"Jul 20 11:59:09 mail postfix/qmgr[5764]: 25AE16F8DF:
> >>to=<user@domain.com>, relay=none, delay=7586, status=deferred
> (delivery
> >>temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection
> refused)
> >>
> >>How can I stop amavis from doing this, and how can I setup a method to
>
> >>be alerted when this happens?
> >>
> >>
> >----
> >This is the kind of test where you earn your stripes as an IT manager.
> >
> >How many processes (child processes) is postfix limited to? Does it
> need
> >to be increased?
> >
> >How many processes (child processes) is amavis limited to? Does it need
> >to be increased?
> >
> >Does the mail spool stay tied up in postfix while amavis is scanning
> the
> >file?
> >
> >Can you increased logging levels of postfix/amavis to give you a clue
> as
> >to where it is getting hung?
> >
> >As for alerts...that's a toughie. I use webmin and it has the ability
> to
> >monitor postfix and could probably be configured to look at things like
> >ps output or others to monitor amavis but I would normally have it send
> >an email out to my 'pager/text messaging' but if postfix dies, good
> >luck. If you have a modem on this system, you could write a shell
> script
> >to call in to another system or use your imagination to get it to log
> >onto another system to send you a page.
> >
> >Craig
> >
> >---------------------------------------------------
> >PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> >To subscribe, unsubscribe, or to change you mail settings:
> >http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
> >
> >
> >
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
---------------------------------------------------
PLUG-discuss mailing list -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss