- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How can I forward all local 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
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
08-19-2004 01:20 AM
08-19-2004 01:20 AM
How can I forward all local mail?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2004 01:36 AM
08-19-2004 01:36 AM
Re: How can I forward all local mail?
You could handle it with entries for each user in /etc/mail/aliases
username target@mail.net
For the second suggestion you might want to use a mail macro script: http://www.hpux.ws/buildmail.hpux.text
It will build you a new sendmail.cf file.
After suggestion 2:
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
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
08-19-2004 01:37 AM
08-19-2004 01:37 AM
Re: How can I forward all local mail?
Set the variable DH to be the server you want to handle local mail.
DHyour_mail_server.domain.com
Certain users can be excluded by modifying CL.
To foward all local mail to a single e-mail address, I think you will need to setup your alias file to point all accounts to a single alias.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2004 02:23 AM
08-19-2004 02:23 AM
Re: How can I forward all local mail?
All local mail will be directed to the specified value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2004 02:27 AM
08-19-2004 02:27 AM
Re: How can I forward all local mail?
Thks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2004 02:58 AM
08-19-2004 02:58 AM
Re: How can I forward all local mail?
user1 : user@email-server.domain.com
user2 : user@email-server.domain.com
.
.
.
etc....
Then you'll need to rebuild the alias db by running: /usr/sbin/newaliases
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2004 02:59 AM
08-19-2004 02:59 AM
Re: How can I forward all local mail?
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2004 03:02 AM
08-19-2004 03:02 AM
Re: How can I forward all local mail?
Create individual alias line items in the alias file that tells mail where to send.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2004 03:28 AM
08-19-2004 03:28 AM
Re: How can I forward all local mail?
awk -F: '{if ($3 > 99) print $1" : remoteuser@mail.server"} /etc/passwd >> /etc/mail/aliases
Then run the newaliases command to get then in the database for sendmail to process.
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2004 03:28 AM
08-19-2004 03:28 AM
Re: How can I forward all local mail?
awk -F: '{if ($3 > 99) print $1" : remoteuser@mail.server"} /etc/passwd >> /etc/mail/aliases
Then run the newaliases command to get them in the database for sendmail to process.
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2005 03:02 AM
08-25-2005 03:02 AM
Re: How can I forward all local mail?
Thank you all!
Enjoy :)
Pedro