LinuxQuestions.org
Help answer threads with 0 replies.
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 05-10-2011, 09:52 AM   #1
Chad McCan
LQ Newbie
 
Registered: May 2011
Posts: 3

Rep: Reputation: 0
Sendmail sending to root


I've searched high and low for an answer. This seems so simple...

Domain = chadmccan.com
Server 1 = admin.mo.chadmccan.com
Server 2 = leroy.mo.chadmccan.com

Email for my domain is handled by Google Apps. MX records point there, I receive a ton of email there.

I have 2 systems. admin.mo.chadmccan.com, which is designed to be the "gateway" for all services, including email.

On the same network, is leroy.mo.chadmccan.com. It's just an application server, for random apps, including a webserver.

I'm using submit.mc (submit.cf) for relaying through admin.

/etc/submit.mc
Code:
FEATURE(`msp', `[admin]')dnl
/etc/aliases
Code:
root:           blahblah@chadmccan.com
Leroy runs logwatch and emails logwatch to "root" every night. The mail is accepted by admin, then a bounce is generated to root@leroy.mo.chadmccan.com. I never receive the email.

I just want all of my systems to email anything that goes to "root" to blahblah@chadmccan.com relaying via admin.mo.chadmccan.com. Is this impossible?
 
Old 05-10-2011, 07:25 PM   #2
amonamarth
Member
 
Registered: Dec 2009
Location: Los Angeles
Distribution: Fedora ,CentOS, RHEL
Posts: 59

Rep: Reputation: 17
Look into smarthost directive for sendmail.mc
 
Old 05-11-2011, 07:46 AM   #3
Chad McCan
LQ Newbie
 
Registered: May 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by amonamarth View Post
Look into smarthost directive for sendmail.mc
That's essentially what the
Code:
FEATURE(`msp', `[admin]')dnl
is doing.

I don't want to run the full sendmail daemon on these systems, since the only thing they need to do, is email me a logwatch file. The problem is they aren't respecting the aliases file.
 
Old 05-11-2011, 07:55 AM   #4
Chad McCan
LQ Newbie
 
Registered: May 2011
Posts: 3

Original Poster
Rep: Reputation: 0
This makes sense. Sounds like I'm running down the wrong path. I wonder if a .forward will work?

http://www.linuxquestions.org/questi...topped-687499/
 
Old 05-18-2011, 07:42 PM   #5
amonamarth
Member
 
Registered: Dec 2009
Location: Los Angeles
Distribution: Fedora ,CentOS, RHEL
Posts: 59

Rep: Reputation: 17
Another thought:

Are you building the aliases database, once you make changes to /etc/aliases?
 
  


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 - not sending mail movitto Linux - Software 9 09-19-2014 03:23 AM
Sendmail not sending the1sephiroth Linux - Server 5 06-24-2008 12:28 PM
Sending mail between local users (other than root) fails using sendmail dbradshaw Linux - Server 3 12-29-2007 12:06 AM
Sendmail not sending mail tarheel92x Linux - Server 8 10-27-2006 04:44 AM
sendmail not sending mail dtra Linux - Software 1 06-09-2005 07:47 PM

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

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