Operating System - HP-UX
1825667 Members
4280 Online
109686 Solutions
New Discussion

sendmail and exchange 2003

 
Scott Graham_1
Occasional Contributor

sendmail and exchange 2003

I can send mail from my Unix server to user@mailserver.domain.com but not to user@domain.com.

I have configured my exchange server to relay my unix host.

I got this working by adding a secondary address to my exchange account of user@mailserver.domain.com but I cannot do this globally as it says I cannot add a global address that includes the name of an exchange server. I cannot add this second address for all my users.

Is there a way to setup sendmail to send to user@domain.com

Thanks.
5 REPLIES 5
NathanK
Regular Advisor

Re: sendmail and exchange 2003

Easiest way that I know of to do this is to add an entry in your hosts file or on your DNS server.

What you would do is create an alias like mail.com and it would basically forward to the fully qualified name of mialserver.domain.com or the IP address if you so choose.
If there is no solution then there is no problem
Scott Graham_1
Occasional Contributor

Re: sendmail and exchange 2003

I have an entry for my mailserver in my hosts file

192.168.1.1 mailserver.domain.com mailserver

Is this correct.

How do I setup the alias?

Thanks.
NathanK
Regular Advisor

Re: sendmail and exchange 2003

We use DNS so I am not as familiar with the /etc/hosts file as I should be, but this should work.

192.168.1.1 mailserver.domain.com domain.com

Let me know if it doesn't!

Nathan
If there is no solution then there is no problem
Tvs
Regular Advisor

Re: sendmail and exchange 2003

Hi

Just try this

edit /etc/mail/sendmail.cf file

change the smart host entry

# "Smart" relay host (may be null)
DStest.domain.com


and then

#newaliases

then restart the senmail process

regards

tvs
Scott Graham_1
Occasional Contributor

Re: sendmail and exchange 2003


Thanks Nathan.

That seemed to do the trick.