LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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


Reply
  Search this Thread
Old 03-04-2005, 12:47 PM   #1
soren625
Member
 
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: admin@comcast.net 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 admin@comcast.net, 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 'root@comcast.net.'

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.

Thanks.
 
Old 03-04-2005, 01:16 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

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

Then run newaliases.
 
Old 03-04-2005, 04:56 PM   #3
soren625
Member
 
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 root@comcast.net when it sends to Comcast's smtp server. Since root@comcast.net doesn't exist (at least it's not assigned to me), the message gets returned
 
Old 03-04-2005, 08:44 PM   #4
scowles
Member
 
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 http://www.infohiiway.com/sendmail/#two

In particular, the per-user solution.
 
Old 03-07-2005, 09:47 AM   #5
soren625
Member
 
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!
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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