LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Debian Mail server wont send or Recieve mail (https://www.linuxquestions.org/questions/linux-software-2/debian-mail-server-wont-send-or-recieve-mail-803538/)

esigande 04-22-2010 10:31 AM

Debian Mail server wont send or Recieve mail
 
Hi,
Iam new to Linux,i basically had this system installed for our mail system.The setup is as follows:
1. Operating system installed is Debian ver. 5.0.3
2. Roundcube is installed as a webmail(if its right for me to say that)
3. The server is hosted right here at our offices
4.The server uses relay system to send mail i.e. relays all our mails to our ISP
That all i can say about the configurations becuase thats as much as i understand it.
The problem now is that we are not able to send or recieve emails from both internal and external.I tried to send mail to a collegue in the office who is on our local LAN,Roundcube says sent successfully but the person does not recieve the mail.i tried to send to my yahoo address but nothing.I dont know where these mails have been trapped.
Can anyone of you gurus help me check this problem out?
Regards,

rweaver 04-22-2010 11:10 AM

What did you install as your mail transport agent and imap agent if anything? Based on your description you don't have a mail transport agent. Roundcube is webmail, a web imap client specifically. In other words its the web version of thunderbird, alone it doesn't know how to do much other than connect to an imap server and correctly display the given messages.

chrism01 04-22-2010 07:46 PM

Try

netstat -tanp|grep 25

as root user. Whatever is listening on port 25 is your MTA aka SMTP server. Post the results.

esigande 04-23-2010 01:15 AM

Quote:

Originally Posted by chrism01 (Post 3944608)
Try

netstat -tanp|grep 25

as root user. Whatever is listening on port 25 is your MTA aka SMTP server. Post the results.

Here are the results as requested:
mail:/home/ntbcadmin# netstat -tanplgrep 25
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

I have just recieved the bouncing mails,see below;
<johnmaambo@yahoo.com>: host 127.0.0.1[127.0.0.1] said: 451-4.5.0 Error in
processing, id=04778-13, 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
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
742 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 98) line 527. (in reply to
end of DATA command)

Reporting-MTA: dns; mail.ntbc.co.zm
X-iRedMail-Queue-ID: 7619B33454B
X-iRedMail-Sender: rfc822; esigande@ntbc.co.zm
Arrival-Date: Thu, 22 Apr 2010 12:45:04 +0200 (CAT)

Final-Recipient: rfc822; johnmaambo@yahoo.com
Original-Recipient: rfc822;johnmaambo@yahoo.com
Action: failed
Status: 4.5.0
Remote-MTA: dns; 127.0.0.1
Diagnostic-Code: smtp; 451-4.5.0 Error in processing, id=04778-13, 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
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
742 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 98) line 527.


0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
mail:/home/ntbcadmin#

I dont understand alot of Linux so some questions will be difficulty for me to answer but i will try as much as i can to supply you with any information i have.Am trying to learn it.

rweaver 04-27-2010 04:08 PM

Let me refer you to a blog article I just wrote on this exact subject actually...

http://blog.pantek.com/opensores/201...on-faults.html

rweaver 04-27-2010 04:09 PM

vi /var/lib/clamav/daily.cld
:527
dd
:wq

will remove the entry for you thats causing the crash, be sure to read the blog post though, that problem WILL reoccur and you DO need to upgrade your AV engine.


All times are GMT -5. The time now is 08:19 PM.