Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
RH8.0 - when I try to send out an email I get 'Connection refused by <name of my RH server I am sending from>'. Can this be a firewall issue. I'm thinking I had this problem some time ago but cannot find my notes as to how it was resolved. Any ideas?
Assuming you have internet access and are able to browse the web, yes this could be a firewall problem. Check the OUTPUT chain of your filter table with 'iptables -t filter -L OUTPUT' and ensure that you either aren't restricting outbound connections, or that SMTP is allowed out from your machine.
I suspect it has got nothing to do with your firewall, since your mail server is running on the same host as that from whihc you are sending the mail, correct?
If you are using sendmail, you probably have forgotten to configure the file --
#*****************************************************************************#
#
# file : /etc/mail/local-host-names
#
#*---------------------------------------------------------------------------*#
#
# All alias names (CNAME and MX records) for the localhost must be included.
#
#.............................................................................#
#
I am sending outside the firewall to a third party exchange server.
I ran the netstat and got:
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 649/sendmail: accep
I tried telnet smptemail 25 and was able to send email fine. sendmail seems to not be configured properly. I have done nothing with it since I installed so any ideas?
The fact that it is only listing 127.0.0.1:25 means that it is only going to connect if you 'telnet 127.0.0.1 25'. But, if you try to connect using 'telnet 1.2.3.4 25' it will timeout because sendmail isn't working on this 'interface'. You need to edit your /etc/sendmail.mc (or similar, I can't be certain where your origonal .mc file is) and change
I found the reason why I could not get m4 to run. should read a little more. now that I've fixed that, ran m4 and restarted sendmail. Still no email sent. On a whim I installed RH7.3 on a laptop and, without any configuration of sendmail, I tested this same issue. It worked! AUGH! The issue is with 8.0 but how do I work around it? Download the latest 8.12.9 and discard RH8.0 sendmail distro. I think I'm gong to give that a try.
I did edit submit.mc:
FEATURE(`msp', `[your_host.your_domain.COM]')dnl
I understand it to be
FEATURE(`msp', `myhost.mydomain.COM')dnl
Is this correct?
In /etc/mail I did a
# make clean
# make
# lsl (verified date/time stamp changed for submit.cf)
# /etc/rc.d/init.d/sendmail restart
tried to resend mail
# mail -s test2 <address>
I check /var/log and now I get no attempt to send mail.
I even tried lower-case .com. same result.
One thing I noticed in previous attempts compared to those server that work using 7.3, the maillog relay=outlook.kfbs.com.
On 8.0 maillog, the relay is my server I am trying to send from.
(relay=3wtlap.kfbs.com) Just a difference that may be worth noting.
Am I just doing something wrong?
Thanks for your patience and help. j-me
okay, found out what was wrong. It IS working!!! 8)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.