Hi, Almost smoothly and perfectly done, I followed the guide: The Perfect Server - CentOS 6.4 x86_64 (Apache2, Dovecot, ISPConfig 3) When I got to: Code: sa-update chkconfig --levels 235 amavisd on chkconfig --del clamd chkconfig --levels 235 clamd.amavisd on /usr/bin/freshclam /etc/init.d/amavisd start /etc/init.d/clamd.amavisd start I received the following: Code: [root@s1 install]# /etc/init.d/clamd.amavisd start Starting clamd.amavisd: [FAILED] STOP and RESTART give the same issue. I have restarted postfix. Anyone can guide me through this please? Thank you
I am sorry to be a noob user but follows the log as shown by ISPConfig 3: Code: Aug 22 09:40:02 s1 dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory Aug 22 09:40:02 s1 dovecot: master: Error: service(auth): command startup failed, throttling Aug 22 09:40:02 s1 dovecot: log: Error: service(auth): child 21201 returned error 89 (Fatal failure) Aug 22 09:40:02 s1 postfix/smtpd[21194]: connect from localhost.localdomain[::1] Aug 22 09:40:12 s1 postfix/smtpd[21194]: fatal: no SASL authentication mechanisms Aug 22 09:40:13 s1 postfix/master[21154]: warning: process /usr/libexec/postfix/smtpd pid 21194 exit status 1 Aug 22 09:40:13 s1 postfix/master[21154]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Aug 22 09:40:28 s1 clamd[21241]: clamd daemon 0.97.8 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64) Aug 22 09:40:28 s1 clamd[21241]: Running as user amavis (UID 496, GID 497) Aug 22 09:40:28 s1 clamd[21241]: Log file size limited to 1048576 bytes. Aug 22 09:40:28 s1 clamd[21241]: Reading databases from /var/lib/clamav Aug 22 09:40:28 s1 clamd[21241]: Not loading PUA signatures. Aug 22 09:40:28 s1 clamd[21241]: Bytecode: Security mode set to "TrustSigned". Aug 22 09:40:36 s1 clamd[21241]: Loaded 2676123 signatures. Aug 22 09:40:37 s1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=21195, input bytes=0 Aug 22 09:40:37 s1 clamd[21241]: LOCAL: Unix socket file /var/spool/amavisd/clamd.sock Aug 22 09:40:37 s1 clamd[21241]: LOCAL: Setting connection queue length to 200 Aug 22 09:40:37 s1 clamd[21241]: daemonize() failed: Cannot allocate memory Aug 22 09:40:37 s1 clamd[21241]: Socket file removed. Aug 22 09:40:49 s1 clamd[21261]: clamd daemon 0.97.8 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64) Aug 22 09:40:49 s1 clamd[21261]: Running as user amavis (UID 496, GID 497) Aug 22 09:40:49 s1 clamd[21261]: Log file size limited to 1048576 bytes. Aug 22 09:40:49 s1 clamd[21261]: Reading databases from /var/lib/clamav Aug 22 09:40:49 s1 clamd[21261]: Not loading PUA signatures. Aug 22 09:40:49 s1 clamd[21261]: Bytecode: Security mode set to "TrustSigned". Aug 22 09:40:56 s1 clamd[21261]: Loaded 2676123 signatures. Aug 22 09:40:57 s1 clamd[21261]: LOCAL: Unix socket file /var/spool/amavisd/clamd.sock Aug 22 09:40:57 s1 clamd[21261]: LOCAL: Setting connection queue length to 200 Aug 22 09:40:57 s1 clamd[21261]: daemonize() failed: Cannot allocate memory Aug 22 09:40:57 s1 clamd[21261]: Socket file removed. Aug 22 09:41:02 s1 dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory Aug 22 09:41:02 s1 dovecot: master: Error: service(auth): command startup failed, throttling Aug 22 09:41:02 s1 dovecot: log: Error: service(auth): child 21272 returned error 89 (Fatal failure) Aug 22 09:41:32 s1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=21195, input bytes=0 Aug 22 09:42:02 s1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=21195, input bytes=0 Aug 22 09:42:02 s1 dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory Aug 22 09:42:02 s1 dovecot: master: Error: service(auth): command startup failed, throttling Aug 22 09:42:02 s1 dovecot: log: Error: service(auth): child 21282 returned error 89 (Fatal failure) Aug 22 09:42:37 s1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=21195, input bytes=0 Aug 22 09:43:02 s1 dovecot: pop3-login: Disconnected: Inactivity (no auth attempts): rip=::1, lip=::1, secured Aug 22 09:43:02 s1 dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory Aug 22 09:43:02 s1 dovecot: master: Error: service(auth): command startup failed, throttling Aug 22 09:43:02 s1 dovecot: log: Error: service(auth): child 21292 returned error 89 (Fatal failure) Aug 22 09:44:57 s1 clamd[21320]: clamd daemon 0.97.8 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64) Aug 22 09:44:57 s1 clamd[21320]: Running as user amavis (UID 496, GID 497) Aug 22 09:44:57 s1 clamd[21320]: Log file size limited to 1048576 bytes. Aug 22 09:44:57 s1 clamd[21320]: Reading databases from /var/lib/clamav Aug 22 09:44:57 s1 clamd[21320]: Not loading PUA signatures. Aug 22 09:44:57 s1 clamd[21320]: Bytecode: Security mode set to "TrustSigned". Aug 22 09:45:01 s1 dovecot: imap-login: Disconnected (no auth attempts): rip=::1, lip=::1, secured Aug 22 09:45:01 s1 postfix/smtpd[21354]: connect from localhost.localdomain[::1] Aug 22 09:45:01 s1 dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory Aug 22 09:45:01 s1 dovecot: master: Error: service(auth): command startup failed, throttling Aug 22 09:45:01 s1 dovecot: log: Error: service(auth): child 21362 returned error 89 (Fatal failure) Aug 22 09:45:01 s1 postfix/smtpd[21354]: fatal: no SASL authentication mechanisms Aug 22 09:45:02 s1 postfix/master[21154]: warning: process /usr/libexec/postfix/smtpd pid 21354 exit status 1 Aug 22 09:45:02 s1 postfix/master[21154]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Aug 22 09:45:06 s1 clamd[21320]: Loaded 2676123 signatures. Aug 22 09:45:06 s1 clamd[21320]: LOCAL: Unix socket file /var/spool/amavisd/clamd.sock Aug 22 09:45:06 s1 clamd[21320]: LOCAL: Setting connection queue length to 200 Aug 22 09:45:06 s1 clamd[21320]: daemonize() failed: Cannot allocate memory Aug 22 09:45:06 s1 clamd[21320]: Socket file removed. Aug 22 09:45:36 s1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=21355, input bytes=0 Aug 22 09:46:01 s1 dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory Aug 22 09:46:01 s1 dovecot: master: Error: service(auth): command startup failed, throttling Aug 22 09:46:01 s1 dovecot: log: Error: service(auth): child 21385 returned error 89 (Fatal failure) Aug 22 09:46:31 s1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=21355, input bytes=0 Aug 22 09:47:01 s1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=21355, input bytes=0 Aug 22 09:47:01 s1 dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory Aug 22 09:47:01 s1 dovecot: master: Error: service(auth): command startup failed, throttling Aug 22 09:47:01 s1 dovecot: log: Error: service(auth): child 21404 returned error 89 (Fatal failure) Aug 22 09:47:36 s1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=21355, input bytes=0 Aug 22 09:48:01 s1 dovecot: pop3-login: Disconnected: Inactivity (no auth attempts): rip=::1, lip=::1, secured Aug 22 09:48:01 s1 dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory Aug 22 09:48:01 s1 dovecot: master: Error: service(auth): command startup failed, throttling Aug 22 09:48:01 s1 dovecot: log: Error: service(auth): child 21414 returned error 89 (Fatal failure) Aug 22 09:50:01 s1 dovecot: imap-login: Disconnected (no auth attempts): rip=::1, lip=::1, secured Aug 22 09:50:02 s1 postfix/smtpd[21456]: connect from localhost.localdomain[::1] Aug 22 09:50:02 s1 dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory Aug 22 09:50:02 s1 dovecot: master: Error: service(auth): command startup failed, throttling Aug 22 09:50:02 s1 dovecot: log: Error: service(auth): child 21465 returned error 89 (Fatal failure) Aug 22 09:50:02 s1 postfix/smtpd[21456]: fatal: no SASL authentication mechanisms Aug 22 09:50:03 s1 postfix/master[21154]: warning: process /usr/libexec/postfix/smtpd pid 21456 exit status 1 Aug 22 09:50:03 s1 postfix/master[21154]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Aug 22 09:50:36 s1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=21457, input bytes=0 Aug 22 09:51:02 s1 dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory Aug 22 09:51:02 s1 dovecot: master: Error: service(auth): command startup failed, throttling Aug 22 09:51:02 s1 dovecot: log: Error: service(auth): child 21561 returned error 89 (Fatal failure) Aug 22 09:51:32 s1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=21457, input bytes=0 Aug 22 09:52:02 s1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=21457, input bytes=0 Aug 22 09:52:02 s1 dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory Aug 22 09:52:02 s1 dovecot: master: Error: service(auth): command startup failed, throttling Aug 22 09:52:02 s1 dovecot: log: Error: service(auth): child 21581 returned error 89 (Fatal failure) Aug 22 09:52:37 s1 dovecot: pop3-login: Error: Timeout waiting for handshake from auth server. my pid=21457, input bytes=0 Aug 22 09:53:01 s1 dovecot: pop3-login: Disconnected: Inactivity (no auth attempts): rip=::1, lip=::1, secured Aug 22 09:53:02 s1 dovecot: auth: Error: Can't open configuration file /etc/dovecot-sql.conf: No such file or directory Aug 22 09:53:02 s1 dovecot: master: Error: service(auth): command startup failed, throttling Aug 22 09:53:02 s1 dovecot: log: Error: service(auth): child 21625 returned error 89 (Fatal failure) Aug 22 09:55:01 s1 dovecot: imap-login: Disconnected (no auth attempts): rip=::1, lip=::1, secured Aug 22 09:55:02 s1 postfix/smtpd[21693]: connect from localhost.localdomain[::1]
Further information: to check running services: # chkconfig --list | grep "amavisd\|clamd\|spamassassin" Code: amavisd 0:off 1:off 2:on 3:on 4:off 5:on 6:off clamd.amavisd 0:off 1:off 2:on 3:on 4:off 5:on 6:off spamassassin 0:off 1:off 2:off 3:off 4:off 5:off 6:off it shows as if it's running !!! Also, in CentOs guide they mention that this by editing the /etc/clamd.conf This is not mentioned in the guide, should this be done?