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.
I believe my server's SMTP server (sendmail) is running, and its
SMTP port is open, also it can send emails to anywhere in the work,
now why I telnet real_ip_address 25, and get connection refused?
One more thing, my sever's real IP address has not binded with my domain
name (now with my web host's), I can send out e-mail from the server, but why
I can send e-mail to my server as root@realip_address?
Originally posted by htm I believe my server's SMTP server (sendmail) is running, and its
SMTP port is open, also it can send emails to anywhere in the work,
now why I telnet real_ip_address 25, and get connection refused?
Seems to me port 25 is blocked from outside access. You have a firewall setup or are you forwarding port 25 requests to your machine if its behind a router, etc?
1. How to make my port 25 open? Currently even telnet at local server with 25 port,
it syas connection refused
2. Once 1 is successful, how to make my telnet 25 port from outside succeed as well?
My server adopts Redhat standard firewall (advacned) with currently on http port opne?
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
If you telnet 127.0.0.1 25 and get connection refused, then most likely you're not running the Sendmail daemon. Your e-mail client or application are most likely invoking sendmail directly and queue the message for delivery, that's not the same as connecting to the daemon.
Obviously you're not going to be able to connect from the outside if you don't have the SMTP port (25/TCP) open through your firewall.
You won't be able to receive mail from that outside for your domain unless you setup an MX record that points to your server. You need an MX record in DNS which points to the A record name of the host that accepts e-mail. That A record name must resolve to the IP that you're using (the Internet IP, not your internal IP).
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
By the way, what are you basing this statement on?
Quote:
I believe my server's SMTP server (sendmail) is running, and its SMTP port is open
???
Did you view netstat output (netstat -nl |grep 25), or what? Unless netstat shows that port 25/TCP is bound to some IP, then it's not running like you think it is.
Looks like I have top change my firewall rules to open SMTP port
(25)
Now do I need to revise sendmail.c
and commenting the follwing line by adding a dnl in the beginning and recompile:
DAEMON_OPTIONS('port=smtp, adr=127.0.0.1, Name=MTA')
One more question, how to setup an MAX record, by me or by my ISP? On my server,
its IP address is a real IP on the Internet
Thx,
HTM
>You won't be able to receive mail from that outside for your domain unless you setup an MX >record that points to your server. You need an MX record in DNS which points to the A >record name of the host that accepts e-mail. That A record name must resolve to the IP that > you're using (the Internet IP, not your internal IP).
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
The MX record (MX, not mAx) has to be changed by whomever is hosting your DNS. If that's your ISP, then your ISP needs to change it (and you need to know what to tell them).
On sending email side, I use my LAN's server instead of my remote
server, both server uses the same doman name, and different IP
addresses, it works well; now when I set up mailman at my LAN's
server, configue everything, and it web front functions properly,
now after I send a test email to my newly created list, I did not
see any pending mail in the admin menu, why?
I suppose it should be
there for me to appove before distributing to all subscribers in the list
edit your iptables, just add 1 line to open the port you waana open (do not
trust what netsat told me, just explicitly open it), and run service restart iptables,
you should be OK
I have a question for you, ever used mailman, why it complains "user unkown" when
I send an testing email to mailing list alias, and I did add mailing alias in the alias file
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
htm,
netstat will show you what ports are bound on what IPs, but it won't show you whether an outside connection will be able to reach it. The reason is that the kernel handles the network stack so kernel filters may block the traffic before it's passed to the socket.
netstat is correct when it says a certain port is bound. You'll need to review your loaded firewall policy to determine if connections are allow to reach the different ports that you have bound.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.