LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This 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


Reply
  Search this Thread
Old 07-01-2003, 09:48 PM   #1
ehedman
Member
 
Registered: Jan 2003
Location: Wisconsin, USA
Distribution: Rehat 7.3
Posts: 33

Rep: Reputation: 15
sendmail on Redhat 9.0


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?
 
Old 07-02-2003, 03:42 PM   #2
m_cornelsen
LQ Newbie
 
Registered: Nov 2001
Location: Fairview, Oklahoma
Distribution: RH 4.1, SuSE 6, RH 7.2, RH 7.3, RH 8, RH 9, Solaris 8
Posts: 16

Rep: Reputation: 0
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 -

#R$*. . . $#error$@ 5.7.1 $: "550 Relaying Denied"

Save sendmail.cf
Restart sendmail using a terminal console and the command -

service sendmail restart

If it says anything else, reply to this post
 
Old 07-03-2003, 10:00 AM   #3
ehedman
Member
 
Registered: Jan 2003
Location: Wisconsin, USA
Distribution: Rehat 7.3
Posts: 33

Original Poster
Rep: Reputation: 15
Mike:

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.
 
Old 07-03-2003, 10:14 PM   #4
m_cornelsen
LQ Newbie
 
Registered: Nov 2001
Location: Fairview, Oklahoma
Distribution: RH 4.1, SuSE 6, RH 7.2, RH 7.3, RH 8, RH 9, Solaris 8
Posts: 16

Rep: Reputation: 0
To go any futher, reply back with a few lines the mailog. Then we can take it from there.

Another question - Do you have your DNS running on your RH9 machine?
 
Old 07-08-2003, 03:09 PM   #5
ehedman
Member
 
Registered: Jan 2003
Location: Wisconsin, USA
Distribution: Rehat 7.3
Posts: 33

Original Poster
Rep: Reputation: 15
Mike:

the last entries in my maillog file are as follows:

Jul 8 04:08:02 mars sendmail[15182]: h6897pJc015182: to=root, ctladdr=root (0/0), delay=00:00:11, xdelay=00:00:10, mailer=relay, pri=30240, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (h6897qbH015184 Message accepted for delivery)
Jul 8 04:08:02 mars sendmail[15185]: h6897qbH015184: to=<root@mars.ldcglobal.com>, ctladdr=<root@mars.ldcglobal.com> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30896, dsn=2.0.0, stat=Sent
Jul 8 14:39:41 mars ipop3d[17735]: pop3 service init from 192.168.1.4
Jul 8 14:39:55 mars ipop3d[17735]: Auth user=eric host=[192.168.1.4] nmsgs=0/0
Jul 8 14:39:55 mars ipop3d[17735]: Logout user=eric host=[192.168.1.4] nmsgs=0 ndele=0
Jul 8 14:39:58 mars ipop3d[17736]: pop3 service init from 192.168.1.4
Jul 8 14:40:04 mars ipop3d[17736]: Auth user=eric host=[192.168.1.4] nmsgs=0/0
Jul 8 14:40:04 mars ipop3d[17736]: Logout user=eric host=[192.168.1.4] nmsgs=0 ndele=0

I do have named bind for DNS running. Is that what you mean by having DNS running?

Eric
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Redhat 9 and Sendmail ncblues Red Hat 2 02-18-2005 06:40 AM
Redhat 6.2 SendMail rhaley Linux - Software 6 09-29-2004 02:22 PM
sendmail on RedHat 9 sboyce57 Linux - Networking 4 02-26-2004 12:57 PM
RedHat 7.2 and sendmail Jorge_Beteta Linux - Newbie 1 09-22-2003 09:40 PM
Sendmail/RedHat 7.1 Michelle Linux - Newbie 1 11-20-2002 08:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 06:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration