Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Amavisd stopping/restarting
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
yaman666
Tux's lil' helper
Tux's lil' helper


Joined: 13 Dec 2002
Posts: 117
Location: Chicago, IL

PostPosted: Wed Nov 15, 2006 6:27 pm    Post subject: Amavisd stopping/restarting Reply with quote

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
View user's profile Send private message
defenderBG
l33t
l33t


Joined: 20 Jun 2006
Posts: 817

PostPosted: Wed Nov 15, 2006 9:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
elgato319
Guru
Guru


Joined: 15 Sep 2005
Posts: 546

PostPosted: Wed Nov 15, 2006 9:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
yaman666
Tux's lil' helper
Tux's lil' helper


Joined: 13 Dec 2002
Posts: 117
Location: Chicago, IL

PostPosted: Wed Nov 15, 2006 10:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1497
Location: Oxfordshire, UK

PostPosted: Fri Nov 17, 2006 10:14 am    Post subject: Reply with quote

Hi,

i've been having the exact same problem. :cry:

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. :wink:
Back to top
View user's profile Send private message
richard.scott
Veteran
Veteran


Joined: 19 May 2003
Posts: 1497
Location: Oxfordshire, UK

PostPosted: Fri Nov 17, 2006 10:21 am    Post subject: Reply with quote

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 :roll:
Back to top
View user's profile Send private message
yaman666
Tux's lil' helper
Tux's lil' helper


Joined: 13 Dec 2002
Posts: 117
Location: Chicago, IL

PostPosted: Fri Nov 17, 2006 4:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
hanj
Veteran
Veteran


Joined: 19 Aug 2003
Posts: 1500

PostPosted: Sun Feb 11, 2007 5:23 pm    Post subject: Reply with quote

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 :roll:


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
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Sun Feb 11, 2007 8:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum