LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Closed Thread
 
Search this Thread
Old 09-24-2002, 08:58 PM   #1
morbo
Member
 
Registered: Dec 2001
Posts: 53

Rep: Reputation: 15
Sendmail not mailing? HUH?


Ok, chalk this one up to being a novice I suppose......

I can e-mail FROM the box fine, sending mail to thers no problem, but when I send mail to say 'root@mydomain.com' I never get the message, and I never get a bounce either. If I send a message to 'root@my.ip.addreess.' I get a bounce- 550 user unkown....

what's the deal?

/etc/hosts has my domain name, and my ip address and my etc/mail/local-host-names has my toplevel domain and the subdomain of this particular box (domain.com AND sub.domain.com) yet I never recieve my mail.....

/var/log/maillog is no help, nothing at all in there

/var/spool/mail no spools, so it's as if the messages lieterally disappeared, or never made it to the box....

And yes, sendmail IS running, accepting connections, and I can telnet into it on port 25, I'm 100% lost, but I'm used to it, so no need to go bonkers I suppose =)

Thanks
 
Old 09-25-2002, 03:15 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
add your domain name to /etc/mail/local-host-names
 
Old 09-25-2002, 12:28 PM   #3
morbo
Member
 
Registered: Dec 2001
Posts: 53

Original Poster
Rep: Reputation: 15
Did that, i added the top level domain (domain.com) and the name of my box (sub.domain.com) still nada
 
Old 09-25-2002, 05:15 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,470
Blog Entries: 54

Rep: Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901
For maillog to work for you you'll prolly have to bump up sendmail's logging in sendmail.cf as "O LogLevel #", default # is 9. Do you have "mydomain.com OK" in /etc/mail/access and rehashed the database? What does "/usr/lib/sendmail -bv root" say? Also enter "/usr/lib/sendmail -bt", then "/map host mydomain.com"? (end with "/quit")
 
Old 09-25-2002, 05:37 PM   #5
morbo
Member
 
Registered: Dec 2001
Posts: 53

Original Poster
Rep: Reputation: 15
/usr/lib/sendmail -bv root
root... deliverable: mailer local, user root

"/usr/lib/sendmail -bt
> /map host sub.domain.com
> /map host domain.com
>

That returned nothing.....

Did a little test and did a telnet my.ip.address. 25 and got the following from dos telnet:

Connecting To my.ip.address....Could not open connection to the host, on port 25.
No connection could be made because the target machine actively refused it.

I've flushed my ipchains and iptables, and a netstat -nl shows port 25 open.....

If i do a telnet my.ip.address 25 from the command line I get a connection refused, if i do localhost 25 it shows the smtp daemon. Ideas????
 
Old 09-26-2002, 12:44 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,470
Blog Entries: 54

Rep: Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901
Uhm. Is it listening on a public interface, not the loopback device?
 
Old 09-26-2002, 12:52 PM   #7
morbo
Member
 
Registered: Dec 2001
Posts: 53

Original Poster
Rep: Reputation: 15
Yeah, for some STUPID reason, I had to add my ip as well to my endmail.cf, when I did that tada, it worked......

That's it for this Redhat box, I am officially done and wish I had never begun =) I'm switching to FreeBSD next time-a move many others have supported me on. Redhat is just too obscure in it's program locations and configuration files, not to mention xinetd is a pain thee ASS.

Thanks for all of the help guys, it's much appreciated!
 
Old 09-26-2002, 10:08 PM   #8
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Sounds like Redhat is adding some security feature like SuSE did. On a SuSE 8.0 system, you have to set SMTPD_LISTEN_REMOTE to yes in /etc/sysconfig/mail. Otherwise sendmail only listens on the loopback.
 
Old 09-27-2002, 03:53 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
Quote:
Originally posted by morbo
Yeah, for some STUPID reason, I had to add my ip as well to my endmail.cf, when I did that tada, it worked......

That's it for this Redhat box, I am officially done and wish I had never begun =) I'm switching to FreeBSD next time-a move many others have supported me on. Redhat is just too obscure in it's program locations and configuration files, not to mention xinetd is a pain thee ASS.

Thanks for all of the help guys, it's much appreciated!
What's so stupid about that? you think that a big thing like an SMTP server should be open to the entire world as soon as you install it? just gagging to get all that lovely spam... not likely really. especially when most people are never even aware that they are using sendmail to send out their own mail from kmail or pine or wherever. makes perfect sense to only listen on loopback. I presume this isn't the only thing you're giving up on redhat for?
 
Old 09-27-2002, 06:59 AM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,470
Blog Entries: 54

Rep: Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901
FWIW

FWIW I read this type of sign-offs as the user not having the stanima for configuring a system properly (like in read what, understand why, try, *then* apply). IMNSHO people in general stoop to blaming the system rather than look at their own lack of knowledge and work on that.
 
Old 09-27-2002, 02:00 PM   #11
morbo
Member
 
Registered: Dec 2001
Posts: 53

Original Poster
Rep: Reputation: 15
Wow, thanks for the flames, I appreciate that.......

Considering I've had nothing but problems with syntax (what's the deal with the rm -rf flag) I'll consider these messages before I post here again.

I've ben working on this box for a few weeks now, and didn't have any problems with anything else except sendmail. I DO consider it stupid because un BsDI that step doesn't need to be taken. You guys sure do know how to belittle someone trying to learn-thanks.
 
Old 09-27-2002, 04:45 PM   #12
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
-rf? what's the deal? well you tell us....

redhat linux is primarily distributed as a desktop distribution, and uses sendmail as an internal delievry service. as it is for a desktop, it is meant to be somewhat newbie friendly. now having an SMTP server open to spam from day one seems kind of daft for the target audience...

and there's certainly been no flames here... and very little belittling... maybe if you take a step back and realise what you've said, i.e. you've given up on an entire distribution because you didn't edit a very well self-documented configuration file... that doesn't really read like someone willing to learn now does it?
 
Old 09-27-2002, 05:00 PM   #13
morbo
Member
 
Registered: Dec 2001
Posts: 53

Original Poster
Rep: Reputation: 15
If I wasn't willing to learn I would have never started this thread.

I have setup Sendmail in the past, as well as apache and bind-but I have never had the frustration I have with this Redhat box. As for the rm -rf Im speaking of the f flag, in most distros it isnt needed.....

I understand Redhat is primarily for workstation use, and that's the main reason I'm switching to FreeBSD, I have more Unix experience than Linux-and I havce never had to make as many STRANGE changes to the configs that I did with redhat. I suppose I worded that post badly, but all I was aying is now that I'm done, I'm going to take what I learned and apply it to my FreeBSD box...

And I DO consider:
IMNSHO people in general stoop to blaming the system rather than look at their own lack of knowledge and work on that.

Belittling. I know I don't know everything but I know enough to get my other daemons working, but like I said I'll consider this thread before I post here again.

// Moderator note. For the first time in aprox 1,5 yrs I am closing a thread in /Networking. The reason is simple, this post has been answered. If I leave it open I *will* add a rebuke that could well cause things to be said unbecoming a moderator here. I hope you will understand.

Cheers, unSpawn

Last edited by unSpawn; 09-27-2002 at 05:39 PM.
 
  


Closed Thread


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
you have mail ??? huh darklandz Linux - Newbie 2 06-04-2005 08:13 PM
Netbios huh? Smokey Slackware 1 09-20-2004 01:44 AM
HuH? Whitehat Programming 0 05-07-2004 01:15 PM
huh huh hey bevis Im guna build a puter! cognosti Linux - Hardware 28 08-12-2003 03:49 PM
drivers? where? what? how? Huh? Wolf Linux - Newbie 1 08-02-2002 05:50 AM


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

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