[SOLVED] I can't mail messages locally. Connection is refused
SlackwareThis Forum is for the discussion of Slackware Linux.
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 can't mail messages locally. Connection is refused
Hello:
I'm using Slackware 64 14.2 stable. I'm trying to send messages locally, like:
Code:
$ mail root
$ mail root@localhost
# mail preguntoyo
But messages are never delivered. I've had a look at /var/log/, and files such as: maillog.1, maillog.2, etc are being created. This is today's maillog:
Yes, I've noticed that "Connection refused by...", but this is the first time I'm trying to use the mail command and I'm clueless. Since now I had been using Thunderbird for e-mails. I just wanted smartd to send messages to root about SMART status of my HDs, and then noticed the thing wasn't working.
I have a firewall (iptables) set up and I've changed my localhost name to "deathstar". May it be the firewall?.
I hadn't noticed the /etc/rc.d/rc.sendmail script. It's so easy that it's embarrassing.
And, in case you missed it, the default MTA in the next Slackware stable is Postfix. So, rc.postfix instead. Just in case you run into this problem again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.