Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-04-2005, 01:47 PM   #1
Registered: May 2004
Distribution: Fedora Core
Posts: 64

Rep: Reputation: 15
Sendmail and /etc/aliases

I am attempting to send some emails through my ISP (Comcast) via sendmail on my FC3 machine.

I have managed to successfully create a Comcast email address and a corresponding local user name (Example: and a user account called 'admin' on my Linux machine).

Here's my problem:

I can create an alias in the /etc/aliases file that automatically sends local mail to, but since sendmail expands aliases, if the "terminal originator" of the message is, for example 'root,' the mail is undeliverable because there is no Comcast account called ''

So my question is, how can I make it so that any system processes that run as root (and consequently send alert emails as root) will be able to send mail out using that 'admin' account that DOES have a corresponding Comcast email address?

I'm sorry, I know this is very convoluted, if you need clarification, please ask.

Old 03-04-2005, 02:16 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
I think what you want to do is alias the root user to admin - in /etc/aliases add:

Then run newaliases.
Old 03-04-2005, 05:56 PM   #3
Registered: May 2004
Distribution: Fedora Core
Posts: 64

Original Poster
Rep: Reputation: 15
the problem is when I create the alias root:admin, it resolves to when it sends to Comcast's smtp server. Since doesn't exist (at least it's not assigned to me), the message gets returned
Old 03-04-2005, 09:44 PM   #4
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
If I understand your problem correctly, you are wanting to re-write the from address to match that of your comcast account. If thats the case, then take a look at

In particular, the per-user solution.
Old 03-07-2005, 10:47 AM   #5
Registered: May 2004
Distribution: Fedora Core
Posts: 64

Original Poster
Rep: Reputation: 15
I got it to work. The "per-user" method did not work, but the "systemwide" method did.

Thanks a lot!


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
sendmail virtusertable or aliases? HeadNoodle Linux - Newbie 7 02-18-2005 12:38 PM
sendmail - rebuilding aliases dansoend Linux - General 1 11-11-2004 07:27 PM
Sendmail and aliases freelinuxcpp Linux - Networking 2 07-27-2004 06:01 AM
SENDMAIL Aliases Help echid Linux - Software 1 03-11-2004 09:06 PM
sendmail aliases sultan Linux - Networking 2 05-02-2002 04:28 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:47 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration