Hello, CentOS 5.6 and ISPconfig 3.0.3.3 installed conform with http://www.howtoforge.com/perfect-server-centos-5.6-x86_64-ispconfig-3 I have problem to send/recive e-mails. File /var/log/maillog have a very big size with one and the same error Code: Nov 8 13:22:14 althost amavis[11935]: (!)Net::Server: 2011/11/08-13:22:14 Couldn't open lock file "/var/amavis/amavisd.lock"[Permission denied]\n at line 203 in file /usr/lib/perl5/vendor_perl/5.8.8/Net/Server/PreForkSimple.pm and... next error is loged when i try to send mail from me to me - (output of command "[root@althost ~]# cat /var/log/maillog | grep [email protected]") Code: Nov 8 13:19:41 althost postfix/qmgr[22714]: 2994AD24DDE: from=<[email protected]>, size=959, nrcpt=1 (queue active) Nov 8 13:19:41 althost postfix/qmgr[22714]: A7C1FD24DE3: from=<[email protected]>, size=959, nrcpt=1 (queue active) Nov 8 13:19:41 althost postfix/qmgr[22714]: D713ED24C34: from=<[email protected]>, size=969, nrcpt=1 (queue active) Nov 8 11:19:41 althost postfix/smtp[6306]: A7C1FD24DE3: to=<[email protected]>, relay=none, delay=92343, delays=92343/0.16/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused) Nov 8 13:19:41 althost postfix/qmgr[22714]: 18CD1D24D07: to=<[email protected]>, relay=none, delay=236688, delays=236687/0.38/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection refused) ------------------------------------------------------------ next strings appears after i connect to webmail Code: Nov 8 13:27:12 althost dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Nov 8 13:27:12 althost dovecot: IMAP([email protected]): Disconnected: Logged out bytes=44/709 Nov 8 13:27:14 althost dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Nov 8 13:27:15 althost dovecot: IMAP([email protected]): Disconnected: Logged out bytes=436/5381 Nov 8 13:27:17 althost dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Nov 8 13:27:17 althost dovecot: IMAP([email protected]): Disconnected: Logged out bytes=272/1298 ------------------------------------------------------------ after i try to send a message from webmail from me to me appeare next: Code: Nov 8 13:28:46 althost sendmail[26127]: pA8BSkSN026127: Authentication-Warning: althost.[COLOR="Red"]myserverdomain[/COLOR].md: apache set sender to [email][email protected][/email] using -f Nov 8 13:28:46 althost sendmail[26127]: pA8BSkSN026127: [email protected], size=524, class=0, nrcpts=1, msgid=<50813.[COLOR="Red"](MY_HOME_IP)[/COLOR][email protected]>, relay=apache@localhost Nov 8 13:28:46 althost postfix/qmgr[22714]: 99369D24DEB: from=<[email protected]>, size=961, nrcpt=1 (queue active) Nov 8 13:28:46 althost sendmail[26127]: pA8BSkSN026127: [email protected], [email protected] (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30524, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, [COLOR="Red"]stat=Sent (Ok:[/COLOR] queued as 99369D24DEB) Nov 8 13:28:46 althost postfix/qmgr[22714]: 99369D24DEB: to=<[email protected]>, relay=none, delay=0.17, delays=0.08/0.08/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection refused) Nov 8 13:28:49 althost dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Nov 8 13:28:49 althost dovecot: IMAP([email protected]): Disconnected: Logged out bytes=610/459 Nov 8 13:28:51 althost dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Nov 8 13:28:51 althost dovecot: IMAP([email protected]): Disconnected: Logged out bytes=309/4956 Nov 8 13:28:51 althost sendmail[26334]: pA8BSp4F026334: Authentication-Warning: althost.[COLOR="Red"]myserverdomain[/COLOR].md: apache set sender to [email][email protected][/email] using -f Nov 8 13:28:51 althost sendmail[26334]: pA8BSp4F026334: [email protected], size=524, class=0, nrcpts=1, msgid=<50815.[COLOR="Red"](MY_HOME_IP)[/COLOR][email protected]>, relay=apache@localhost Nov 8 13:28:51 althost sendmail[26334]: pA8BSp4F026334: [email protected], [email protected] (48/48) , delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30524, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, [COLOR="Red"]stat=Sent (Ok[/COLOR]: queued as C2E6ED24DEC) Nov 8 13:28:51 althost postfix/qmgr[22714]: C2E6ED24DEC: from=<[email protected]>, size=961, nrcpt=1 (queue active) Nov 8 13:28:51 althost postfix/qmgr[22714]: C2E6ED24DEC: to=<[email protected]>, relay=none, delay=0.13, delay s=0.09/0.04/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:Connection refused) Nov 8 13:28:54 althost dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Nov 8 13:28:54 althost dovecot: IMAP([email protected]): Disconnected: Logged out bytes=610/459 Nov 8 13:28:55 althost dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Nov 8 13:28:55 althost dovecot: IMAP([email protected]): Disconnected: Logged out bytes=309/4956 ------------------------------------------------------------- and if i connect and send a message from TheBat from me to me the next errors apear: Code: Nov 8 13:29:49 althost dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=[COLOR="Red"]aaa.bbb.ccc.ddd (My_Home_IP)[/COLOR], lip=[COLOR="Red"]aaa.bbb.ccc.ddd (My_Server_IP)[/COLOR] Nov 8 13:29:49 althost dovecot: POP3([email protected]): Disconnected: Logged out top=0/0, retr=1/2976, del=0/7, size=20223 Nov 8 13:29:54 althost dovecot: pop3-login: Login: user=<[email protected]>, method=PLAIN, rip=[COLOR="Red"]aaa.bbb.ccc.ddd (My_Home_IP)[/COLOR], lip=[COLOR="Red"]aaa.bbb.ccc.ddd (My_Server_IP)[/COLOR] Nov 8 13:29:54 althost dovecot: POP3([email protected]): Disconnected: Logged out top=0/0, retr=0/0, del=0/7, size=20223 Nov 8 13:30:19 althost postfix/qmgr[22714]: 89DA8D24DF1: from=<[email protected]>, size=664, nrcpt=1 (queue active) Nov 8 13:30:19 althost postfix/qmgr[22714]: 89DA8D24DF1: to=<[email protected]>, relay=none, delay=0.1, delays=0.06/0.04/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection refused) ------------------------------------------------------------- Dear Till - i know that i asq to mach question, sorry... But please, tell me - how can i fix this error. Thank You! ------------------------------------------------------------- The output of postconf-n is: Code: [root@althost ~]# postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases body_checks = regexp:/etc/postfix/body_checks broken_sasl_auth_clients = yes command_directory = /usr/sbin config_directory = /etc/postfix content_filter = amavis:[127.0.0.1]:10024 daemon_directory = /usr/libexec/postfix debug_peer_level = 2 header_checks = regexp:/etc/postfix/header_checks html_directory = no inet_interfaces = all inet_protocols = ipv4 mail_owner = postfix mailbox_size_limit = 0 mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man message_size_limit = 0 mime_header_checks = regexp:/etc/postfix/mime_header_checks mydestination = althost.[COLOR="Red"]myserverdomain[/COLOR].md, localhost, localhost.localdomain myhostname = althost.[COLOR="Red"]myserverdomain[/COLOR].md mynetworks = 127.0.0.0/8 [::1]/128 nested_header_checks = regexp:/etc/postfix/nested_header_checks newaliases_path = /usr/bin/newaliases.postfix proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mai lbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES receive_override_options = no_address_mappings relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf relayhost = sample_directory = /usr/share/doc/postfix-2.3.3/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_recipient_access mysql:/etc /postfix/mysql-virtual_recipient.cf, reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_authenticated_header = yes smtpd_sasl_path = private/auth smtpd_sasl_type = dovecot smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf smtpd_tls_cert_file = /etc/postfix/smtpd.cert smtpd_tls_key_file = /etc/postfix/smtpd.key smtpd_tls_security_level = may smtpd_use_tls = yes transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf unknown_local_recipient_reject_code = 550 virtual_alias_domains = virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_e mail2email.cf virtual_gid_maps = static:5000 virtual_mailbox_base = /var/vmail virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf virtual_transport = dovecot virtual_uid_maps = static:5000 [root@althost ~]# ----------------------------------------------------------
Code: [root@althost ~]# ls -la /var/amavis total 28 drwxr-x--- 6 amavis amavis 4096 Nov 7 12:12 . drwxr-xr-x 31 root root 4096 Nov 5 20:55 .. -rw-r----- 1 103 159 0 Jun 29 23:46 amavisd.lock drwxr-x--- 2 amavis amavis 4096 Nov 7 12:12 db drwx------ 2 103 159 4096 Jun 29 23:46 .spamassassin drwxr-x--- 2 amavis amavis 4096 Jul 19 01:05 tmp drwxr-x--- 2 amavis amavis 4096 Jul 19 01:05 var Code: [root@althost ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 61G 3.6G 54G 7% / /dev/sda1 99M 19M 76M 20% /boot tmpfs 5.9G 0 5.9G 0% /dev/shm [root@althost ~]#
Please run: chown amavis:amavis /var/amavis/amavisd.lock and then restart amavis with: /etc/init.d/amavis restart or /etc/init.d/amavisd restart
Great!!! Thank You very very much! The error associated with amavis is FIXED The messages from me to me ([email protected] to [email protected]) SENT and RECEIVED ! There was only one problem to send mail to other mail domain (to [email protected])... but i`ll try to resolve it oneself, and i`ll back here if I can not. Thanks again!
ok. All messages sent and receive as me-to-me as me-to-other maildomain. And from other mail domain to me is OK. But i see one problem in /etc/log/maillog one more per 24 hour appeare next: Code: althost amavis[3797]: (03797-01) (!!)WARN: all primary virus scanners failed, considering backups I was search in Internet the solution and try to do next: 1 attempt - in /etc/group it was - Code: ... ... vscan:x:5009: and i added clamav Code: ... ... vscan:x:5009:clamav reboot server - no effect - the error amavis[3797]: (03797-01) (!!)WARN: all primary virus scanners failed, considering backups still appears after it i changed in group file 5009 to 110 Code: ... ... vscan:x:110:clamav no effect 2nd attempt - in /etc/amavis.comf uncomment section Code: @av_scanners = ( ... ... # ### http://www.clamav.net/ #['ClamAV-clamd', #\&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd"], #qr/\bOK$/m, qr/\bFOUND$/m, #qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ], # # NOTE: run clamd under the same user as amavisd, or run it under its own # # uid such as clamav, add user clamav to the amavis group, and then add # # AllowSupplementaryGroups to clamd.conf; # # NOTE: match socket name (LocalSocket) in clamav.conf to the socket name in # # this entry; when running chrooted one may prefer socket "$MYHOME/clamd". to Code: # ### http://www.clamav.net/ ['ClamAV-clamd', \&ask_daemon, ["CONTSCAN {}\n", "/var/run/clamav/clamd"], qr/\bOK$/m, qr/\bFOUND$/m, qr/^.*?: (?!Infected Archive)(.*) FOUND$/m ], # # NOTE: run clamd under the same user as amavisd, or run it under its own # # uid such as clamav, add user clamav to the amavis group, and then add # # AllowSupplementaryGroups to clamd.conf; # # NOTE: match socket name (LocalSocket) in clamav.conf to the socket name in # # this entry; when running chrooted one may prefer socket "$MYHOME/clamd". and in /etc/clamd.conf uncomment the string Code: AllowSupplementaryGroups yes reboot -no effect. the messages sent/received but in /var/log/maillog after rebooting i see next errors: Code: althost amavis[3790]: (03790-01) (!)ClamAV-clamd: Can't connect to UNIX socket /var/run/clamav/clamd: No such file or directory, retrying (2) althost amavis[3790]: (03790-01) (!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd (Can't connect to UNIX socket /var/run/clamav/clamd: No such file or directory) at (eval 92) line 375.\n althost amavis[3790]: (03790-01) (!!)WARN: all primary virus scanners failed, considering backups At the moment i returned to initial settings in /et/amavis.conf and /etc/clamd.conf and i see only Code: amavis[3797]: (03797-01) (!!)WARN: all primary virus scanners failed, considering backups Dear Till - say me please - it error is critical and if it is critical how can i fix it? Thank You!
Please undo all changes that you did in the user and group files and clamav configuration as they are not not nescesary and not even compatible with a ispconfig server. The error is not critical and just means that clamav daemon is not started so that the clamav binary is used directly for virus scanning. To fix the error, restart clamav.