Messaging
cancel
Showing results for 
Search instead for 
Did you mean: 

Can i send mails to outside domain with From : xyz@test.com

SOLVED
Go to solution
chindi
Respected Contributor

Can i send mails to outside domain with From : xyz@test.com

Hi,

Can we configure sendmail to relay mails via smtp server which is of client.

for ex:  Our hpux server 10.1.4.6 we will configure clients smtp ip ( 12.4.5.6) use authorized username & password .

We need to send some files to their clients which they must see as From : xyz@test.com , whereas our domain is abc.com

Is it possible ?

Also can we use multiple smtp relay ip in sendmail.cf ?

4 REPLIES
Bill Hassell
Honored Contributor

Re: Can i send mails to outside domain with From : xyz@test.com

This called masquerade and the DM and C{M} constructs should do that in sendmail.cf, like this:

DMtest.com
C{M}test.com

Look for the comments about masquerade in the .cf file.

As far as multiple relays, what is it that you want to do?
Send one message to several relay hosts at the same time?
Keep trying to use different relay hosts until one works?

 

 



Bill Hassell, sysadmin
chindi
Respected Contributor

Re: Can i send mails to outside domain with From : xyz@test.com

Hi Bill,

We have a server ( Exclusive ) where we generate some files which we need to send to our clients customer directly on their mail-id.

Client has shared their smtp server ip , username , password and domain name i.e @xyz.com .

End customer must be able to see in his inbox mails coming from fty@xyz.com ( where FTY is Clients Org name ) 

Is it possible ?

Bill Hassell
Honored Contributor
Solution

Re: Can i send mails to outside domain with From : xyz@test.com

I'm not sure what the previous comments mean.

My suggestion is to edit the sendmail.cf file, then restart sendmail and send a test message to see what the sender's return address looks like.



Bill Hassell, sysadmin
chindi
Respected Contributor

Re: Can i send mails to outside domain with From : xyz@test.com

Thanks a ton its working.