1752785 Members
6182 Online
108789 Solutions
New Discussion юеВ

sendmail DM masquerade

 
SOLVED
Go to solution
Jairo Campana
Trusted Contributor

sendmail DM masquerade

hello I want masks my direction of email example: root@manangment.com(original) to xx@thePoint.net

I modify in / etc/sendmail.cf the option

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

but when send to email :
the output is:

from root@manangment.com (original)
I need to modify something but?







legionx
2 REPLIES 2
Eugen Cocalea
Respected Contributor

Re: sendmail DM masquerade

Hi,

This can easily be done within your client. For example, in pine, you can set a role and pretend you are whoever you want. So, no matter what your real username is, you can always send emails from anotheruser@anotherdomain.com

E.
To Live Is To Learn
Jeffrey S. Sims
Trusted Contributor
Solution

Re: sendmail DM masquerade

Try add the following line into your /etc/mail/sendmail.mc file

MASQUERADE_AS(domain.com)

This states the domain that you want to masquerade as.

Once the line is inserted create your sendmail.cf file from this file by typing

m4 /etc/mail/sendmail.mc > /etc/sendmail.cf

You should shy away from editing the sendmail.cf file directly. This is always a better way to go.

Then you just restart sendmail by typing

service sendmail restart

All should be well.

Hope it helps