- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sending mail to my exchange server
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
тАО07-05-2000 11:54 AM
тАО07-05-2000 11:54 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2000 12:08 PM
тАО07-05-2000 12:08 PM
Re: sending mail to my exchange server
Tommy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2000 12:16 PM
тАО07-05-2000 12:16 PM
Re: sending mail to my exchange server
You may also want to look at the DLname_of_luser_relay. This says that I don't know anybody on the system and I am going to forward all e-mails to the DL
These options exist in the /etc/mail/sendmail.cf file. Do make a copy of the original sendmail.cf file and once changes are in place, kill the sendmail daemon and restart it
This will reread the mail config file.
ps -ef | grep mail
kill
/usr/lib/sendmail -bd -q15m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2000 05:27 AM
тАО07-06-2000 05:27 AM
Re: sending mail to my exchange server
What if all users do not reside on the same Exchange server? Would the .forward option be the best way to go? I've never done this stuff before, so I'm going to need some more detailed information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2000 05:44 AM
тАО07-06-2000 05:44 AM
Re: sending mail to my exchange server
i.e., DShostname.domain.com - the luser_relay would also be the exchange server hostname.
If all users are not on this exchange server, is it setup to forward those e-mail boxes to the server they reside on? If so, the UNIX mail still does not know anybody on the UNIX system - all mail gets forwarded to the exchange server and the exchange server will do the name lookups and forward accordingly.
On the UNIX system, define the Smart Host at the least. Mail from the UNIX system will be forwarded to the exchange server.
After defining the Smart Host in the /etc/sendmail.cf file, be sure to stop and restart the mail daemon.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-06-2000 04:04 PM
тАО07-06-2000 04:04 PM
Re: sending mail to my exchange server
DS[xxx.xxx.xxx.xxx]
where you insert the IP address for your exchange server.
The easiest way, however, is to just to put an entry in /etc/hosts:
xxx.xxx.xxx.xxx companyname.com
where you supply the appropriate domain name. Then use the following shell script:
#!/usr/bin/sh
SUBJECT="Forward mail from HP-UX"
ACCOUNTS=`find /var/mail -mtime +1 -print`
for ACCOUNT in $ACCOUNTS; do
NAME=`echo $ACCOUNT|cut -c 11-`
EMAILTO="${NAME}@companyname.com"
if [[ -n $NAME ]];then
mailx - "$SUBJECT" "$EMAILTO" <"$ACCOUNT"
rm "$ACCOUNT"
fi;
done
This script is then executed maybe once an hour in crontab. You might adjust the script because the way it is now written it forwards all mail older than a day to the exchange server. It also assumes that user names are the same on the exchange server as on the the hp-ux. If this is not the case then you could set up a switch table to get the names.
In order to reference the exchange server in /etc/hosts only, you must set the line in /etc/mail/service.switch to:
hosts files
For more information on these issues look at the sendmail web site, www.sendmail.org
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2000 12:48 PM
тАО07-18-2000 12:48 PM
Re: sending mail to my exchange server
I let few people know I have done this because I do not want to be maintaining the aliases file. There are only a couple of entries in there that are fairly static and do not require regular updating.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2000 01:39 PM
тАО07-18-2000 01:39 PM
Re: sending mail to my exchange server
Forward to user@exchange.company.com
(replace this with whatever user you want root's mail to go to).
I hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2001 04:15 AM
тАО08-20-2001 04:15 AM
Re: sending mail to my exchange server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-20-2001 05:00 AM