man aliases


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers man aliases
# 1  
Old 09-15-2007
Question man aliases

Can any one show me how to create an alias account that silently copies local emails to the administrator (root) using a linux cmd line or GUI?

The answer needs to be very simplly explained at this stage, as I am new to the command prompt...expecialy in linux.
thanks heaps guys

PipaSmilie

I have tried to delete this message as I am still researching this...
anyway any help will be appreciated
I tend to get tied in nots as I am more used to the DOS command prompt.

Last edited by Pipa; 09-15-2007 at 03:15 AM..
# 2  
Old 09-19-2007
I understand it's 4 days ago, but still : what is the OS, what is the mail server, where are the messages stored ? What do you mean by "alias account" ?
Example :
Quote:
ls -la /var/spool/mail/
total 24
drwxrwxr-x 2 root mail 4096 Aug 31 17:39 .
drwxr-xr-x 12 root root 4096 Nov 24 2006 ..
-rw-rw---- 1 sysgate mail 0 Sep 4 12:20 sysgate
so now I can "cp /var/spool/mail/sysgate /root" for example.
# 3  
Old 09-19-2007
Quote:
Originally Posted by Pipa
Can any one show me how to create an alias account that silently copies local emails to the administrator (root) using a linux cmd line or GUI?
I've used postfix to do fancy stuff where you can have a script of your own choice invoked when a mail arrives for you.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unsetting aliases

Within a session we have created some aliases. How to unset all the aliases in the session or specific alias? (1 Reply)
Discussion started by: pandeesh
1 Replies

2. Shell Programming and Scripting

Using Aliases in a script

Hi all, I have and alias set in .profile like alias ll='ls -la' I am writing a shell script in which i am using "ll" but it gives command not found . Can anyone please tell me how source aliases in the script we write do i need to define it again in every script i write is there any oher... (1 Reply)
Discussion started by: firestar
1 Replies

3. UNIX for Dummies Questions & Answers

Problem with aliases

I work on a MAC. And i have the need to connect to various servers on a daily basis. So I use aliases in bash shell. The aliases work fine in bash shell. But they dont work with tcsh. Can anybody clarify what might be wrong? (1 Reply)
Discussion started by: newprofile
1 Replies

4. Solaris

Mail Aliases

I'm at a bit of a loss here, any help is appreciated... I have Solaris 10, and in submit.cf, sendmail.cf I have the mail relay setup to our companys relay server which works fine when I type a full email address on the command like (i.e. #echo hello | mail me@work.com). However, I am trying... (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

5. Solaris

man and ldm man

According to Sun documentation (Ldoms 1.1 Administration Guide), To access the ldm(1M) man page, add the directory path /opt/SUNWldm/man to the variable $MANPATH. When I add the lines: MANPATH=$MANPATH:/opt/SUNWldm/man export MANPATH to .profile, exit root and re-login, I would have "man ldm"... (5 Replies)
Discussion started by: StarSol
5 Replies

6. Shell Programming and Scripting

etc aliases

Hello: i have several server with own etc aliases. right now i want to combine it all into a general etc aliases in a new freebsd server. cause it consist hundred thousand of record user inside how to make a shell script to combine it or configure it. all etc aliases record example: ... (0 Replies)
Discussion started by: peterLfs
0 Replies

7. Shell Programming and Scripting

/etc/mail/aliases

HI I have 5000 users on sendmail server, also there entries of these users Mail ID in /etc/mail/aliases as per Diparments. Same Mail ID can occures in Diff Departments as per req. I have to remove 500 users from server also there entry from /etc/mail/aliases file. which occures many times. ... (1 Reply)
Discussion started by: Kumarsharad
1 Replies

8. UNIX for Dummies Questions & Answers

aliases

Is there a way to view what aliases are running on a given session? (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

9. Programming

aliases

Hi. I have a C program that is using the **environ pointer and I am trying to set up aliases for a system("/bin/ksh") call. This works for other environment variables but not for the aliases. Does anyone know if this can be done? Thanks ahead of time. (1 Reply)
Discussion started by: mluey61
1 Replies

10. UNIX for Dummies Questions & Answers

Sendmail / Aliases

I'm trying to make a script that will automatically read incoming mail, parse the recipient, then send a file off to the recipient. (Name of file = mail.pl) #!/usr/bin/perl $mailDir = "/var/spool/mail/" $user = print `cat <STDIN> | grep To: | cut -b5-`; print `elm -s Awaiting Mail $user <... (1 Reply)
Discussion started by: ComTec
1 Replies
Login or Register to Ask a Question