Solved

sendmail cannot receive emails

Posted on 2002-06-28
4
195 Views
Last Modified: 2013-12-15
Hi, I am running RedHat Linux 7.1 (all patches applied), and I can only send out emails, but cannot receive emails.

ps x tells me that sendmail (is) accepting connection.
I tried to restart several times, but no fix.  (I am a newbie in Linux).

My connection to the Internet is T1, and my httpd and sshd and others are working just fine.  If anyone could help me on this, I would be grateful!

golgo
0
Comment
Question by:golgo
  • 2
4 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 50 total points
ID: 7120067
There are two obvious possibilities. One is that you are running a local firewall which prevents inbound SMTP conections. The other is that you haven't adjusted the sendmail configuration (per the Release Notes) to listen on other than the localhost IP.

By default sendmail on RH 7.1 and later is configured to only listen in the localhost IP. This is easily changed by edition /etc/mail/sendmail.mc and commenting out the line that reads:

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')

by inserting 'dnl ' at the beginning of the line. Then build a new sendmail.cf with:

 m4 /etc/mail/sendmail.mc > /etc/sendmail.cf

and restart sendmail (/etc/init.d/sendmail restart). You should then be able to verify that sendmail is listening for connections by opening a telnet session to the system's IP on port 25 (e.g., telnet 1.2.3.4 25). It doesn't matter whether this is done on the local machin or from some other host. If the sendmail config has been correctly changed you'll get the Sendmail greeting.

If there's a local firewall in the way you can temporarily disable it by doing '/etc/init.d/ipchains stop'. If that solves the problem you'll know that you need to add a rule permitting inbound SMTP connections.
0
 
LVL 1

Expert Comment

by:petereilering
ID: 7127023
Can you give an example of how you send mail?
If somebody from the outside world is mailing you
Then you have to need some MX record in a DNS server who points to your physical IP address
0
 
LVL 1

Expert Comment

by:petereilering
ID: 7127030
Simple way of testing it is by connecting local on smtp port
25

>telnet loaclhost 25
This will connect on TCP port 25 (smtp)
You should get a welcome smtp message.

if this works then you know that the local config is working fine.

waiting until you tried
0
 

Author Comment

by:golgo
ID: 7128260
Thank you, everyone, for your help!

And, jlevie, thank you very much for your solution!
It worked!  However, I've got another problem.  I will post it in one of these days.  Thanks again!!

golgo
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Centos 7 User to Start Apache, MariaDB, LDAP 5 48
AWS EC2 HTTP & HTTPS 2 46
HOw To Install Docker on VMware Workstation 19 186
Post Clonezilla image restore issue 6 39
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question