nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

SMTP is filtered?

This is a discussion on SMTP is filtered? within the Ubuntu / Debian forums, part of the Linux Distribution category; Hello all, I have setup an email server on my machine which when I try to telnet Code: telnet localhost ...

Register free or login to your existing account and remove all advertisements.


Go Back   nixCraft Linux Forum > Linux Distribution > Ubuntu / Debian

Linux answers from nixCraft.


Ubuntu / Debian Discussion about Debian or Ubuntu Linux related problems.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-29-2008, 03:25 PM
Junior Member
User
 
Join Date: Oct 2008
OS: Ubuntu 8.04
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
h3llh0l3 is on a distinguished road
Default SMTP is filtered?

Hello all,

I have setup an email server on my machine which when I try to telnet

Code:
telnet localhost 25
it works fine.
I have a BCM96338 ADSL Router on which I have created a NAT to allow traffic on port 25 to my machine.
But when I try to telnet on port 25 it tries to connect and then times out.
When did a nmap it showed that the SMTP was filtered.
Any suggestions on how can I enable SMTP on my router?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 10-30-2008, 06:54 PM
Junior Member
User
 
Join Date: Oct 2008
OS: Ubuntu 8.04
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
h3llh0l3 is on a distinguished road
Default

Has any one done this before. Please let me know. Thanks.
Reply With Quote
  #3 (permalink)  
Old 10-31-2008, 12:19 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,671
Thanks: 11
Thanked 240 Times in 180 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

You need to adjust firewall rules for both router and Linux system.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #4 (permalink)  
Old 10-31-2008, 03:13 AM
Junior Member
User
 
Join Date: Oct 2008
OS: Ubuntu 8.04
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
h3llh0l3 is on a distinguished road
Default

I have created iptable rules on the router to accept the traffic on prot 25 and forward it to the linux machine.
There is an iptable rule on the linux machine to accept traffic on port 25.
IPTable Rule on Router:
Code:
iptables -t filter -A FORWARD -p tcp --dport smtp -j ACCEPT -d xxx.xxx.xxx.xxx
iptables -t nat -A PREROUTING -p tcp --dport smtp -j DNAT --to-destination xxx.xxx.xxx.xxx
IPTable Rule on Linux machine:
Code:
iptables -t filter -A INPUT -p tcp --dport smtp -j ACCEPT -d xxx.xxx.xxx.xxx
xxx.xxx.xxx.xxx -> iP Address of my linux machine.

Please let me know if there is anything that needs to be modified.

Thanks
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Searching Tutorial for setup Postfix SMTP-AUTH satimis Mail Servers 1 06-05-2009 07:04 AM
shell scripting with SMTP Tinku Shell scripting 2 10-22-2008 11:42 AM
SMTP to send mails to other host Tinku Mail Servers 0 10-21-2008 03:47 PM
Can lighttpd access log be filtered? petu Web servers 5 10-21-2008 02:10 PM
Shell Script To Send Email via SMTP username and password eawedat Shell scripting 4 05-31-2008 09:11 PM


All times are GMT +5.5. The time now is 05:12 AM.


Powered by vBulletin® Version 3.8.4 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38