- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how forward user cron failures and other mail...
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
Discussions
Discussions
Forums
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
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
тАО04-01-2009 11:21 AM
тАО04-01-2009 11:21 AM
How can I test it.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2009 11:34 AM
тАО04-01-2009 11:34 AM
Solutioncd /etc/mail
vi userdb
Edit file so it looks like this:
sam1:mailname sam1@abc.com
sam1@abc.com:maildrop sam1
Two lines with two colums in it seperated by tabs
Save the file
Then run:
makemap btree /etc/mail/userdb.db < /etc/mail/userdb
Should now send mail from user login_id sam1 to sam1@abc.com.
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2009 11:34 AM
тАО04-01-2009 11:34 AM
Re: how forward user cron failures and other mail messages to user email acct ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2009 11:50 AM
тАО04-01-2009 11:50 AM
Re: how forward user cron failures and other mail messages to user email acct ?
.forward file could do the trick with the email address in it.
croncommand | mailx -s "jobname-desc" sam1@abc.com
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2009 11:57 AM
тАО04-01-2009 11:57 AM
Re: how forward user cron failures and other mail messages to user email acct ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2009 12:07 PM
тАО04-01-2009 12:07 PM
Re: how forward user cron failures and other mail messages to user email acct ?
In this case the .forward file must exist in the home directory of the user 'sam1'. The .forward file MUST be owned by the user 'sam1'. The file should contain only:
sam1@abc.com
If you were to 'cat .forward' it should look like:
# cat .forward
sam1@abc.com
For more information do:
# man 5 aliases
and look for the section on the .forward file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2009 12:14 PM
тАО04-01-2009 12:14 PM
Re: how forward user cron failures and other mail messages to user email acct ?
Can I do this in userdb file so I get email forwarded from 2 users to same email address.
I get duplicate key message. Is that a warning or error ?
=====userdb================
sam1:mailname sam1@abc.com
sam1@abc.com:maildrop sam1
#
mike1:mailname sam1@abc.com
sam1@abc.com:maildrop mike1
=====userdb================
makemap btree /etc/mail/userdb.db< /etc/mail/userdb
makemap: /etc/mail/userdb.db: line 2: key sam1@abc.com:maildrop: duplicate key
makemap: /etc/mail/userdb.db: line 4: key sam1@abc.com:maildrop: duplicate key
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2009 12:26 PM
тАО04-01-2009 12:26 PM
Re: how forward user cron failures and other mail messages to user email acct ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2009 11:39 AM
тАО04-03-2009 11:39 AM
Re: how forward user cron failures and other mail messages to user email acct ?
Give it try and test it out.
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-03-2009 11:40 AM
тАО04-03-2009 11:40 AM
Re: how forward user cron failures and other mail messages to user email acct ?
/rcw