LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-04-2002, 09:34 PM   #1
rednex269
LQ Newbie
 
Registered: Nov 2002
Location: Texas
Distribution: Redhat Linux 8.0
Posts: 18

Rep: Reputation: 0
SMTp Port Enable


I wanna enable my SMTP Port.. However, it is currently only open to the localhost... I do not have any of the firewall installed..

Suggestions?

JS
 
Old 12-04-2002, 10:14 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
It is either mail isn't listening for connections originated from other than localhost, or believe it or not there is a firewall running.
Here is the rule to open it up
Code:
$IPTABLES -A INPUT -i $EXTIF -m state --state NEW,ESTABLISHED,RELATED -p tcp -s $UNIVERSE -d $EXTIP --dport 25 -j ACCEPT
Where is $IPTABLES=/path/to/iptables, $EXTIF=external interface such as eth0 and $UNIVERSE=0.0.0.0/0, and $EXTIP=your IP
 
Old 12-05-2002, 02:50 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
and if mail is listening for connections originated from none other than localhost check your sendmail.cw for "DAEMON_OPTIONS" directive, it'll prolly read something like:
DAEMON_OPTIONS(`Port=smtp, Addr=127.0.0.1, Name=MTA')
comment the line out pre and postfixing "dnl" (the m4 way for comments) and add another line
dnl DAEMON_OPTIONS(`Port=smtp, Addr=127.0.0.1, Name=MTA')dnl
DAEMON_OPTIONS(`Port=smtp, Addr=<your public IP address>, Name=MTA')
Save a copy of your /etc/sendmail.cf and rebuild your sendmail.cf with "m4 /etc/mail/sendmail.mc > /etc/sendmail.cf" or if you use Linuxconf do "mailconf --generatecf". Then restart sendmail.

Please read your sendmail docs first on how to *not* let your MTA function as relay for spammers. If you're system is connected to any untrusted network then set up a firewall. It isn't hard (we've got lotsa threads about it).

Last edited by unSpawn; 12-05-2002 at 02:52 AM.
 
  


Reply



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
SMTP Port always open AJones Linux - Security 2 08-05-2005 10:34 PM
How to enable a new port hardcorelinux Linux - Security 4 02-03-2005 06:10 AM
smtp port changes Bruce Hill Linux - General 1 10-17-2004 05:37 PM
Anyone know how to enable port 25 nnadeau Linux - Security 8 01-11-2002 02:40 PM
Port 25 not open for SMTP Jim Miller Linux - Networking 6 11-18-2001 12:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:34 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