Linux - NetworkingThis 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.
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.
amitsharma_26 assumes that you are using a Linux box that connects to your DSL modem and is acting as a router/Nat device, is this the case? if not, what kind of box do you have connected to your dsl modem, is it a netgear,lynksys or something like that?
No. My server is directly connected to the ADSL modem with a CAT5 cable. The modem was supplied by ISP. I suppose the device is soley an ADSL modem without any setup. The other end of the modem is connected to a telephone wall socket with a telephone line.
I think the most important thing is to find out whether the problem on sending mails coming from the firewall or from port 25 blocked by ISP and then to fix the cause found.
Scanning found port 25 not blocked by ISP. Neither it is stealth.
However on making further test the result was on the contrary.
Further test:- (iptables stopped)
$ sudo telnet mail.netvigator.com 25
Code:
Trying 218.102.23.141...
Connected to mail.netvigator.com.
Escape character is '^]'.
220 ymail02dat.netvigator.com ESMTP server (InterMail vM.6.01.03.02 201-2131-111-104-20040324) ready Tue, 28 Nov 2006 08:00:40 +0800
421 ymail02dat.netvigator.com Lost connection to [219.79.145.108]
Connection closed by foreign host.
$ sudo telnet mail.netvigator.com 26
Code:
Trying 218.102.48.214...
(only hanging here)
$ cat /var/log/mail.info
Code:
....
Nov 28 07:30:10 ubuntu postfix/qmgr[5541]: 3D985754040: from=<root@server1.example.com>, size=559, nrcpt=1 (queue active)
Nov 28 07:30:40 ubuntu postfix/smtp[5954]: connect to server1.example.com[208.67.219.40]: Connection timed out (port 25)
Nov 28 07:30:40 ubuntu postfix/smtp[5954]: 3D985754040: to=<root@server1.example.com>, orig_to=<root>, relay=none, delay=30, status=deferred (connect to server1.example.com[208.67.219.40]: Connection timed out)
Nov 28 07:35:25 ubuntu postfix/qmgr[5541]: D50EC754060: to=<satimis@yahoo.com>, relay=none, delay=128321, status=deferred (delivery temporarily suspended: connect to h.mx.mail.yahoo.com[66.196.97.250]: Connection timed out)
$ cat /var/log/mail.log
Code:
....
Nov 28 07:30:10 ubuntu postfix/cleanup[5953]: 3D985754040: message-id=<20061127233010.3D985754040@server1.example.com>
Nov 28 07:30:10 ubuntu postfix/qmgr[5541]: 3D985754040: from=<root@server1.example.com>, size=559, nrcpt=1 (queue active)
Nov 28 07:30:40 ubuntu postfix/smtp[5954]: connect to server1.example.com[208.67.219.40]: Connection timed out (port 25)
Nov 28 07:30:40 ubuntu postfix/smtp[5954]: 3D985754040: to=<root@server1.example.com>, orig_to=<root>, relay=none, delay=30, status=deferred (connect to server1.example.com[208.67.219.40]: Connection timed out)
Nov 28 07:35:25 ubuntu postfix/qmgr[5541]: D50EC754060: to=<satimis@yahoo.com>, relay=none, delay=128321, status=deferred (delivery temporarily suspended: connect to h.mx.mail.yahoo.com[66.196.97.250]: Connection timed out)
Nov 28 07:58:12 ubuntu postfix/qmgr[5541]: 3D985754040: from=<root@server1.example.com>, size=559, nrcpt=1 (queue active)
Nov 28 07:58:43 ubuntu postfix/smtp[6052]: connect to server1.example.com[208.67.219.40]: Connection timed out (port 25)
Nov 28 07:58:43 ubuntu postfix/smtp[6052]: 3D985754040: to=<root@server1.example.com>, orig_to=<root>, relay=none, delay=1713, status=deferred (connect to server1.example.com[208.67.219.40]: Connection timed out)
mail.err and mail.warn are empty files. netvigator.com is ISP
Also set your server(to whom which are forwarding our port 25) to have gateway as firewall box.[/CODE]
I'm suspecting my ISP blocking port 25. Because I sent email from it via ISP broadband to its final destination, webmail box on Yahoo.
Shall I replace;
<eth-wan-interface>
<serverip--to-forward>
with something? Or just run the command line exactly written by you on above. Tks.
B.R.
satimis
Yea you got to replace <eth-wan-interface> with eth0 or eth1 (whosoever is connected to wan link) & <serverip-to-forward> with the LAN ip of your server (to whom we are forwarding port 25 packets).
After doing the needfull subsitutions you got run that script(iptables command) & then check.
doesn't mean anything. Of course your ISP won't block port 25 on their own domain. Otherwise, how could they provide email service for their subscribers?
Here's how your mail server works in this case.
1. you subscribe to your ISP and lease an IP (let's say it's ip1)
2. you register your own domain or map your IP to a dynamic domain, let's say it's example.com
3. your smtp server listens on ip1, port 25
4. somebody wants to send an email to you, let's say you have satimis@example.com as your email address
5. his mail client resolves dns name example.com is mapped to ip1, then, connection to ip1, port 25 is attempted.
6. if your ISP dones't block incoming traffic on port 25, ip1, he reaches your smtp server and everything is OK. Otherwise, the connection attempt will be timed out eventually.
I think the major problem coming from BIND and DNS files not properly configured. Postfix can't send email because BIND can't resolve the IP address. Default page of Apache2 and Webmin failed to start on browser. Previously they can. I'm now searching documents on the overall configuration of BIND and DNS.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.