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
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
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
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.y ourdomain. local')dnl
MASQUERADE_AS(`mydomain.co m')dnl MASQUERADE_AS(`yourdomain. com')dnl
then compile sendmail , it will work
in your sendmail.mc
look for this
define(`SMART_HOST',`sbs.y
MASQUERADE_AS(`mydomain.co
then compile sendmail , it will work
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
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',`win2k 3.testing. local')dnl
MASQUERADE_AS(`mydomain.co m')dnl MASQUERADE_AS(`testking.co m')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
in sendmail.mc
define(`SMART_HOST',`win2k
MASQUERADE_AS(`mydomain.co
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
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
ASKER
Hi
I want to clearly explain u
I have one domain testing.local
and my mail server is win2k3.testing.local(172.2 4.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 want to clearly explain u
I have one domain testing.local
and my mail server is win2k3.testing.local(172.2
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
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