Operating System - HP-UX
1834252 Members
1860 Online
110066 Solutions
New Discussion

How to forward mails from exchange2000 to sendmail

 
SOLVED
Go to solution
Thayanidhi
Honored Contributor

How to forward mails from exchange2000 to sendmail

Hi,

We have hp-ux 11i runnign sendmail 8.9.3
And win2K running Exchnage2K. I setup to
send mails from unix to internet through
exchange.
Now to receive mails on unix we were trying
add a forward rule to forward unix. But doesn't
work.

I also added exchange name/ip in /etc/mail/relay-domains

Anything else to be done on the unix side?
In DNS exchnage server has alias record for
the domain (i.e. mydomin.com)
The unix server has only Host (type-A) record.
Since unix is running sendmail it has to be
A-record or Mx record. Shall I add Mx record
for unix server?

Any thing else I am missing?

Thanks in advance

T.Thayanidhi

Note: I am handling only unix side, Exchange
Admins are different.






Attitude (not aptitude) determines altitude.
9 REPLIES 9
Robert-Jan Goossens
Honored Contributor

Re: How to forward mails from exchange2000 to sendmail

Hi,

make a .forward file in the user homedir.
like

vi .forward
user@exchange.com

to keep a copy on unix,

user, userA@exchange.com

Hope it helps,

Robert-Jan.
U.SivaKumar_2
Honored Contributor
Solution

Re: How to forward mails from exchange2000 to sendmail

 
Innovations are made when conventions are broken
Thayanidhi
Honored Contributor

Re: How to forward mails from exchange2000 to sendmail

Hi Robert,

I don't want to forward from unix to exchange.
I want the otherway.

Hi Shivakumar,

Will it not help if I just create a MX record
for unix system on DNS. (with lower priority)

I am going through doc. anyway.
( Please note I am not forwarding to another
domain. I want to forward to own SMTP namespace
i.e. Domain name is: domain.com and
unix server FQDN is myserver.domain.com)

Thanks in Advance

T.Thayanidhi
Attitude (not aptitude) determines altitude.
U.SivaKumar_2
Honored Contributor

Re: How to forward mails from exchange2000 to sendmail

Hi,

Forget the smart host idea. I misundestood you.
create a internal domain named internal.com and
give A record and MX record for that domain as
sendmail server. So all mails to that internal.com should go to sendmail server.

Now create the users in unix replica of exchange server. internal dns server
entry must be put as a DNS server exchange server with Internet DNS server also.

And follow this reference:

Redirect Mail That Comes To Your Exchange 2000 To An External SMTP (19-03-2002)
--------------------------------------------------------------------------------
1. Start the Active Directory Users and Computers snap-in (Start -> Programs -> Administrative Tools -> Active Directory Users and Computers

2. Right-click inside the Users folder and select New -> Contact.

3. Provide a name for the contact and click Next. (I prefer to use the external email address to which I plan to forward mail so that I can distinguish it from other contact names, and I copy this name to the Display Name box.)

4. From the next window, click Modify, choose SMTP Address, enter the external email address, and click OK

5. Click Next to proceed to the review window -> Finish

6. Locate and double-click the user account from which you want to forward mail

7. Select the Exchange General tab and click the Delivery Options button, In the Forwarding address section, select the "Forward to" button and click Modify. Locate the contact that you just created and click OK

8. Select the "Deliver message to both forwarding address and mailbox" check box IF you want to maintain a copy of each email message on the server

9. Click OK twice to exit all configuration screens

Use the internal sendmail email addresses as external email address for exchange redirection
Now the external mails should be redirected to
sendmail server thru exchange server. This setup should work like unix aliases routing.

But still I recommend to use the POP3 service exchange server is providing from unix server
with some good pop3 clients ( fetchmail )

regards,
U.SivaKumar



Innovations are made when conventions are broken
Thayanidhi
Honored Contributor

Re: How to forward mails from exchange2000 to sendmail

Hi shivakumar,

Have compiled fetchmail in hp-ux 11i succesfully?

I have some errors and I would prefer not to
use fetchmail. (third party utility, not supported by hp)

TT
Attitude (not aptitude) determines altitude.
U.SivaKumar_2
Honored Contributor

Re: How to forward mails from exchange2000 to sendmail

Hi,

Try Qpopper then .


regards,
U.SivaKumar
Innovations are made when conventions are broken
Reinhard Burger
Frequent Advisor

Re: How to forward mails from exchange2000 to sendmail

Hi
We have this running by using the following way :
create an e-mail account on Exchange2K for one of your unix e-mail addresses.
This should allow you to configure exchange in a way that it forwards all e-mails addressed to that exchange2k address internally to the unix box. This has been setup by our mail specialists in the company, therefore i do not have the technical details.
But it works fine
keep it simple
Thayanidhi
Honored Contributor

Re: How to forward mails from exchange2000 to sendmail

Hi,

I created a contact user@myserver.domain.com
in exchnage and user@domain.com has been
enabled to redirect to this e-mail.
DNS added MX record for the unix host.
Still If I send a to this id, it rejects.
The error is "The destination server for this
recipient couldn't be found in DNS. Please
verify the mail address and retry"

Any thing else to be done?

I tried to send using IP (user@[a.b.c.d])
returning error "501 sender domain must resolv"
(relay-domains already has the entry)

I tried to use fetchmail too. I have installed
fetchmail and dependencies (gettext,libconv,openssl). When I run fetchmail
it returns error

/usr/lib/dld.sl connot find for shared library libfl.sl
/usr/lib/dld.sl no such file or directory.

I checked with/without SHLIB_PATH variable.

I some how want this mailing to work(either exchange redirection or fetchmail).

Thanks in advance

TT
Attitude (not aptitude) determines altitude.
U.SivaKumar_2
Honored Contributor

Re: How to forward mails from exchange2000 to sendmail

Try Qpopper then .


Innovations are made when conventions are broken