can't send/recieve email postfix/smtpd

Discussion in 'Installation/Configuration' started by archbird, Oct 27, 2010.

  1. archbird

    archbird New Member

    [Solved] can't send/recieve email postfix/smtpd

    Just installed ispconfig3 on ubuntu 10.04 as "the perfect server" guide shows. However I can't send or recieve emails.

    This is what it says my mail log:
    Oct 27 10:18:16 230302 postfix/smtpd[25896]: disconnect from unknown[79.126.69.136]
    Oct 27 10:19:05 230302 imapd: Connection, ip=[::ffff:127.0.0.1]
    Oct 27 10:19:05 230302 imapd: LOGIN, user=name@mydomain.se, ip=[::ffff:127.0.0.1], port=[42812], protocol=IMAP
    Oct 27 10:19:05 230302 imapd: LOGOUT, user=name@mydomain.se, ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=119, sent=900, time=0
    Oct 27 10:20:01 230302 imapd: Connection, ip=[::ffff:127.0.0.1]
    Oct 27 10:20:01 230302 imapd: Disconnected, ip=[::ffff:127.0.0.1], time=0
    Oct 27 10:20:01 230302 pop3d: Connection, ip=[::ffff:127.0.0.1]
    Oct 27 10:20:01 230302 pop3d: Disconnected, ip=[::ffff:127.0.0.1]
    Oct 27 10:20:01 230302 postfix/smtpd[26252]: connect from localhost.localdomain[127.0.0.1]
    Oct 27 10:20:01 230302 postfix/smtpd[26252]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Oct 27 10:20:01 230302 postfix/smtpd[26252]: disconnect from localhost.localdomain[127.0.0.1]
    Oct 27 10:21:36 230302 postfix/anvil[25898]: statistics: max connection rate 1/60s for (smtp:79.126.69.136) at Oct 27 10:18:14
    Oct 27 10:21:36 230302 postfix/anvil[25898]: statistics: max connection count 1 for (smtp:79.126.69.136) at Oct 27 10:18:14
    Oct 27 10:21:36 230302 postfix/anvil[25898]: statistics: max cache size 1 at

    How can I fix this, where should I start?
     
    Last edited: Oct 27, 2010
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Please post the output of:

    netstat -tap
     
  3. archbird

    archbird New Member

    netstat-tap:

    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 localhost.localdo:10025 *:* LISTEN 11536/master
    tcp 0 0 *:mysql *:* LISTEN 1779/mysqld
    tcp 0 0 *:http-alt *:* LISTEN 28263/apache2
    tcp 0 0 *:www *:* LISTEN 28263/apache2
    tcp 0 0 *:tproxy *:* LISTEN 28263/apache2
    tcp 0 0 87.237.212.250:domain *:* LISTEN 3958/named
    tcp 0 0 230302.vps.fsdat:domain *:* LISTEN 3958/named
    tcp 0 0 localhost.locald:domain *:* LISTEN 3958/named
    tcp 0 0 *:ftp *:* LISTEN 3935/pure-ftpd (SER
    tcp 0 0 *:ssh *:* LISTEN 14015/sshd
    tcp 0 0 *:smtp *:* LISTEN 11536/master
    tcp 0 0 localhost.localdoma:953 *:* LISTEN 3958/named
    tcp 0 0 *:https *:* LISTEN 28263/apache2
    tcp 0 0 localhost.localdo:mysql localhost.localdo:41776 ESTABLISHED 1779/mysqld
    tcp 0 0 localhost.localdo:41776 localhost.localdo:mysql ESTABLISHED 28148/smtp
    tcp 0 240 230302.vps.fsdata.s:ssh 94.191.158.244.br:43580 ESTABLISHED 7924/0
    tcp6 0 0 [::]:pop3 [::]:* LISTEN 3857/couriertcpd
    tcp6 0 0 [::]:imap2 [::]:* LISTEN 3828/couriertcpd
    tcp6 0 0 [::]:domain [::]:* LISTEN 3958/named
    tcp6 0 0 [::]:ftp [::]:* LISTEN 3935/pure-ftpd (SER
    tcp6 0 0 [::]:ssh [::]:* LISTEN 14015/sshd
    tcp6 0 0 ::1%1551491029:953 [::]:* LISTEN 3958/named
    tcp6 0 0 [::]:imaps [::]:* LISTEN 3846/couriertcpd
    tcp6 0 0 [::]:pop3s [::]:* LISTEN 3883/couriertcpd

    Thanks.
     
  4. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    amavisd seems not to be started. Pkease start the amavis daemon with its startscript in /etc/init.d/
     
  5. archbird

    archbird New Member

    Thanks!

    It was a problem with the host name in /etc/amavis/conf.d/05-node_id, I corrected it and amavisd starts fine and it works to both send and recieve email!
     
  6. vaio

    vaio New Member

    Hello.
    I am also unable to send/receive emails. When sending with webmail, message is stored in sent folder, but not actually sent.

    Can you please advise me how to solve this. I am new with ISPConfig.

    I attach logs:

    Mail queue
    Code:
    Data from: 2010-11-07 11:40
    -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
    D3E9224C373* 702 Sun Nov 7 11:39:56 root@95.128.204.36
    root@95.128.204.36
    
    A4DA124C34C 726 Sat Nov 6 17:23:40 matej@adstoolbox.com
    (host 127.0.0.1[127.0.0.1] said: 451-4.5.0 Error in processing, id=03992-05, virus_scan FAILED: virus_scan: ALL VIRUS SCANNERS FAILED: ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (Can't connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory) at (eval 88) line 309.; ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 50, output="LibClamAV Warning: *********************************************************** 451-4.5.0 LibClamAV Warning: *** This version of the ClamAV engine is outdated. *** 451-4.5.0 LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq *** 451-4.5.0 LibClamAV Warning: *********************************************************** 451-4.5.0 LibClamAV Error: cli_hex2str(): Malformed hexstring: This ClamAV version has reached End of Life! Please upgrade to version 0.95 or later. For more information see www.clamav.net/eol-clamav-094 and www.clamav.net/download (length: 169) 451-4.5.0 LibClamAV Error: Problem parsing database at line 737 451-4.5.0 LibClamAV Error: Can't load daily.ndb: Malformed database 451-4.5.0 LibClamAV Error: cli_tgzload: Can't load daily.ndb 451-4.5.0 LibClamAV Error: Can't load /var/lib/clamav//daily.cld: Malformed database 451 4.5.0 ERROR: Malformed database" at (eval 88) line 527. (in reply to end of DATA command))
    matej.mb@gmail.com
    
    C098324C369 18663 Sun Nov 7 06:26:12 root@95.128.204.36
    (host 127.0.0.1[127.0.0.1] said: 451-4.5.0 Error in processing, id=04192-05, virus_scan FAILED: virus_scan: ALL VIRUS SCANNERS FAILED: ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (Can't connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory) at (eval 88) line 309.; ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 50, output="LibClamAV Warning: *********************************************************** 451-4.5.0 LibClamAV Warning: *** This version of the ClamAV engine is outdated. *** 451-4.5.0 LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq *** 451-4.5.0 LibClamAV Warning: *********************************************************** 451-4.5.0 LibClamAV Error: cli_hex2str(): Malformed hexstring: This ClamAV version has reached End of Life! Please upgrade to version 0.95 or later. For more information see www.clamav.net/eol-clamav-094 and www.clamav.net/download (length: 169) 451-4.5.0 LibClamAV Error: Problem parsing database at line 737 451-4.5.0 LibClamAV Error: Can't load daily.ndb: Malformed database 451-4.5.0 LibClamAV Error: cli_tgzload: Can't load daily.ndb 451-4.5.0 LibClamAV Error: Can't load /var/lib/clamav//daily.cld: Malformed database 451 4.5.0 ERROR: Malformed database" at (eval 88) line 527. (in reply to end of DATA command))
    root@95.128.204.36
    

    Mail log
    Code:
    Data from: 2010-11-07 11:45
    Nov 7 11:37:01 vadmin5454 postfix/anvil[5281]: statistics: max cache size 29 at Nov 7 11:34:35
    Nov 7 11:37:01 vadmin5454 postfix/qmgr[6026]: 50AAB24C25F: from=, size=1765, nrcpt=1 (queue active)
    Nov 7 11:37:02 vadmin5454 amavis[4192]: (04192-08) (!)ClamAV-clamd: Can't connect to UNIX socket /var/run/clamav/clamd.ctl: 2, retrying (2)
    Nov 7 11:37:08 vadmin5454 amavis[4192]: (04192-08) (!!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (Can't connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory) at (eval 88) line 309.
    Nov 7 11:37:08 vadmin5454 amavis[4192]: (04192-08) (!!)WARN: all primary virus scanners failed, considering backups
    Nov 7 11:37:08 vadmin5454 amavis[4192]: (04192-08) (!!)run_av (ClamAV-clamscan) FAILED - unexpected exit 50, output="LibClamAV Warning: ***********************************************************\nLibClamAV Warning: *** This version of the ClamAV engine is outdated. ***\nLibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***\nLibClamAV Warning: ***********************************************************\nLibClamAV Error: cli_hex2str(): Malformed hexstring: This ClamAV version has reached End of Life! Please upgrade to version 0.95 or later. For more information see www.clamav.net/eol-clamav-094 and www.clamav.net/download (length: 169)\nLibClamAV Error: Problem parsing database at line 737\nLibClamAV Error: Can't load daily.ndb: Malformed database\nLibClamAV Error: cli_tgzload: Can't load daily.ndb\nLibClamAV Error: Can't load /var/lib/clamav//daily.cld: Malformed database\nERROR: Malformed database"
    Nov 7 11:37:08 vadmin5454 amavis[4192]: (04192-08) (!!)ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 50, output="LibClamAV Warning: ***********************************************************\nLibClamAV Warning: *** This version of the ClamAV engine is outdated. ***\nLibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***\nLibClamAV Warning: ***********************************************************\nLibClamAV Error: cli_hex2str(): Malformed hexstring: This ClamAV version has reached End of Life! Please upgrade to version 0.95 or later. For more information see www.clamav.net/eol-clamav-094 and www.clamav.net/download (length: 169)\nLibClamAV Error: Problem parsing database at line 737\nLibClamAV Error: Can't load daily.ndb: Malformed database\nLibClamAV Error: cli_tgzload: Can't load daily.ndb\nLibClamAV Error: Can't load /var/lib/clamav//daily.cld: Malformed database\nERROR: Malformed database" at (eval 88) line 527.
    Nov 7 11:37:08 vadmin5454 amavis[4192]: (04192-08) (!!)TROUBLE in check_mail: virus_scan FAILED: virus_scan: ALL VIRUS SCANNERS FAILED: ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (Can't connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory) at (eval 88) line 309.; ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 50, output="LibClamAV Warning: ***********************************************************\nLibClamAV Warning: *** This version of the ClamAV engine is outdated. ***\nLibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***\nLibClamAV Warning: ***********************************************************\nLibClamAV Error: cli_hex2str(): Malformed hexstring: This ClamAV version has reached End of Life! Please upgrade to version 0.95 or later. For more information see www.clamav.net/eol-clamav-094 and www.clamav.net/download (length: 169)\nLibClamAV Error: Problem parsing d...
    Nov 7 11:37:08 vadmin5454 amavis[4192]: (04192-08) (!!)...atabase at line 737\nLibClamAV Error: Can't load daily.ndb: Malformed database\nLibClamAV Error: cli_tgzload: Can't load daily.ndb\nLibClamAV Error: Can't load /var/lib/clamav//daily.cld: Malformed database\nERROR: Malformed database" at (eval 88) line 527.
    Nov 7 11:37:08 vadmin5454 amavis[4192]: (04192-08) (!)PRESERVING EVIDENCE in /var/lib/amavis/tmp/amavis-20101107T113701-04192
    Nov 7 11:37:08 vadmin5454 postfix/smtp[6030]: 50AAB24C25F: to=, relay=127.0.0.1[127.0.0.1]:10024, delay=65656, delays=65649/0.02/0/7.3, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451-4.5.0 Error in processing, id=04192-08, virus_scan FAILED: virus_scan: ALL VIRUS SCANNERS FAILED: ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (Can't connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory) at (eval 88) line 309.; ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 50, output="LibClamAV Warning: *********************************************************** 451-4.5.0 LibClamAV Warning: *** This version of the ClamAV engine is outdated. *** 451-4.5.0 LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq *** 451-4.5.0 LibClamAV Warning: *********************************************************** 451-4.5.0 LibClamAV Error: cli_hex2str(): Malformed hexstring: This ClamA
    Nov 7 11:37:21 vadmin5454 postfix/smtpd[6094]: connect from unknown[116.72.249.62]
    Nov 7 11:37:23 vadmin5454 postfix/smtpd[6094]: NOQUEUE: reject: RCPT from unknown[116.72.249.62]: 554 5.7.1 : Relay access denied; from= to= proto=ESMTP helo=
    Nov 7 11:37:23 vadmin5454 postfix/smtpd[6094]: lost connection after DATA (0 bytes) from unknown[116.72.249.62]
    Nov 7 11:37:23 vadmin5454 postfix/smtpd[6094]: disconnect from unknown[116.72.249.62]
    Nov 7 11:39:56 vadmin5454 postfix/pickup[6028]: D3E9224C373: uid=0 from=
    Nov 7 11:39:56 vadmin5454 postfix/cleanup[6139]: D3E9224C373: message-id=<20101107103956.D3E9224C373@vadmin5454>
    Nov 7 11:39:56 vadmin5454 postfix/qmgr[6026]: D3E9224C373: from=, size=702, nrcpt=1 (queue active)
    Nov 7 11:39:57 vadmin5454 amavis[3992]: (03992-11) (!)ClamAV-clamd: Can't connect to UNIX socket /var/run/clamav/clamd.ctl: 2, retrying (2)
    Nov 7 11:40:01 vadmin5454 pop3d: Connection, ip=[::ffff:127.0.0.1]


    Mail warn-log
    Code:
    Data from: 2010-11-07 11:45
    Nov 7 11:14:33 vadmin5454 postfix/smtpd[5465]: warning: 183.184.102.81: address not listed for hostname 81.102.184.183.adsl-pool.sx.cn
    Nov 7 11:15:13 vadmin5454 postfix/smtpd[5465]: warning: 193.34.172.42: hostname 42-172.users.icservice.net.ua verification failed: Name or service not known
    Nov 7 11:17:21 vadmin5454 postfix/smtpd[5341]: warning: 194.79.61.249: hostname 194.79.61.249.alchevsk.net verification failed: Name or service not known
    Nov 7 11:18:02 vadmin5454 postfix/smtpd[5341]: warning: 122.178.223.97: hostname ABTS-KK-Dynamic-097.223.178.122.airtelbroadband.in verification failed: Name or service not known
    Nov 7 11:18:30 vadmin5454 postfix/smtpd[5341]: warning: 95.79.15.66: hostname net15.79.95-66.nn.ertelecom.ru verification failed: Name or service not known
    Nov 7 11:20:12 vadmin5454 postfix/smtpd[5341]: warning: 113.168.214.207: address not listed for hostname localhost
    Nov 7 11:20:37 vadmin5454 postfix/smtpd[5325]: warning: 217.197.247.53: hostname pppoe-247-53.tsinet.ru verification failed: Name or service not known
    Nov 7 11:20:44 vadmin5454 postfix/smtpd[5341]: warning: 212.179.66.138: hostname bzq-179-66-138.static.bezeqint.net verification failed: Name or service not known
    Nov 7 11:22:45 vadmin5454 postfix/smtpd[5341]: warning: 178.137.0.221: hostname 178-137-0-221-kie.broadband.kyivstar.net verification failed: Name or service not known
    Nov 7 11:22:52 vadmin5454 amavis[3992]: (03992-09) (!)ClamAV-clamd: Can't connect to UNIX socket /var/run/clamav/clamd.ctl: 2, retrying (2)
    Nov 7 11:22:58 vadmin5454 amavis[3992]: (03992-09) (!!)ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (Can't connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory) at (eval 88) line 309.
    Nov 7 11:22:58 vadmin5454 amavis[3992]: (03992-09) (!!)WARN: all primary virus scanners failed, considering backups
    Nov 7 11:22:58 vadmin5454 amavis[3992]: (03992-09) (!!)run_av (ClamAV-clamscan) FAILED - unexpected exit 50, output="LibClamAV Warning: ***********************************************************\nLibClamAV Warning: *** This version of the ClamAV engine is outdated. ***\nLibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***\nLibClamAV Warning: ***********************************************************\nLibClamAV Error: cli_hex2str(): Malformed hexstring: This ClamAV version has reached End of Life! Please upgrade to version 0.95 or later. For more information see www.clamav.net/eol-clamav-094 and www.clamav.net/download (length: 

    Mail error-log
    Code:
    Data from: 2010-11-07 11:45
    Nov 7 10:57:55 vadmin5454 amavis[4192]: (04192-02) (!!)run_av (ClamAV-clamscan) FAILED - unexpected exit 50, output="LibClamAV Warning: ***********************************************************\nLibClamAV Warning: *** This version of the ClamAV engine is outdated. ***\nLibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***\nLibClamAV Warning: ***********************************************************\nLibClamAV Error: cli_hex2str(): Malformed hexstring: This ClamAV version has reached End of Life! Please upgrade to version 0.95 or later. For more information see www.clamav.net/eol-clamav-094 and www.clamav.net/download (length: 169)\nLibClamAV Error: Problem parsing database at line 737\nLibClamAV Error: Can't load daily.ndb: Malformed database\nLibClamAV Error: cli_tgzload: Can't load daily.ndb\nLibClamAV Error: Can't load /var/lib/clamav//daily.cld: Malformed database\nERROR: Malformed database"
    Nov 7 10:57:55 vadmin5454 amavis[4192]: (04192-02) (!!)ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 50, output="LibClamAV Warning: ***********************************************************\nLibClamAV Warning: *** This version of the ClamAV engine is outdated. ***\nLibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***\nLibClamAV Warning: ***********************************************************\nLibClamAV Error: cli_hex2str(): Malformed hexstring: This ClamAV version has reached End of Life! Please upgrade to version 0.95 or later. For more information see www.clamav.net/eol-clamav-094 and www.clamav.net/download (length: 169)\nLibClamAV Error: Problem parsing database at line 737\nLibClamAV Error: Can't load daily.ndb: Malformed database\nLibClamAV Error: cli_tgzload: Can't load daily.ndb\nLibClamAV Error: Can't load /var/lib/clamav//daily.cld: Malformed database\nERROR: Malformed database" at (eval 88) line 527.
    Nov 7 10:57:55 vadmin5454 amavis[4192]: (04192-02) (!!)TROUBLE in check_mail: virus_scan FAILED: virus_scan: ALL VIRUS SCANNERS FAILED: ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /var/run/clamav/clamd.ctl (Can't connect to UNIX socket /var/run/clamav/clamd.ctl: No such file or directory) at (eval 88) line 309.; ClamAV-clamscan av-scanner FAILED: /usr/bin/clamscan unexpected exit 50, output="LibClamAV Warning: ***********************************************************\nLibClamAV Warning: *** This version of the ClamAV engine is outdated. ***\nLibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***\nLibClamAV Warning: 

    ISPConfig looks on first really promising.
    Thank you for advices!
    M.
     
  7. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    What's your distribution? Please make sure that clamd is running.
     

Share This Page