Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
Create an alias.
I have not used red-hat since 1999, so I'll give you the shell version:
Code:
//Log as root, and go to /etc/mail
$root> cd /etc/mail [enter]
//edit the "alias" file
$root> nano alias [enter]
//NOTE TO APPLEBAG: those are the basic aliases on a Gentoo system, they might be different of yours...
# Basic system aliases -- these MUST be present.
MAILER-DAEMON: postmaster
postmaster: root
# General redirections for pseudo accounts.
adm: root
bin: root
daemon: root
exim: root
lp: root
mail: root
named: root
nobody: root
postfix: root
# Well-known aliases -- these should be filled in!
# root:
# operator:
# Standard RFC2142 aliases
abuse: postmaster
ftp: root
hostmaster: root
news: usenet
noc: root
security: root
usenet: root
uucp: root
webmaster: root
www: webmaster
# trap decode to catch security attacks
# decode: /dev/null
//<!!! ADD THE ALIAS HERE !!>
submit: me
//Then exit with save (ctrl+x and answer questions. When it asks for the file name, hit enter)
//Back to the shell, declare the system that the alias list has changed
$root> newaliases [enter]
And this should be enough.
Every mails sent to submit@foobar.org will be stored in the me@foobar.org mailbox
__________________
Only a biker knows why a dog sticks his head out the window.
Last edited by tripy; 04-18-2008 at 02:45 PM..
|