Linux / UNIX Tech Support Forum
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. |
|
|||||||
| Ubuntu / Debian Discussion about Debian or Ubuntu Linux related problems. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello all,
I have setup an email server on my machine which when I try to telnet Code:
telnet localhost 25 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. |
| Sponsored Links | ||
|
|
|
||||
|
You need to adjust firewall rules for both router and Linux system.
__________________
Vivek Gite Linux Evangelist |
|
|||
|
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 Code:
iptables -t filter -A INPUT -p tcp --dport smtp -j ACCEPT -d xxx.xxx.xxx.xxx Please let me know if there is anything that needs to be modified. Thanks |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| 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 |