Operating System - HP-UX
1844557 Members
3026 Online
110233 Solutions
New Discussion

Unix Mail to Exchange 2003 (with a twist)

 
SOLVED
Go to solution
Jeff Souter
Frequent Advisor

Unix Mail to Exchange 2003 (with a twist)

Hello All
I know this has been discussed many times but i have a slight variant on the subject and could do with some help.
I have managed to get Exchange to send all it's outgoing mail via the Unix mail server but i have no idea how to get it to go the other way (unix to Exchange.
The problem is we don't use home directories just 2 generic specific logins for all our users (Kerridge) so our pop3 mailboxes for users live in /var/mail with a forward file in another directory sending mail into var mail if the user is setup for pop3 mail.
So i can't use a forward file in a home dir, so where would i put one and what would it say?
If anyone has followed me on this can they suggest anything?
Many Thanks
Jeff
5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: Unix Mail to Exchange 2003 (with a twist)

You will need this script the buildmail hpux script from this site: http://wwww.hpux.ws

I never type the direct link right.

Here it is
http://www.hpux.ws/buildmail.hpux.text

Set up the user in
/etc/mail/virtusertable /etc/mail/genericstable


Lets say Unix hostname is hpux Windows is called priceywin

virtusertable
username@hpux user@priceywin

genericstable
user@priceywin username@hpux

Run the script.

This has to be done user by user but it will foward user mail to the exhcange server, which should push the mail through unix and out the door.

Note: The Unix server probably should not be the same server as is forwarding the Exchange mail. Its possible to set up an endless, dangerous procesing loop if you are not extremely careful.

Perhaps do virtusertable or genericstable but not both.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jeff Souter
Frequent Advisor

Re: Unix Mail to Exchange 2003 (with a twist)

Thanks Steven

I'm a little worried about running the script as i'm not that familiar with that sort of script.
But at least it gives me somewhere to start.

Cheers
Jeff
Steven E. Protter
Exalted Contributor

Re: Unix Mail to Exchange 2003 (with a twist)

I recommend code review. Not speaking for HP but at least one support center technician has looked at what I did and expressed warm and fuzzy feelings.

Also, compare the script to documentation at http://www.sendmail.org

What I can tell you is this is production quality code. It runs three times a day.

The dangerous part is the possibility of a circular loop.

If schmo@hpux mail is forwarded to schmo@pricey and the exchange server at pricey is forwarding all mail back to hpux, a serious situation could erupt.

You should always be warm and fuzzy about running someone elses code. Let me know if here is anything that can increase warmth and fuzziness at your end of this connection.

Have a good weekend too.

Steve
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jeff Souter
Frequent Advisor

Re: Unix Mail to Exchange 2003 (with a twist)

Thanks Steve
Will see how it goes, i have to run both as mail servers because alot of users don't use pop3 mail but have mail stored on the Unix server.
My thinking was just to let Exchange send it's outgoing mail via Unix Sendmail, but then i was stumped over how mail coming in to the Unix server could be sent to the user but now obviously on the Exchange server.

I'm in early development with this so time is on my side to get it right.
Thanks and have a good weekend yourself.

Jeff
Armin Kunaschik
Esteemed Contributor

Re: Unix Mail to Exchange 2003 (with a twist)

A short note to Steven:

You should add a version check to you script.
In my gen_cf the max index is 13.
Sendmail is 8.9.3 (PHNE_26305)

You'll get the version with:
sendmail -bt -d0.1
Regards,
Armin
And now for something completely different...