LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-27-2009, 10:39 AM   #1
mr.me
LQ Newbie
 
Registered: Aug 2009
Posts: 15

Rep: Reputation: 0
I think i broke sendmail


OK, first off, hello everybody!!!

I am not a newbie, but not a guru by any means. I am working on migrating email from one box to another. (RHE{lewispestcontrol box}>CentOS 5 {circleofbrains box}).

Now, i have seen it done. I have done it with help right over my shoulder, but this time i figured i could do it.

I think i broke roots email.

from the lewispestcontrol box I tared up:
/var/spool/mail
/home
/etc/passwd
/etc/group

then i scped them to the circleofbrains box and exploded them there.

now root is not getting email (logwatch, crons). I checked and all the crons are running. If i send an email to root@circleofbrains.com it goes like this,

tail of /var/log/maillog of the email coming thru

circleofbrains box getting email from lewispestcontrol box (lkress@lewispestcontrol.net)...
Code:
Aug 27 10:18:12 circleofbrains sendmail[23068]: n7RFIBtd023068: from=<lkress@lewispestcontrol.net>, size=593, class=0, nrcpts=1, msgid=<4A96A3AC.9030401@lewispestcontrol.net>, proto=ESMTP, daemon=MTA, relay=fmailhost01.isp.att.net [204.127.217.101]
circleofbrains box forwarding roots email to lkress@lewispestcontrol.net as in aliases file
Code:
Aug 27 10:18:12 circleofbrains sendmail[23069]: n7RFIBtd023068: to=lkress@lewispestcontrol.net, ctladdr=<lkress@lewispestcontrol.net> (504/501), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30813, dsn=2.0.0, stat=Sent
So this email should still be in /var/spool/mail/root correct?

When i tail it, its not there, lkress@lewispestcontrol.net never got, nor is getting roots email anymore. And when i tail the /var/spool/mail/lkress on the lewispestcontrol box, its not there either.

I think i broke it good this time.
 
Old 08-27-2009, 10:53 AM   #2
mr.me
LQ Newbie
 
Registered: Aug 2009
Posts: 15

Original Poster
Rep: Reputation: 0
more info

I took out lkress@lewispestcontrol.net in the etc/mail/aliases and put root in there. Did a newaliases. Then sent an email to root@circleofbrains.com and it showed up in /var/spool/mail/root

It will not forward if i change the aliases nor was any cron or logwatch emails in there.

I am gonna go kick of the logwatch cron and see if it generates an email.

btw, extreme sendmail newbie...but trying to learn
 
Old 08-27-2009, 11:10 AM   #3
mr.me
LQ Newbie
 
Registered: Aug 2009
Posts: 15

Original Poster
Rep: Reputation: 0
OK, so if i have roots mail sent to someplace else, then it will by pass the /var/spool/mail/root file?

I know it seems like i am talking to myself, but just tring to get the info out.

Sendmail is sending the emails for root, but lkress@lewispestcontrol.net is not getting them.
 
Old 08-27-2009, 11:31 AM   #4
mr.me
LQ Newbie
 
Registered: Aug 2009
Posts: 15

Original Poster
Rep: Reputation: 0
OK, who wants to know how big of an idiot i am??

I put lewispestcontrol.net in the local-domain-names of the new box, but have not moved the domain yet. Took it out, restarted sendmail, and boom, it works.

I am such a dork.

So, i got if fixed. Thanks anyway. I am sure there will be other ways in the future that i will need yall to help me.
 
  


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
sendmail just broke HELP!! patrickg28 Linux - Software 9 07-10-2009 12:57 AM
Sendmail update broke outgoing mail authentication Regneva Linux - Software 1 04-20-2006 02:34 PM
sendmail is not working & on $prompt the cmd sendmail hangs Pavan mahoorker Linux - Software 1 04-04-2006 03:57 PM
broke X and ls soylentgreen Slackware 18 02-15-2005 11:49 PM
sendmail broke after rh 9 upgrade heathpitts Linux - Newbie 16 06-18-2003 08:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:45 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