Linux - DistributionsThis forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ.
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 am trying to set up sendmail on a Redhat 9.0 server and am having a problem with smtp connections being refused. In the security window it is set to allow smtp connections. If I type in 'nmap -sT -O localhost' it shows port 25 is being monitored for smtp connections. I have put in the entries I want in the /etc/aliases file and run newaliases. The Netscape mail program on my client PC can through POP3 retrieve messages sent from another account on the server using the mail command. If I type in iptables -L to show how the iptable rules loaded into memory, it shows that it is allowing smtp connections from everywhere. Something is blocking inbound e-mails from the internet and emails from my client PC that is set to use the Server as its smtp server for sending out e-mails. Any ideas?
If you system is running syslogd, (which I almost sure it is - default setting). Your system has been maintaining a log file for mail operations. With RH9, you will find this file as /var/log/mail. You can use a text editor to read this file (Note - Don't modify it. If you do it could cease logging for you). Read the lines for a specific piece of email. The ones that are being rejected should have a statement like (check_rcpt) or (check_mail). If it is check_rcpt (or check_rcpt), then try this -
Backup /etc/mail/sendmail.cf
Open /etc/mail/sendmail.cf with a text editor
Find a line that read something like this -
R$*. . . $#error$@ 5.7.1 $: "550 Relaying Denied"
and place a # in front the line. It should now read -
I took a look at the maillog file. It gets a new entry every time I try retrieving emails from the server. When ever I try sending an e-mail from the client (I have double checked that the SMTP server the client is pointing to is correct) no entries show up in the log. I suspect the setup in my iptables or something else is blocking the inbound smtp transactions.
I tried your suggested change to the sendmail.cf file and did the:
service sendmail restart
It didn't change the results. My client PC still gets the connection refused message.
THanks in advance for any more ides.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.