- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Forwarding Emails from Unix system
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2006 02:03 AM
01-04-2006 02:03 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2006 02:07 AM
01-04-2006 02:07 AM
Re: Forwarding Emails from Unix system
for example in the root home-folder you can add your email-address in the .forward file.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2006 02:15 AM
01-04-2006 02:15 AM
SolutionIn the /etc/mail/aliases file you can have root aliased to 'you@yourdomain.com'
Same for oracvle and so forth.
Do issue the 'newaliases' command or the 'sendmail -bi' command to have the new aliases file read in.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2006 02:15 AM
01-04-2006 02:15 AM
Re: Forwarding Emails from Unix system
please also have a look at the /etc/aliases file, where you can specify where emails for specific events are sent.
After the changes, please run newaliases.
See man aliases for help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2006 02:17 AM
01-04-2006 02:17 AM
Re: Forwarding Emails from Unix system
or where i can find .forward for any other users?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2006 02:22 AM
01-04-2006 02:22 AM
Re: Forwarding Emails from Unix system
Example, in the $HOME for root, do the command
'touch .forward' and then you can vi the file and put the necessary info into the file.
Using the aliases file, you have only 1 file to manage. With the .forward files, you have a .forward file in the $HOME for each user you want to have forwarded mail. You have already listed 3 user accounts so you would have 3 .forward file to manage.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2006 02:26 AM
01-04-2006 02:26 AM
Re: Forwarding Emails from Unix system
for the other users you create a .forward file in each home folder.
#cat .forward
email@bla.blubb
email2@bla.blubb
for more infos check also:
http://www.informatik.uni-frankfurt.de/doc/man/hpux/sendmail.1m.html
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2006 02:34 AM
01-04-2006 02:34 AM
Re: Forwarding Emails from Unix system
As mentioned, creating a '.forward' file in the users $HOME directory (including root's) ia one way of setting up email forwarding.
Make sure, however, to keep the permissions of the '.forward' file writable *only* to its owner. To do otherwise is a security-hole.
If I can write to your '.forward' file then I can insert a script to run for whatever purpose I wish by doing:
| /tmp/mybadthing
The above line in your '.forward' file would cause my '/tmp/mybadthing' to run, which might not be a good thing :-))
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2006 03:37 AM
01-04-2006 03:37 AM
Re: Forwarding Emails from Unix system
I do something like this:
# Local aliases
root : sysadm
sysadm : gwild,user2
gwild : gwild@mydomain.ca
user2 : user2@mydomain.ca
Then just run the command newaliases
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2006 02:11 AM
01-05-2006 02:11 AM
Re: Forwarding Emails from Unix system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2006 04:40 PM
01-05-2006 04:40 PM
Re: Forwarding Emails from Unix system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2006 05:19 PM
01-05-2006 05:19 PM
Re: Forwarding Emails from Unix system
but is't secure ?