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

Reply
 
Search this Thread
Old 06-17-2003, 09:17 AM   #1
heathpitts
Member
 
Registered: Feb 2003
Location: Florence, AL
Distribution: Debian
Posts: 157

Rep: Reputation: 30
sendmail broke after rh 9 upgrade


I had a perfectly working server using rh7. So seeing as it worked great, I upgraded it to rh9. I got everything working again except sendmail from outside the server.

I use this server for group email and have the users send email to username@mail.workgroup

the email clients check their email fine but when sending, it gives them the error cannot connect to server (this is using outlook express). It seems like relaying is turned off or something.

Can somebod help me configure this so it will send email to the local users on the machine. I do not want it to send anywhere else
 
Old 06-17-2003, 09:44 AM   #2
jvannucci
Member
 
Registered: Jan 2003
Location: Connecticut, US
Distribution: Red Hat 9.0
Posts: 98

Rep: Reputation: 15
Edit /etc/mail/sendmail.mc and comment out the line (add a leading 'dnl'):

dnl # The following causes sendmail to only listen on the IPv4 loopback address
dnl # 127.0.0.1 and not on any other network devices. Remove the loopback
dnl # address restriction to accept email from the internet or intranet.
dnl #
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
d

I seem to recall that this didn't used to be the default, but I'm not sure. That may explain your confusion.

Don't forget to restart sendmail:

# service sendmail restart
 
Old 06-17-2003, 09:50 AM   #3
heathpitts
Member
 
Registered: Feb 2003
Location: Florence, AL
Distribution: Debian
Posts: 157

Original Poster
Rep: Reputation: 30
so the dnl in front of it comments it out? I tried deleting this line but it still doesn't seem to work. Anything else I can try?
 
Old 06-17-2003, 10:08 AM   #4
nuzzy
Member
 
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204

Rep: Reputation: 31
change the line to:


DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl

don't comment it out.
 
Old 06-17-2003, 10:15 AM   #5
heathpitts
Member
 
Registered: Feb 2003
Location: Florence, AL
Distribution: Debian
Posts: 157

Original Poster
Rep: Reputation: 30
with or wothout the dnl in front of it?
 
Old 06-17-2003, 10:18 AM   #6
nuzzy
Member
 
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204

Rep: Reputation: 31
without...
 
Old 06-17-2003, 10:25 AM   #7
jvannucci
Member
 
Registered: Jan 2003
Location: Connecticut, US
Distribution: Red Hat 9.0
Posts: 98

Rep: Reputation: 15
Yes, dnl "comments it out". The real answer is that it tells the macro processor to delete the rest of the line. Same thing to you and me. And the trailing 'd' in my earlier post is just a paste error. Please ignore.

But, as I re-read this I think I've misled you. Later versions of sendmail have changed the layout of some of the config files - check out /etc/mail/access. It looks like relaying IS turned off, except for localhost by default.
 
Old 06-17-2003, 10:33 AM   #8
nuzzy
Member
 
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204

Rep: Reputation: 31
heathpitts...a good GUI for sendmail configuring is a great app called webmin. You can find it at www.webmin.com. It lets you easily add relay hosts, masquerades, aliases, etc...

Of course it's always good to learn by command line as well

Last edited by nuzzy; 06-17-2003 at 10:34 AM.
 
Old 06-17-2003, 11:11 AM   #9
heathpitts
Member
 
Registered: Feb 2003
Location: Florence, AL
Distribution: Debian
Posts: 157

Original Poster
Rep: Reputation: 30
I have tried webmin before and i sort of feel like I am cheating (lol). But when I do pull it up it says sendmail.cf file is in a different location.

In the /etc/mail/access file how would i add the range 192.168.1.1 - 254

just type in 192.168.1.0 RELAY
 
Old 06-17-2003, 11:17 AM   #10
nuzzy
Member
 
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204

Rep: Reputation: 31
yeah, but I hope you're only using 192.168 as an example. Anyone could set that IP up and use you as an open relay. You should use the actual IP range that you are masking.
 
Old 06-17-2003, 11:22 AM   #11
nuzzy
Member
 
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204

Rep: Reputation: 31
did you also do anything to your hosts.allow or hosts.deny files?
 
Old 06-17-2003, 02:03 PM   #12
heathpitts
Member
 
Registered: Feb 2003
Location: Florence, AL
Distribution: Debian
Posts: 157

Original Poster
Rep: Reputation: 30
It still will not work.

Sendmail is running and working. If I telnet to the machine from the command line to 192.168.1.1 port 25 it will not connect if i connect from localhost port 25 it connects just fine
 
Old 06-17-2003, 02:17 PM   #13
nuzzy
Member
 
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204

Rep: Reputation: 31
You're confusing me as you never answered the previous question. Is the 192.168 IP address an example or are you really using it?? If you're really using it, then that's your problem. You need to use the actual IP assigned by the ISP. I'm also assuming you have port 25 open on your firewall?

Last edited by nuzzy; 06-17-2003 at 02:31 PM.
 
Old 06-17-2003, 03:39 PM   #14
heathpitts
Member
 
Registered: Feb 2003
Location: Florence, AL
Distribution: Debian
Posts: 157

Original Poster
Rep: Reputation: 30
ok this is for a workgroup email server it does not send messages to any other servers just to the local machine accounts.
 
Old 06-17-2003, 04:13 PM   #15
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Is there any level of firewall running?

Can you ping the computer?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Upgrade to 2.6.10 broke /dev/cdrom samac Slackware 4 02-17-2005 08:36 AM
apps broke after 2.6.9 upgrade bobbyseatbelt Slackware 2 10-28-2004 03:34 AM
debian unstable upgrade broke mozilla misterflibble Linux - Software 9 03-12-2004 12:15 PM
Upgrade to Mandrake 9.2 completely broke video The MCP Mandriva 0 11-26-2003 07:09 PM
9.0 to 9.1 upgrade broke cups but has easy fix vickp Slackware 0 10-05-2003 05:42 PM


All times are GMT -5. The time now is 05:38 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration