Link to home
Start Free TrialLog in
Avatar of krishgudd
krishgudd

asked on

mail relaying

Hi,

We have one test domain  and exchange configured in windows2003. And we have one application running under rhel3 linux. How to relay mail from linux to windows.
I mean the application  has to send an email using windows exchange (Means relaying)

How to configure relaying.
Thxs inAdvance
krishgudd
Avatar of fosiul01
fosiul01
Flag of United Kingdom of Great Britain and Northern Ireland image

are you using sendmail ??

then in sendmail.mc

look for this :

# "Smart" relay host (may be null)
DSsbs.exchangeserver.local


# who I masquerade as (null for no masquerading) (see also $=M)
DMexchangeserver.com

then compile your sendmail.cf

then your  server should be abel to send email via exchang server
Sorry the upper one is for sendmail.cf

you can edid sendmail.cf and add those,

or wait, i am sending you configuration for sendmail.mc

if you edit sendmail.cf diretly then you dont need to compile sendmai again

Ok here we go

in your sendmail.mc

look for this

define(`SMART_HOST',`sbs.yourdomain.local')dnl


MASQUERADE_AS(`mydomain.com')dnl MASQUERADE_AS(`yourdomain.com')dnl

then compile sendmail , it will work
Avatar of krishgudd
krishgudd

ASKER

Hi,
I didn't find this line
# who I masquerade as (null for no masquerading) (see also $=M)
DMexchangeserver.com
i am send a test mail
#mail user1@testing.local
subject ****
jjh
ctlr+d
when i check mailq there are no messages in queue but i am not able  to see those mails.
My domain is testing.local
DNS is win2k3.testing.local
Thxs in Advance
Krishgudd
did you do this ??

in sendmail.mc

define(`SMART_HOST',`win2k3.testing.local')dnl
MASQUERADE_AS(`mydomain.com')dnl MASQUERADE_AS(`testking.com')dnl


then : you need to compile sendmail by using

make command

then try to sendemail like this
cat /etc/hosts | mail -s "host file" user1

or cat /etc/hosts | mail -s "host file" user@gmail.com



One more thing :

in /etc/aliases  , you need to add mailing list of user, other wise it will not send email

you need to add user and their address like this

usera:        usera, usera@testing.com


then  this command : newaliases

Hi

I want to clearly explain u
I have one domain testing.local
and my mail server is win2k3.testing.local(172.24.203.203)
i have one linux box just i started the sendmail service .what to do next ?
starting from scratch can you tell me
Thxs in Advance
Krishugdd
i already told you at my previous 2 comments. Stil if u need more specifiq give me some time i wil post again.i m nt infront of pc.
ASKER CERTIFIED SOLUTION
Avatar of fosiul01
fosiul01
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
hi any luck ??

one more this , from your exchange mailserve you will have to give permission to send email from that linux box
other wise mail will not pass via your mailserver