- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mail redirection
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-01-2006 05:50 PM
08-01-2006 05:50 PM
Mail redirection
OIn my environment i got Microsoft Exchange mail system, is there any way that i can redirect the mail, i mean instead of going to the system root mail files, i want it to go to my exchange mail.
and if it is possible, can i forward only the cron mail to go to my exchange.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2006 06:11 PM
08-01-2006 06:11 PM
Re: Mail redirection
1) Set the exchange server to explicitly accept mail from the host running the cron job. It must permit relay and that should be set by IP address.
2) Modify /etc/mail/sendmail.cf Change DS to
DShostnameofexchangeserver
or
DS
[ip of exchange server]
example
DS
[192.168.0.10]
Where 192.168.0.10 is the IP address of the exchange server.
/sbin/init.d/sendmail stop
/sbin/init.d/sendmail start
Done.
check /var/adm/syslog/mail.log for diagnostics.
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-01-2006 10:50 PM
08-01-2006 10:50 PM
Re: Mail redirection
add your mail server that use to relay,, put in DS line.
ex:
DSsmtprelay.xxx.com
-yut-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2006 12:27 AM
08-02-2006 12:27 AM
Re: Mail redirection
0 2 * * * su - oracle -c "/export/script.sh" 2>&1 | mailx -s "Oracle export results" you@youremail.com > /dev/null 2>&1
And just as a side note, if you wanted to redirect ALL of root's mail you could create a file called .forward in root's home dir, and put the email you'd like to forward everything to in the contents.
# echo you@youremail.com > ~/.forward
# at now
echo "testing email from $(hostname)"
^D
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2006 03:08 AM
08-03-2006 03:08 AM
Re: Mail redirection
Besides the .forward file, you can also use /etc/mail/aliases. You can redirect emails for any of your Unix sign-ons all from this file. For example, if you wish to redirect root's mail, add the line:
root : joeadmin@yourdomain
Save the file, and then run sendmail -bi which will update the alias db.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2007 05:49 PM
02-21-2007 05:49 PM