LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-19-2012, 01:22 PM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Rep: Reputation: 39
e-mail server can send but not receive e-mail


Hello --

I have completed installing the rpm packages of dovecot 1.0.7 and sendmail 8.13.8 onto a CentOS 5.6 64-bit system.

I have confirmed the server can send messages, but it is unable to receive any messages. The maillog file indicates when a message is being sent out from the server, but when a message is being sent to the server, the message does not arrive nor is there any activity listed in the logs.

The system is configured to act as a relay agent to a mail gateway, and the latter's ip address was used in the configuration. I have also confirmed the name of local domains for the server include two of our company's domains in addition to the local and localdomain.com listings.

What other step(s) do I need to take in order to get the server to successfully send and receive e-mails?

Thanks.
 
Old 06-19-2012, 01:25 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Your first troubleshooting step should be to telnet to the server and attempted to send emails via a telnet session to see what response codes you are receiving:

http://www.yuki-onna.co.uk/email/smtp.html
 
Old 06-19-2012, 02:58 PM   #3
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Original Poster
Rep: Reputation: 39
Hello --

That indeed was my first action on the server. My apologies for not mentioning it in my posting. To that end, the command syntax that I used was the following:

Quote:
telnet localhost 25
The output that appeared on-screen was the following:

Quote:
220 <hostname> ESMTP Sendmail 8.13.8/8.13.8; Tue, 19 Jun 2012 15:39:28 -0400
A similar command was run from a Windows workstation, the command being the following:

Quote:
telnet <hostname> 25
and the output was as follows:

Quote:
Could not open connection to the host, on port 25: Connect failed
To verify the ports 25, smtp, and 110, pop were open, I ran the netstat -an command.
An excerpt from the on-screen display is shown below:

Quote:
tcp 0 0 127.0.0.1:2208 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:976 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:2207 0.0.0.0:* LISTEN
tcp 0 0 :::993 :::* LISTEN
tcp 0 0 :::995 :::* LISTEN
tcp 0 0 :::110 :::* LISTEN
tcp 0 0 :::143 :::* LISTEN
tcp 0 0 :::80 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
tcp 0 0 :::443 :::* LISTEN
...
unix 3 [ ] STREAM CONNECTED 693288 /var/run/dovecot/login/default
...
unix 3 [ ] STREAM CONNECTED 691203 /var/run/dovecot/login/default
...
unix 3 [ ] STREAM CONNECTED 680829 /var/run/dovecot/login/default
...
unix 3 [ ] STREAM CONNECTED 676519 /var/run/dovecot/login/default
...
unix 3 [ ] STREAM CONNECTED 674642 /var/run/dovecot/login/default
...
unix 3 [ ] STREAM CONNECTED 674605 /var/run/dovecot/login/default
 
Old 06-19-2012, 03:11 PM   #4
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Your sendmail is only listening on the loopback interface.
 
Old 06-19-2012, 03:14 PM   #5
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Yep. Check out http://www.linuxhomenetworking.com/w..._a_Mail_Server
 
Old 06-19-2012, 03:40 PM   #6
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Original Poster
Rep: Reputation: 39
Hello --

I went through the motions of modifying the sendmail.mc according to the instructions on the linux homeworking website. The netstat -an command has the following listing:

Quote:
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
However, the messages are still not being received, and there is no activity listed in the maillog file. What am I missing here?
 
Old 06-20-2012, 03:54 AM   #7
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Can you now telnet to the server and manually send a message?
If so you need to look at the upstream network config.
 
Old 06-20-2012, 08:29 PM   #8
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Original Poster
Rep: Reputation: 39
I have done some further investigating, and while trying to send a message from the e-mail server via Squirrelmail, the following error appeared on-screen:

Quote:
Email delivery error
Server replied: 67 Can't execute command '/usr/sbin/sendmail -i -t -f
I looked further into this, and the sendmail file at that location is a symbolic link to the /etc/alternative/mta file. The latter file, in turn, points back
to the /usr/sbin/sendmail.sendmail file.

Is that typical, or is something wrong here?
 
Old 06-21-2012, 12:13 PM   #9
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Original Poster
Rep: Reputation: 39
The error message that I referenced in my previous posting,

Quote:
Email delivery error
Server replied: 67 Can't execute command '/usr/sbin/sendmail -i -t -f
apparently occurs when an e-mail is sent to a specific domain. If an e-mail is sent from the server to all but one particular domain, the e-mail is delivered without issue. If an e-mail is sent from all domains to the server, the same holds true.

The question now is: Why is that one domain being problematic?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Server with : Postfix,dovecot. (Can send email, but can't receive email from internet mail) cparapat Linux - Server 1 08-16-2010 12:57 AM
Would like to set up a mail server on Suse sles 11 to send and receive mail tiburondelcaribe Linux - Newbie 2 09-11-2009 11:30 AM
Mail server, can send out, but cant receive christopher_c Linux - Newbie 7 10-04-2007 05:09 PM
with the linux proxi, backend pop3 mail client can not receive mail and send mail rubin823 Linux - Networking 0 12-21-2006 10:06 PM
Server does'nt send mail until shutdown and LAN can't send or receive. Wolfy Linux - Networking 0 08-02-2004 07:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration