LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-06-2004, 11:52 PM   #1
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
sendmail trouble


Ok I'll start off by saying that im a linux noob so try not to be tooooo technical if you decide to respond.

I installed redhat 9, setup apache, and then started setting up sendmail. I ran the M4 sendmail.mc sendmail.cf thing and I left all the default values. I edited the "local-host-names" file to include mail.mydomain.com, mydomain.com, and www.mydomain.com. I have all the port forwarding setup on my router (standard 4 port linksys), and i can see the mail files in /var/spool/mail.

Right now I can log into my mailbox through mozilla and using thinmailer. When I send an email to my new server I dont get a bounce back and I can see it logged in my routers incoming log files. When I log in to my email it gets logged in the /var/maillog file.

Now the bad news, None of the messages are hitting my mailbox. Whenever I log in it says I have no messages. I also can't send messages. The send errors dont show up in the maillog file so i really dont know whats going on. Are there any last steps i need to do so messages actually hit my mailbox and so I can start sending messages out. Any help would be much appreciated.
 
Old 04-07-2004, 06:57 AM   #2
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Original Poster
Rep: Reputation: 30
does anyone have any ideas that might help?
 
Old 04-07-2004, 07:41 AM   #3
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
Are you trying to access your mail from the local server or from a remote client such as Outlook?
 
Old 04-07-2004, 07:47 AM   #4
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Original Poster
Rep: Reputation: 30
ive tried through a remote computer using outlook express, netscape, mozilla, and a webmailer. They all let me in but my mailbox is empty. For some reason messages that get sent to the machine never make it to my mailbox. I also cant send any messages.

Im using the defualt sendmail config if that helps.
 
Old 04-07-2004, 08:22 AM   #5
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
As far as I can remember the only things you need to change in the default sendmail.mc file are Local_Domain_('your.domain.name')dnl and make sure that you have at least these two MAILERS: SMTP & procmail. They will be located at the bottom of the file. If you have to make any changes, m4 and then restart sendmail. Those are the only two things that I have changed from the default and I have two servers up and running. If you already have those things done I would start up Evolution at the local box and configure that to retrieve email. If it gets it, then it is simply a configuration problem with your remote application. Look at these things and repost.
 
Old 04-07-2004, 09:06 AM   #6
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Original Poster
Rep: Reputation: 30
Im at work now so I wont be able to test it until I get home this evening. But since I dont think I changed ANYTHING in the sendmail.mc file, i have a feeling changing those things you suggested will help a lot. Thanks for the input, I'll post the results later this evening.
 
Old 04-07-2004, 09:18 AM   #7
MrSmee
Member
 
Registered: Sep 2003
Location: Plano, TX
Distribution: Slack
Posts: 84

Rep: Reputation: 15
Just as a side note/comment, I experienced MANY problems with sendmail and it's cryptic configuration.... then I started using postfix, and life is better for it
http://www.postfix.org
 
Old 04-07-2004, 09:31 AM   #8
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Original Poster
Rep: Reputation: 30
ok i ssh'd into my box and still no luck. I cant send any mail, and when I send a message to my mailbox I don't get a bounce back, the router logs detects the incoming message on port 110, but the message never hits my mailbox. AAARRRGGGHHH!

How long would it take to configure postfix if I decide to take that route?

edit: im downloading the postfix-1.1.11-11.i386.rpm file now.

Last edited by msound; 04-07-2004 at 09:34 AM.
 
Old 04-07-2004, 10:08 AM   #9
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
One more thing, have you got all the MX records pointing to the correct location? Check to make sure.
 
Old 04-07-2004, 10:38 AM   #10
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Original Poster
Rep: Reputation: 30
is that something I do locally or something I do through the company that registered my domain?

I have it setup through the company I registered so that mail.mydomain.com goes to my servers ip. Also like I said if I use NSLOOKUP tool in the command like and I set the query to mx, when i query mydomain.com it lists all of the naimserver settings with the correct IPs.

I have a feeling it might be an mx problem though becuase I setup postfix and its doing the same thing as sendmail

edit: One good note is that I can still log on through my Netscape mail client, I dont get any error saying that the pop server cannot be found or anything like that.

edit2: Im a retard (no offense to retarded people), but I didnt specify an mx server ::tries to bite his own left ear::

Last edited by msound; 04-07-2004 at 10:45 AM.
 
Old 04-07-2004, 11:30 AM   #11
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Original Poster
Rep: Reputation: 30
ok i just spoke with a tech support guy from the company that is hosting my dns and he said that i have it configured right but my server is refusting connections. Im almost positive that I have all of the ports setup for forwarding to my server. And I made sure to turn off iptables and ipchains to test everything. This is frustrating.
 
Old 04-07-2004, 12:16 PM   #12
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
I recently had a problem like that with my isp. They lost their dns servers so none of the email could get through. My email server is pointed at their dns servers and it couldn't resolve any of the domains. Once they got their dns servers back up it worked ok. My gut feeling is that it is not sendmail since you said postfix is reacting the same way. Unless it is something that is common to both. Have you messed with any of the hosts.allow or hosts.deny files? I believe that could keep you out. You didn't say if you had yet or not but can you retrieve mail locally via Evolution?
 
Old 04-07-2004, 12:20 PM   #13
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Original Poster
Rep: Reputation: 30
i havent messed with the hosts.allow and hosts.deny files yet. I also havent had a chance to mess with Evolution. Im stuck at work for about 4 more hours. But that will be the first thing I do when i get home.

Is there anything specific I need to do with the hosts files?

edit: And just so ya know im want to try to work out the sendmail issues instead of moving to postfix. I think ill try posting on some sendmail forums.

Last edited by msound; 04-07-2004 at 12:43 PM.
 
Old 04-07-2004, 12:56 PM   #14
ScooterB
Member
 
Registered: Sep 2003
Location: NW Arkansas
Distribution: Linux Redhat 9.0, Fedora Core 2,Debian 3.0, Win 2K, Win95, Win98, WinXp Pro
Posts: 344

Rep: Reputation: 31
No, I found that unless someone is spamming or dropping viruses on you, to leave them alone. I'm just a small time guy though. I'm sure the big guys have to use them. As far as what I would do is this:

1) Configure Evolution on your server. Check your email at the local terminal via evolution. If everything works then it is outside of sendmail(my best guess anyway).

2) If it doesn't retrieve any mail, go back to the basics and check all of your basic settings and configuration(i.e., user is authorized user on linux machine, password works, I can ping other networks and machines, etc...)

3) Take a look in the sendmail.cf file for any errors. This is a daunting file with about 1700 lines of code so it can be overwhelming at first. Most of the stuff you would want to mess with is up at the front anyway. Just take a look at it to make sure that the variables you entered in the sendmail.mc file actually made it to the sendmail.cf file. Take a few minutes to browse through it and see whats there. There is quit a bit of documentation.

4) I might recommend taking out the router and plugging directly to the world. This would rule out any flakiness going on with the router. At least this would rule it out and it would become one less connection to mess with.

5) Check to make sure that your firewall isn't blocking anything.

Take a look at these things and repost. You can also go to www.sendmail.org for any documentation you might need. I have servers to maintain so I went and got the O'Reilly book "Sendmail". Totally awesome and allot of good info.
 
Old 04-07-2004, 01:00 PM   #15
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Original Poster
Rep: Reputation: 30
thanks a lot for your post, I have definately started to consider the direct internet connection. Like you said, this would rule out the possibility of a router issue. I guess I'll just have to keep my fingers crossed that evolution will work when i get home, becuase at least thats a starting point. I'll keep ya posted.
 
  


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
Trouble with Sendmail DNice Linux - Distributions 1 11-05-2004 10:47 AM
sendmail trouble FirstTimeUser Linux - Newbie 1 07-13-2003 12:22 AM
trouble ahead, trouble behind....trouble with mplayer Goonie Linux - Software 3 07-02-2003 02:29 AM
Sendmail - RunAsUser=sendmail:mail/What files to i have to change ForumKid Linux - Security 45 01-18-2002 11:47 AM
sendmail (dont just ignore it 'cause its got sendmail in the subject :P) GnomeKing Linux - Networking 1 11-12-2001 09:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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