coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Sunday May 27, 2012


 Home
 Search
 Advanced Search
 Category Search
 Affiliates
 Acknowledgements
 Cool Links

Username

Password

Remember me
Forgot your password?
Create an account

Who's Online
We have 22 guests online

Newest Member

beyondimagem

Hit Counter
9133545 Visitors

cool Statistics
coolcommands:1330
Categories:83
Total queries:595500
Members:16437





Category Search coolcommands.com
Select Category:


coolcommand

forwarding mail with .forward and /etc/aliases
Description

If you want to forward the mail of a particular user, create a file named .forward in their home and add all the forwarding addresses seperated by a comma.

# vi .forward

Insert into .forward: email1@domain1.com, email2@domain2.com

If you want to do the forwarding from the aliases file (only root can do this):

# vi /etc/aliases

# Aliases in this file will NOT be expanded in the header from
# Mail, but WILL be visible over networks or from /bin/bellmail.
#
# >>>>>>>>>> The command "sendmail -bi" must be run after
# >> NOTE >> this file is updated for any changes to
# >>>>>>>>>> affect sendmail operation.

# Aliases to handle mail to msgs and news
nobody: /dev/null
root:user1@domain.com

Create new aliases database with the command:

# newaliases
Example

.forward ; /etc/aliases

Return to search results

Random coolcommands

coolcommand: amqsbcg - how to read and output messages on a queue in Websphere MQ
Example: amqsbcg QUEUE_NAME QUEUE_MANAGER
[show me the details]
coolcommand: top - how to display and update information about the top cpu processes
Example: top
[show me the details]
coolcommand: how to mount a filesystem nfs on a remote server in IBM AIX
Example: mount -v'nfs' -n'nfsserver' /remote/dir /local/dir
[show me the details]
coolcommand: runlevel - to find the runlevel in linux
Example: /sbin/runlevel
[show me the details]

coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts



FREE
myPMS

Password
Management
System

by

LVOware.com




Top 5 Submitters

lvo1152
audet37
kah00na32
Mariom24
lebjf00014

Top 5 Searches

Category Solaris49379
Category AIX46267
Category General UNIX43933
solaris22927
aix22116

Terms of Use
Privacy
Contact


 
coolcommands.com © 2012. All Right Reserved.
Programming by PRATTICO Consulting . Hosting by Apricusum