#1  
Old 8th November 2011, 13:48
alexloko alexloko is offline
Junior Member
 
Join Date: Jul 2011
Posts: 14
Thanks: 5
Thanked 0 Times in 0 Posts
Default Email send problems

Hello,

CentOS 5.6 and ISPconfig 3.0.3.3 installed conform with http://www.howtoforge.com/perfect-se...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 info@mydomain.md")

Code:
Nov  8 13:19:41 althost postfix/qmgr[22714]: 2994AD24DDE: from=<info@mydomain.md>, size=959, nrcpt=1 (queue active)

Nov  8 13:19:41 althost postfix/qmgr[22714]: A7C1FD24DE3: from=<info@mydomain.md>, size=959, nrcpt=1 (queue active)

Nov  8 13:19:41 althost postfix/qmgr[22714]: D713ED24C34: from=<info@mydomain.md>, size=969, nrcpt=1 (queue active)

Nov  8 11:19:41 althost postfix/smtp[6306]: A7C1FD24DE3: to=<info@mydomain.md>, 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=<info@mydomain.md>, 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=<info@mydomain.md>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured

Nov  8 13:27:12 althost dovecot: IMAP(info@mydomain.md): Disconnected: Logged out bytes=44/709

Nov  8 13:27:14 althost dovecot: imap-login: Login: user=<info@mydomain.md>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured

Nov  8 13:27:15 althost dovecot: IMAP(info@mydomain.md): Disconnected: Logged out bytes=436/5381

Nov  8 13:27:17 althost dovecot: imap-login: Login: user=<info@mydomain.md>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured

Nov  8 13:27:17 althost dovecot: IMAP(info@mydomain.md): 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.myserverdomain.md: apache set sender to info@mydomain.md using -f

Nov  8 13:28:46 althost sendmail[26127]: pA8BSkSN026127: from=info@mydomain.md, size=524, class=0, nrcpts=1, msgid=<50813.(MY_HOME_IP).1320751726.squirrel@mydomain.md>, relay=apache@localhost

Nov  8 13:28:46 althost postfix/qmgr[22714]: 99369D24DEB: from=<info@mydomain.md>, size=961, nrcpt=1 (queue active)

Nov  8 13:28:46 althost sendmail[26127]: pA8BSkSN026127: to=info@mydomain.md, ctladdr=info@mydomain.md (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, stat=Sent (Ok: queued as 99369D24DEB)

Nov  8 13:28:46 althost postfix/qmgr[22714]: 99369D24DEB: to=<info@mydomain.md>, 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=<info@mydomain.md>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured

Nov  8 13:28:49 althost dovecot: IMAP(info@mydomain.md): Disconnected: Logged out bytes=610/459

Nov  8 13:28:51 althost dovecot: imap-login: Login: user=<info@mydomain.md>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured

Nov  8 13:28:51 althost dovecot: IMAP(info@mydomain.md): Disconnected: Logged out bytes=309/4956

Nov  8 13:28:51 althost sendmail[26334]: pA8BSp4F026334: Authentication-Warning: althost.myserverdomain.md: apache set sender to info@mydomain.md using -f

Nov  8 13:28:51 althost sendmail[26334]: pA8BSp4F026334: from=info@mydomain.md, size=524, class=0, nrcpts=1, msgid=<50815.(MY_HOME_IP).1320751731.squirrel@mydomain.md>, relay=apache@localhost

Nov  8 13:28:51 althost sendmail[26334]: pA8BSp4F026334: to=info@mydomain.md, ctladdr=info@mydomain.md (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, stat=Sent (Ok: queued as C2E6ED24DEC)

Nov  8 13:28:51 althost postfix/qmgr[22714]: C2E6ED24DEC: from=<info@mydomain.md>, size=961, nrcpt=1 (queue active)

Nov  8 13:28:51 althost postfix/qmgr[22714]: C2E6ED24DEC: to=<info@mydomain.md>, 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=<info@mydomain.md>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured

Nov  8 13:28:54 althost dovecot: IMAP(info@mydomain.md): Disconnected: Logged out bytes=610/459

Nov  8 13:28:55 althost dovecot: imap-login: Login: user=<info@mydomain.md>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured

Nov  8 13:28:55 althost dovecot: IMAP(info@mydomain.md): 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=<info@mydomain.md>, method=PLAIN, rip=aaa.bbb.ccc.ddd (My_Home_IP), lip=aaa.bbb.ccc.ddd (My_Server_IP)

Nov  8 13:29:49 althost dovecot: POP3(info@mydomain.md): 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=<info@mydomain.md>, method=PLAIN, rip=aaa.bbb.ccc.ddd (My_Home_IP), lip=aaa.bbb.ccc.ddd (My_Server_IP)

Nov  8 13:29:54 althost dovecot: POP3(info@mydomain.md): 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=<info@mydomain.md>, size=664, nrcpt=1 (queue active)

Nov  8 13:30:19 althost postfix/qmgr[22714]: 89DA8D24DF1: to=<info@mydomain.md>, 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.myserverdomain.md, localhost, localhost.localdomain
myhostname = althost.myserverdomain.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 ~]#
----------------------------------------------------------

Last edited by alexloko; 8th November 2011 at 15:06. Reason: to insert CODE
Reply With Quote
Sponsored Links
  #2  
Old 8th November 2011, 15:38
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,414
Thanks: 812
Thanked 5,204 Times in 4,080 Posts
Default

Please post the output of:

ls -la /var/amavis

and

df -h
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 8th November 2011, 15:45
alexloko alexloko is offline
Junior Member
 
Join Date: Jul 2011
Posts: 14
Thanks: 5
Thanked 0 Times in 0 Posts
Default

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 ~]#

Last edited by alexloko; 8th November 2011 at 15:46. Reason: to insert CODE
Reply With Quote
  #4  
Old 8th November 2011, 15:47
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,414
Thanks: 812
Thanked 5,204 Times in 4,080 Posts
Default

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
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
alexloko (8th November 2011)
  #5  
Old 8th November 2011, 16:54
alexloko alexloko is offline
Junior Member
 
Join Date: Jul 2011
Posts: 14
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Great!!! Thank You very very much!

The error associated with amavis is FIXED

The messages from me to me (info@mydomain.md to info@mydomain.md) SENT and RECEIVED !

There was only one problem to send mail to other mail domain (to myname@yahoo.com)... but i`ll try to resolve it oneself, and i`ll back here if I can not.

Thanks again!
Reply With Quote
  #6  
Old 11th November 2011, 10:44
alexloko alexloko is offline
Junior Member
 
Join Date: Jul 2011
Posts: 14
Thanks: 5
Thanked 0 Times in 0 Posts
Default

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!
Reply With Quote
  #7  
Old 11th November 2011, 11:11
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,414
Thanks: 812
Thanked 5,204 Times in 4,080 Posts
 
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
can't send email after installing ispconfig 3 from email client anubix Server Operation 15 9th October 2011 12:16
Postfix Cannot Receive Email - Smtp Timed Out newbielinx Installation/Configuration 4 26th September 2011 17:14
Impossible to send email with Icedove kdclaver Installation/Configuration 8 9th September 2007 00:02
Cannot send out email johnnie Installation/Configuration 1 9th July 2007 08:40
Problems getting email brice Installation/Configuration 3 1st April 2006 14:21


All times are GMT +2. The time now is 10:37.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.