1

Topic: New install on Ubuntu 12.04 - mail is only delivered on server reboot

==== Required information ====
- iRedMail version: .0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: Ubuntu 12.04
- Related log if you're reporting an issue:
====

if I reboot the server all mail is delivered but otherwise nothing gets through...

mail.log

Jan 27 00:19:02 mail postfix/cleanup[7676]: 50A103FF0F: message-id=<FB840E5A-5673-446B-B41B-7091C75A9033@gmail.com>
Jan 27 00:19:02 mail postfix/qmgr[3119]: 50A103FF0F: from=<myname@gmail.com>, size=1838, nrcpt=1 (queue active)
Jan 27 00:19:02 mail postfix/smtpd[7660]: disconnect from mail-ob0-f182.google.com[209.85.214.182]
Jan 27 00:19:04 mail amavis[2583]: (02583-08) NOTICE: reconnecting in response to: err=2006, HY000, DBD::mysql::st execute failed: MySQL server has gone away at (eval 100) line 166, <GEN37> line 1250.
Jan 27 00:19:05 mail amavis[2583]: (02583-08) (!)ClamAV-clamd: Can't connect to UNIX socket /tmp/clamd.socket: Connection refused, retrying (2)
Jan 27 00:19:11 mail amavis[2583]: (02583-08) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /tmp/clamd.socket (Can't connect to UNIX socket /tmp/clamd.socket: Connection refused) at (eval 102) line 375.\n
Jan 27 00:19:11 mail amavis[2583]: (02583-08) (!!)WARN: all primary virus scanners failed, considering backups
Jan 27 00:19:11 mail amavis[2583]: (02583-08) (!!)TROUBLE in check_mail: virus_scan FAILED: AV: ALL VIRUS SCANNERS FAILED
Jan 27 00:19:11 mail amavis[2583]: (02583-08) (!)PRESERVING EVIDENCE in /var/lib/amavis/tmp/amavis-20130126T233458-02583
Jan 27 00:19:12 mail postfix/smtp[7684]: 50A103FF0F: to=<webmaster@votemanski.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=12, delays=2.2/0.01/0.86/8.5, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451 4.5.0 Error in processing, id=02583-08, virus_scan FAILED: AV: ALL VIRUS SCANNERS FAILED (in reply to end of DATA command))

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2 (edited by jarod 2013-01-28 19:00:26)

Re: New install on Ubuntu 12.04 - mail is only delivered on server reboot

Make shure that ClamAV running (run ps -ef | grep clamav in console).

By the way, same problem as yours http://www.iredmail.org/forum/topic2383 … dmail.html

3

Re: New install on Ubuntu 12.04 - mail is only delivered on server reboot

ps -ef | grep clamav
clamav   22159     1  0 09:48 ?        00:00:02 /usr/bin/freshclam -d --quiet
root     25465 21741  0 09:53 pts/2    00:00:00 grep --color=auto clamav

/etc/init.d/clamav-daemon start
* Starting ClamAV daemon clamd                                                                                                                                                                                       Killed     [fail]

/var/log/clamav/clamav.log
empty

4

Re: New install on Ubuntu 12.04 - mail is only delivered on server reboot

Mine clamav.log empty too. Look into /var/log/clamav/clamd.log
Did you try
  # freshclam
  # /etc/init.d/clamav-freshclam restart
before restarting clamav daemon?

5

Re: New install on Ubuntu 12.04 - mail is only delivered on server reboot

yes I had run freshclam and the freshclam restart commands before trying the clamav-daemon start command, but still no luck. I found another post somewhere that said that they had to increase memory to get the clamav-daemon to start, so I tried that.

Sure enough after bumping up my 512MB linode up to 1GB, everything started up and kept running.

Mystery Solved!