Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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 have been following a guide to setup a mail server on CentOS. i have upto until now been able to send a test message and it arrives in the mailbox. However as part of te guide it wants me to go via terminal and type in. Telnet mail smtp.
mail being the host name of my machine but i get an error saying that the connection was refused.
what am i doing wrong or where do i need to look in order to resolve this.
Try using the full name of the machine or its IP number (mail.foo.bar / 10.0.0.10). Also try changing smtp to 25 (portnumber that the service is listening on).
I'm not sure how CentOS sets up a mail server, but normally there should be a mail process listening on port 25. The following command shows if this is so:
netstat -plan | grep ":25"
This should show at least one process, it will also include the ip.
BTW: You mention in post #1 that mail is up and running. Can you send and receive mail?
Another thing that comes to mind: Do you use a firewall? If so, did you open the port?
I assume that 192.168.0.11 is the IP of your mail server and mail.domain.eu is the name of that server. If this is true then edit /etc/hosts and add this line to it (if it already exist then ignore it)
192.168.0.11 mail.domain.eu mail
now issue the command
$telnet mail.domian.eu 25
If still you get the error then check firewall settings like druuna said.
i also added 192.168.0.11 mail.domain.eu mail to my hosts file. The IP is listed is my internal IP that i have assigned my server not my external one by my isp.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.