LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 05-04-2010, 11:12 AM   #1
glt
Member
 
Registered: Aug 2003
Distribution: RedHat
Posts: 39

Rep: Reputation: 15
Simple automatic CC using aliases?


Hi All,

I am trying to do a simple automatic CC from a target
mailbox to another mailbox:

mail to
sales@domain.com
needs to be automatically *copied* to
scott@domain.com

Naively I thought I might be able to do this using aliases:

I created an alias:
scott: sales

...but now mail no longer reaches sales. I guess the alias
hides the sales mailbox.

The only other way I know to do this is using vacation,
but then I have to silence the auto replies somehow.
Is there another simple way to do this?

Cheers,
Geoff

Env:
Redhat Linux Release 9
2.4.20-30.9
Yes. Its way old! Nothing I can do about that.
We are using sendmail as the MTA.
 
Old 05-04-2010, 11:38 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,909

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Hi,

You have to create the aliases like this:
Code:
sales: \sales, scott
Don't forget to run newaliases

Regards
 
Old 05-04-2010, 12:46 PM   #3
glt
Member
 
Registered: Aug 2003
Distribution: RedHat
Posts: 39

Original Poster
Rep: Reputation: 15
Hi bathory,

Perfect! Works like a charm.

Cheers,
Geoff
 
  


Reply

Tags
aliases, sendmail


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
aliases issue using /etc/aliases lensem Linux - Software 3 04-14-2009 12:48 PM
perl: simple one line replacement, simple error message! pwd_pwd_omg_pwd Programming 8 11-19-2008 12:53 PM
wrap lines at 80 for long aliases in .aliases.csh jhwilliams Linux - Software 0 07-26-2007 07:49 AM
sendmail and NIS databases (aliases, mail.aliases) - what kind of databases? cotton213 Linux - Software 0 03-14-2006 05:57 PM
problems creating a simple bootable cd to perform a simple task czarherr Linux - Software 1 11-11-2004 05:22 AM


All times are GMT -5. The time now is 09:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration