1

Topic: Not recieving mail, cannot send mail neither

Hello,

i've finished setting up the iredmail on a fresh server.

After creating my domains (for example seek-team.com) and some user like admin

i entered my settings on my Thunderbird, after validating itself the settings

ThunderBird found :
server type : IMAP
server name : seek-team.com
port 143

In the SMTP section :
admin[at]seek-team.com
port 465
SSL/TLS

My domains (my dedicaced server is not hosted on the same compagny that my domains) :
MX type :  mail2.seek-team.com
A type : 'IP of my dedicaced server'

All is correctly setup, i mean, i can access my account, but message aren't send , and aren't recieved. I also tried in the RoundCube interface : same effect.

='(
What i've did wrong ?
Thanks

----

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

2

Re: Not recieving mail, cannot send mail neither

Check postfix mail log first, /var/log/mail.log

3 (edited by anxious 2010-09-15 01:22:15)

Re: Not recieving mail, cannot send mail neither

This is what we're looking for ?

Aug  6 19:14:13 tristan-web postfix/smtp[3045]: E43B116035C: to=<>, relay=127.0.0.1[127.0.0.1]:10024, delay=1148, delays=1141/0.04/0/7.6, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451-4.5.0 Error in processing, id=02103-06, virus_scan FAILED: virus_scan: ALL VIRUS SCANNERS FAILED: ClamAV-clamd av-scanner FAILED: run_av error: Too many retries to talk to /tmp/clamd.socket

more here :

Aug  6 19:14:12 tristan-web amavis[2104]: (02104-06) (!!)WARN: all primary virus scanners failed, considering backups
Aug  6 19:14:13 tristan-web amavis[2103]: (02103-06) (!!)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 738\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"


Aug  6 19:14:13 tristan-web amavis[2103]: (02103-06) (!!)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 738\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 98) line 527.


Aug  6 19:14:13 tristan-web amavis[2103]: (02103-06) (!!)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 /tmp/clamd.socket (Can't connect to UNIX socket /tmp/clamd.socket: No such file or directory) at (eval 98) 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 database at line ...


Aug  6 19:14:13 tristan-web amavis[2103]: (02103-06) (!!)...738\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 98) line 527.


Aug  6 19:14:13 tristan-web amavis[2103]: (02103-06) (!)PRESERVING EVIDENCE in /var/lib/amavis/tmp/amavis-20100806T191405-02103


Aug  6 19:14:13 tristan-web postfix/smtp[3045]: E43B116035C: to=, relay=127.0.0.1[127.0.0.1]:10024, delay=1148, delays=1141/0.04/0/7.6, dsn=4.5.0, status=deferred (host 127.0.0.1[127.0.0.1] said: 451-4.5.0 Error in processing, id=02103-06, virus_scan FAILED: virus_scan: ALL VIRUS SCANNERS FAILED: 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: No such file or directory) at (eval 98) 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  

4

Re: Not recieving mail, cannot send mail neither

Run command 'freshclam' to update ClamAV anti-virus database first, and then restart amavisd and clamav services.

5

Re: Not recieving mail, cannot send mail neither

i updated, then restarted both of the services :

Stopping ClamAV daemon: clamd.
Starting ClamAV daemon: clamd LibClamAV Warning: ***********************************************************
LibClamAV Warning: ***  This version of the ClamAV engine is outdated.     ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/support/faq ***
LibClamAV Warning: ***********************************************************
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)
LibClamAV Error: Problem parsing database at line 738
LibClamAV Error: Can't load daily.ndb: Malformed database
LibClamAV Error: cli_tgzload: Can't load daily.ndb
LibClamAV Error: Can't load /var/lib/clamav/daily.cld: Malformed database
ERROR: Malformed database
failed!


I think i got the same message on installation.

Any idea please ? (thanks for your help)

6

Re: Not recieving mail, cannot send mail neither

Google first (it's too late for me to stay online, sorry)

7 (edited by anxious 2010-08-07 09:55:02)

Re: Not recieving mail, cannot send mail neither

Ok i found that it might be a file which is corrupted, but how to solve it ?

i found so many solution different for different distribution that i'm afraid to break something...

How do i isolate the corrupted file ? How to fix it ?

Thank you for your help wink

8

Re: Not recieving mail, cannot send mail neither

Your clamav is too old, that's strange.

Update /etc/apt/sources.list, use default stable version. e.g.

deb http://http.us.debian.org/debian lenny main
deb http://security.debian.org/ lenny/updates main
deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free

And then:

# apt-get update
# apt-get upgrade

It will update ClamAV to the latest version (0.96).

9

Re: Not recieving mail, cannot send mail neither

ZhangHuangbin wrote:

deb http://http.us.debian.org/debian lenny main deb http://security.debian.org/ lenny/updates main deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free

i tryed to do apt-get upgrade but it didn't upgrade it.

then apt-get dist upgrade then it fixed everything.

you're definitly the best.

Thanks

10 (edited by anxious 2010-08-07 20:11:47)

Re: Not recieving mail, cannot send mail neither

ok, i talked to fast, now :

sending mail via ThunderBird is OK
receving mail has a delay of exactly 7 minutes is that normal ?

sending mail via swiftmailer : id NOT OK, i tried

host:       seek-team.com
port:       25
username:   "myemail@seek-team.com"
password:   "mypassword"

then,

host:       seek-team.com
port:       465
encryption: ssl
username:   "myemail@seek-team.com"
password:   "mypassword"

I think it's because it's trying to connect not by localhost when using swift mailer look at this :

When using thunderbird (it's ok) :

Aug  7 13:54:05 tristan-web postfix/smtpd[14471]: connect from tristan-web.fr[127.0.0.1]

When using swift mailer (it's different and not ok):

Aug  7 13:53:04 tristan-web postfix/smtpd[14460]: connect from 18678hd45017.ikoula.com[213.246.46.18]
Aug  7 13:53:04 tristan-web postfix/smtpd[14460]: NOQUEUE: reject: RCPT from 18678hd45017.ikoula.com[213.246.46.18]: 553 5.7.1 <tristan.bessoussa@gmail.com>: Sender address rejected: not owned by user info@seek-team.com; from=<tristan.bessoussa@gmail.com> to=<anxious@orange.fr> proto=ESMTP helo=<www.seek-team.com>
Aug  7 13:53:04 tristan-web postfix/smtpd[14460]: disconnect from 18678hd45017.ikoula.com[213.246.46.18]


For the delay issue :

Aug  7 13:39:32 tristan-web postfix-policyd: connection from: 127.0.0.1 port: 38712 slots: 1 of 4096 used
Aug  7 13:39:32 tristan-web postfix-policyd: rcpt=6, greylist=new, host=74.125.82.178 (mail-wy0-f178.google.com), from=myadress@gmail.com, to=info@mydomain.com, size=0
Aug  7 13:39:32 tristan-web postfix/smtpd[14357]: NOQUEUE: reject: RCPT from mail-wy0-f178.google.com[74.125.82.178]: 450 4.7.1 <info@mydomain.com>: Recipient address rejected: Policy Rejection- Please try later.; from=<myadress@gmail.com> to=<info@mydomain.com> proto=ESMTP helo=<mail-wy0-f178.google.com>

11

Re: Not recieving mail, cannot send mail neither

it's normal. search 'greylisting' in forum first

12 (edited by anxious 2010-08-07 20:15:47)

Re: Not recieving mail, cannot send mail neither

oh crap i updated my post with another while you're anwsering.

it's an issue with sending mail with swiftmailer

13

Re: Not recieving mail, cannot send mail neither

Sender address rejected: not owned by user

Search this forum first

14

Re: Not recieving mail, cannot send mail neither

ok i need to set the FROM the same as the real FROM adress

am i on the right track?  smile

thanks

15

Re: Not recieving mail, cannot send mail neither

Search forum first, please. don't be a lazy man. smile

16

Re: Not recieving mail, cannot send mail neither

You can remove 'reject_sender_login_mismatch' in postfix /etc/postfix/main.cf.

or i guess i can set the right email FROM into postfix to avoid this error. (like i found on stackoverflow)

Thanks for your patience and your help ZhangHuangbin