- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- how forward user cron failures and other mail mes...
-
-
Categories
- Topics
- Hybrid IT with Cloud
- Mobile & IoT
- IT for Data & Analytics
- Transformation
- Strategy and Technology
- Products
- Cloud
- Integrated Systems
- Networking
- Servers and Operating Systems
- Services
- Storage
- Company
- Events
- Partner Solutions and Certifications
- Welcome
- Welcome
- Announcements
- Tips and Tricks
- Feedback
-
Blogs
- Alliances
- Around the Storage Block
- Behind the scenes @ Labs
- Converged Data Center Infrastructure
- Digital Transformation
- Grounded in the Cloud
- HPE Careers
- HPE Storage Tech Insiders
- Infrastructure Insights
- Inspiring Progress
- Internet of Things (IoT)
- My Learning Certification
- Networking
- OEM Solutions
- Servers: The Right Compute
- Telecom IQ
- Transforming IT
-
Quick Links
- Community
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Contact
- Email us
- Tell us what you think
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Enterprise.nxt
- Marketplace
- Aruba Airheads Community
-
Categories
-
Forums
-
Blogs
-
InformationEnglish
how forward user cron failures and other mail messages to user email acct ?
SOLVED- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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 ?
Re: how forward user cron failures and other mail messages to user email acct ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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 ?
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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 ?
Re: how forward user cron failures and other mail messages to user email acct ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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 ?
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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 ?
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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 ?
Re: how forward user cron failures and other mail messages to user email acct ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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 ?
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
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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 ?
Re: how forward user cron failures and other mail messages to user email acct ?
/rcw
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-12-2009 10:08 AM
05-12-2009 10:08 AM
Re: how forward user cron failures and other mail messages to user email acct ?
Re: how forward user cron failures and other mail messages to user email acct ?
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2018 Hewlett Packard Enterprise Development LP