Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-10-2002, 11:52 AM
|
#1
|
LQ Newbie
Registered: Jan 2002
Posts: 11
Rep:
|
Mail server not accpeting connections
I just installed RedHat7.2. The mail server is running. I startx and use netscape messenger to connect to the mail server, which is running on localhost. I edit the preferences and define my mail server as my <IP>:<port>. When I try to connect to the server, I get a services for port 25 disabled for security reasons error. I have modified my ipchains to allow everything. I still get that error. Even when I change my mailserver connection to localhost, I still can't connect.
Please Help
I'm at the end of my rope.
|
|
|
01-10-2002, 10:39 PM
|
#2
|
Member
Registered: Apr 2001
Location: Bombay ( INDIA )
Distribution: RedHat 7.x
Posts: 218
Rep:
|
ur mail server problem .
Hi,
First try running ur sendmail without the firewall ( ipchains ).
Configure ur /etc/sendmail.cf file appropriately. Start sendmail by running the script as follows
/etc/rc.d/init.d sendmail start
if u get a error mesage that means something is wrong ( see log file /var/log/messages ).
start pop3 service from the file /etc/xinetd/pop3 file.
Hope this solves problem.
Regards ,
Xanthium.

|
|
|
01-11-2002, 08:49 AM
|
#3
|
LQ Newbie
Registered: Jan 2002
Posts: 11
Original Poster
Rep:
|
Thanks
|
|
|
01-11-2002, 02:03 PM
|
#4
|
LQ Newbie
Registered: Jan 2002
Posts: 11
Original Poster
Rep:
|
New Problem
The mail server is not accepting connections from outside the network. When I do a netstat -an, I see that the server is only listening to 127.0.0.1 for port 25. The firewall is off. Is there something else I'm missing?
Any suggestions will be greatly appreciated.

|
|
|
01-12-2002, 12:59 AM
|
#5
|
Member
Registered: Jan 2002
Location: Chennai India
Distribution: Red Hat
Posts: 42
Rep:
|
sendmail
hi,
redhat tightened up sendmai starting from 7.1
there's a line in /etc/mail/sendmail.mc
with address and port specification . it's well commented. just put a dnl at the start of that line
and run
m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
then restart sendmail
|
|
|
01-12-2002, 01:45 AM
|
#6
|
Member
Registered: Apr 2001
Location: Bombay ( INDIA )
Distribution: RedHat 7.x
Posts: 218
Rep:
|
listning on localhost
Hi ,
Yeh something is definately wrong !!! so here is the solution .. u need to edit the file /etc/sendmail.cf .
In this file u will find something like ---- >
# SMTP daemon options
O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA
u need to change it to ---- >
O DaemonPortOptions=Port=smtp,Addr=192.168.100.134, Name=MTA
( *** here iam assuming ur linux box ip is 192.168.100.134,
pls substitute it with ur real ip address *** ).
NOTE : Before making any changes its advisable to make a copy of the original configuration file.
Now restart the sendmail daemon with the script :
/etc/rc.d/init.d/sendmail restart
Now ur mail server will be listning on the requested ip .
Hope this solves the problem.
Regards ,
Xanthium.
Last edited by xanthium; 01-12-2002 at 01:51 AM.
|
|
|
01-12-2002, 01:57 AM
|
#7
|
Member
Registered: Oct 2001
Location: China
Distribution: RedHat 7.0
Posts: 43
Rep:
|
Sendmail Security Problem
Dear Friend,
Relaying is by default denied in sendmail from redhat 6.2 and onword you must create a file named "ip_allow" in /etc/mail dir "/etc/mail/ip_allow" file. and past your network ip address here like
192.168.0.1
192.168.0.2
and so on. Then sendmail accept connections from these ip on port 25 and relay their mails
Thanks and Regards,
John Lee
|
|
|
01-12-2002, 02:02 AM
|
#8
|
Member
Registered: Apr 2001
Location: Bombay ( INDIA )
Distribution: RedHat 7.x
Posts: 218
Rep:
|
Relaying ??
Hi Johnlee ,
Yes ur absolutely right about relaying but i guess this is not the real culprit. Sendmail in this case is not listning on the external interface ( instead listning on 127.0.0.1 ie; loop back interface ) ..... the file u mentioned will allow the mentioned ip's to use ur mail server as a RELAY server ( ie; relay mails on their behalf to external world !).
I hope my above mentioned post will help solve the above mentioned problem.
Regards,
Xanthium.
Last edited by xanthium; 01-12-2002 at 02:04 AM.
|
|
|
01-14-2002, 08:46 AM
|
#9
|
Member
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555
Rep:
|
afaik the Addr= option in the cf file can simply be removed, which is what sendmail docs recommend. and also /etc/mail/ip_allow is not a standard file i don't think (wrong???) the normal way is to use /etc/mail/access instead.#, using the access-db feature on sendmail
|
|
|
01-16-2002, 01:00 AM
|
#10
|
Member
Registered: Jan 2002
Location: India
Distribution: CentOS/Mandriva
Posts: 126
Rep:
|
Mail Servre
Just look into yout /etc/mail/local-host-table file that you have entries for your . (localhost+For whatever host you like to receive the mails). .And also make sure that you have proper MX entry for the same hosts in your DNS server 
|
|
|
All times are GMT -5. The time now is 05:21 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|