Hello everyone. My Debian Sarge Mail Server with postfix+mysql+courier+blablabla is working pretty well exept that sometimes amavisd crashes. this is from /var/log/mail.log: Mar 25 04:23:49 mail amavis[28483]: Net::Server: 2006/03/25-04:23:49 Server clos ing! Mar 25 04:23:49 mail amavis[6680]: (06680-03) tempdir being removed: /var/lib/am avis/amavis-20060324T161921-06680 Mar 25 04:23:49 mail amavis[6469]: (06469-03) tempdir being removed: /var/lib/am avis/amavis-20060324T145310-06469 Mar 25 04:23:49 mail amavis[6587]: (06587-03) tempdir being removed: /var/lib/am avis/amavis-20060324T150854-06587 this is from crontab: 23 4 */2 * * /usr/local/sbin/sa_rules_update.sh &> /dev/null I think somethimes, during sa_rules_update.sh job, amavisd crashes. Any idea? Regards, Vince
Does amavisd stop totally, or does it continue to work? I can imagine that this is just a server process that stops and that another server process is started. amavisd runs several server processes at the same time.
amavisd stop totally, all email received are deferred until I manually start it with /etc/init.d/amavis restart command.
Run Code: perl -MCPAN -e shell On the Perl shell, you do this: Code: install Net::DNS Afterwards, type q to leave the Perl shell.
Ok, I did it, but now I have another problem!. Code: Apr 8 09:55:38 mail amavis[12355]: (12355-03) lookup_sql: 2013, Lost connection to MySQL server during query Apr 8 09:55:38 mail amavis[12355]: (12355-03) NOTICE: Disconnected from SQL server Apr 8 09:55:38 mail amavis[12355]: (12355-03) TROUBLE in check_mail: creating_partsdir FAILED: DBD::mysql::st execute failed: Lost connection to MySQL server during query at (eval 38) line 238, <GEN14> line 275. Apr 8 09:55:38 mail amavis[12355]: (12355-03) PRESERVING EVIDENCE in /var/lib/amavis/amavis-20060407T224427-12355 Apr 8 09:55:38 mail postfix/smtp[15289]: D8F1A62D45: to=<[email protected] >, relay=127.0.0.1[127.0.0.1], delay=1500, status=deferred host127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=12355-03, creating_partsdir FAILED: DBD::mysql::st execute failed: Lost connection to MySQL server during query at (eval 38) line 238, <GEN14> line 275. (in reply to end of DATA command))
Please check again all the configuration files and compare them to the ones from the tutorial (also check their format (spaces, etc.)).
the problem above happened just once, but amavisd crash still happens. what about to put /etc/init.d/amavis restart in crontab everyday?
That wouldn't be very reliable. You could install monit to check the availability of amavisd (and let it restart it if it isn't running): http://www.tildeslash.com/monit/doc/
Hello I'm on Debian 8.7 and I get the same problem with amavis: do you have issues with mysql too? what server are you using? I'm using a small Kimsufi server.
Maybe not enough RAM? Did you check with e.g. top that you have enough free ram and did you check the syslog for "out of ram" related errors like "can not free memory" and similar issues?
probably right, because with Cron <root@ns363248> /usr/local/ispconfig/server/server.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done I get /bin/sh: fork: Can't allocate memory
total used free shared buffers cachedMem: 3926 2778 1147 156 53 2021 -/+ buffers/cache: 703 3223 Swap: 510 448 62