View previous topic :: View next topic |
Author |
Message |
yaman666 Tux's lil' helper

Joined: 13 Dec 2002 Posts: 117 Location: Chicago, IL
|
Posted: Wed Nov 15, 2006 6:27 pm Post subject: Amavisd stopping/restarting |
|
|
Around 3:40 in the morning amavisd stopped working and all the postfix messages started getting queued up instead of being delivered with the error message:
Code: | Nov 15 03:39:04 rum postfix/lmtp[6601]: F19E36C4CB: to=<xx@xxxxxxxxxxx.com>, relay=none, delay=1, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused) |
Restarting amavis seemed to help. The only relevant log entry I could find is :
Code: | Nov 15 03:37:40 rum rc-scripts: ERROR: amavisd failed to stop |
Any ideas what may have tried to stop it?
Thanks! |
|
Back to top |
|
 |
defenderBG l33t


Joined: 20 Jun 2006 Posts: 817
|
Posted: Wed Nov 15, 2006 9:44 pm Post subject: |
|
|
can you post your firewall config pls
probably the loopback address is not fully enabled...
if you allow all traffic goind from lo to lo it might work |
|
Back to top |
|
 |
elgato319 Guru

Joined: 15 Sep 2005 Posts: 546
|
Posted: Wed Nov 15, 2006 9:53 pm Post subject: |
|
|
Quote: |
Any ideas what may have tried to stop it?
|
maybe logrotate tried to stop it?
cron.daily should start around that time |
|
Back to top |
|
 |
yaman666 Tux's lil' helper

Joined: 13 Dec 2002 Posts: 117 Location: Chicago, IL
|
Posted: Wed Nov 15, 2006 10:19 pm Post subject: |
|
|
I thought about that and checked logrotate config files but none of them list amavisd. The only thing they restart is syslog-ng, and I doubt it has amavisd as a dependency. |
|
Back to top |
|
 |
richard.scott Veteran

Joined: 19 May 2003 Posts: 1497 Location: Oxfordshire, UK
|
Posted: Fri Nov 17, 2006 10:14 am Post subject: |
|
|
Hi,
i've been having the exact same problem.
I've figured it out to be caused by rulesdujour wanting to reload amavisd when it downloads new config files for spamassassin.
I'd changed the following in my /etc/rulesdujour/config form this:
Code: | SA_RESTART="/etc/init.d/spamd restart" |
to this:
Code: | SA_RESTART="/etc/init.d/amavisd restart" |
For some reason tho, the daemon doesn't seem to shutdown correctly!
I think I'm going to remove that and write a restart script of my own that checks the daemon comes back up again.  |
|
Back to top |
|
 |
richard.scott Veteran

Joined: 19 May 2003 Posts: 1497 Location: Oxfordshire, UK
|
Posted: Fri Nov 17, 2006 10:21 am Post subject: |
|
|
ok, just been hunting on the forums and found this command:
Code: | /usr/sbin/amavisd reload |
I'm going to change my SA_RESTART config to use that instead
Code: | SA_RESTART="/usr/sbin/amavisd reload" |
fingers crossed  |
|
Back to top |
|
 |
yaman666 Tux's lil' helper

Joined: 13 Dec 2002 Posts: 117 Location: Chicago, IL
|
Posted: Fri Nov 17, 2006 4:36 pm Post subject: |
|
|
I thought about the possibility of rulesdujour but didn't realize they were restarting amavis. I thought they simply updated themselves via cron job. I will definitely take a look at it - thanks for the tip!  |
|
Back to top |
|
 |
hanj Veteran


Joined: 19 Aug 2003 Posts: 1500
|
Posted: Sun Feb 11, 2007 5:23 pm Post subject: |
|
|
richard.scott wrote: | ok, just been hunting on the forums and found this command:
Code: | /usr/sbin/amavisd reload |
I'm going to change my SA_RESTART config to use that instead
Code: | SA_RESTART="/usr/sbin/amavisd reload" |
fingers crossed  |
Reload doesn't appear to be a valid arg...
Code: | Feb 11 09:30:57 comp rc-scripts: ERROR: wrong args ( reload )
Feb 11 09:30:57 comp rc-scripts: Usage: amavisd {start|stop|restart }
Feb 11 09:30:57 comp rc-scripts: amavisd without arguments for full help |
hanji _________________ Server Admin Blog - Uno-Code.com |
|
Back to top |
|
 |
bunder Bodhisattva

Joined: 10 Apr 2004 Posts: 5947
|
Posted: Sun Feb 11, 2007 8:33 pm Post subject: |
|
|
amavis takes forever to shut down. try running /etc/init.d/amavisd-new stop twice. the second time it should stop.
cheers _________________
Neddyseagoon wrote: | The problem with leaving is that you can only do it once and it reduces your influence. |
banned from #gentoo since sept 2017 |
|
Back to top |
|
 |
|