Solved

Sendmail in RH9

Posted on 2003-10-29
5
370 Views
Last Modified: 2013-12-15
Hi there experts!

I have this problem. I have installed a new PC with RH9. Installation went thru well with no problems at all.  After the installation, I checked that the following services and running( HTTP/FTP/EMAIL(SMTP & POP3).

Now here is the problem..

I can check email from my network and outside (POP3 is working) but I can't send mail (SMTP).  When I go the the RH9 pc and telnet localhost 25. it is working. But when I telnet 192.168.x.x 25 this gives me no response.

I have turned of ipchains & iptables cause i suspect that this is a firewall issue but still I can't access the SMTP.

Finally, I checked the /var/log/maillog and it seems that only the POP3s are logged.

 In my last distributions, sendmail is working out from the box. Is there something I missed?
0
Comment
Question by:Sandy Kalugdan
5 Comments
 
LVL 12

Expert Comment

by:paullamhkg
ID: 9648005
Try in the /etc/hosts.allow add 'sendmail:ALL', save it than restart the xinetd and sendmail service or even restart your server.

Hope this can help.
0
 
LVL 4

Accepted Solution

by:
victorbx earned 100 total points
ID: 9651176
you need to edit the file /etc/mail/sendmail.cf

there you need to search the line :
O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA

you need to replace 127.0.0.1 to 0.0.0.0

and if this is not working ( rare )

you need to change the line to be like this
O DaemonPortOptions=Port=smtp, Name=MTA

(remove "Addr=127.0.0.1,")

victor
0
 
LVL 40

Expert Comment

by:jlevie
ID: 9654206
Close... This is covered in the Release notes for RedHat (on CD #1). The correct procedure for enabling Sendmail to accept external connections is to comment out the line in /etc/mail/sendmail.mc that begins with O DaemonPortOptions=Port=smtp, build a new sendmail.cf, and restart sendmail.
0
 
LVL 3

Author Comment

by:Sandy Kalugdan
ID: 9654867
@victor,

after several research, i have been able to finally get my server to accept users outside the 127.0.0.1.  I'm surprised that your comment is exactly how I did it.

Nevertheless, you deserve to win the points for your efforts.
0
 
LVL 4

Expert Comment

by:victorbx
ID: 9655147
thank you SandyKalugdan

but why C grade if the answer was exactly the correct answer ?


:-)

victor
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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
wifi not working on Raspberry Pi 3? 2 76
Linux script delete files 3 47
How to mount nfs share on this CentOS server? 6 42
LINUX Field Separators 7 31
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

766 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