Masquerading in sendmail.cf

Masquerading in sendmail.cf

Post by Mangelo6 » Sat, 29 Aug 1998 04:00:00



Subject: Masquerading in sendmail.cf

Date: 8/28/98 11:44 AM Pacific Daylight Time

I have a LAN that is connected to the internet. I want the hosts outgoing mail
to be masqueraded as coming from the server. I edited the host.mc file to
include

        MASQUERADE_AS(server.domain.org)   **using the correct name, of couse

I recompiled the sendmail.cf, copied it to /etc, and it now contains the line:

        # who I masquerade as (null for no masquerading) (see also $=M)
        DMserver.domain.org

However, outgoing mail still claims to have come from the original host rather
than the server. Apparently this line is incorrect. Any ideas?

 
 
 

Masquerading in sendmail.cf

Post by Ronald Col » Sun, 30 Aug 1998 04:00:00



> I have a LAN that is connected to the internet. I want the hosts
> outgoing mail to be masqueraded as coming from the server. I edited
> the host.mc file to include

>         MASQUERADE_AS(server.domain.org)   **using the correct name, of couse

> I recompiled the sendmail.cf, copied it to /etc, and it now contains
> the line:

>         # who I masquerade as (null for no masquerading) (see also $=M)
>         DMserver.domain.org

> However, outgoing mail still claims to have come from the original
> host rather than the server. Apparently this line is incorrect. Any
> ideas?

Try adding

        FEATURE(masquerade_envelope)

--
Forte International, P.O. Box 1412, Ridgecrest, CA  93556-1412

President, CEO                             Fax: (760) 499-9152
My PGP fingerprint: 15 6E C7 91 5F AF 17 C4  24 93 CB 6B EB 38 B5 E5

 
 
 

Masquerading in sendmail.cf

Post by Carles Arjon » Tue, 01 Sep 1998 04:00:00



> I have a LAN that is connected to the internet. I want the hosts outgoing mail
> to be masqueraded as coming from the server. I edited the host.mc file to
> include

>         MASQUERADE_AS(server.domain.org)   **using the correct name, of couse

> I recompiled the sendmail.cf, copied it to /etc, and it now contains the line:

>         # who I masquerade as (null for no masquerading) (see also $=M)
>         DMserver.domain.org

> However, outgoing mail still claims to have come from the original host rather
> than the server. Apparently this line is incorrect.

It is correct. Yo might try adding to your .mc file:
FEATURE(masquerade_envelope)
FEATURE(use_cw_file)

And adding the host names that must be masqueraded to your
/etc/sendmail.cw file.

I suggest reading the web page:
http://personales.mundivia.es/luca/diald-win-s.html#sendmail

Hope this helps.
PS.: Most people prefer to post sendmail questions at

--

-
Please, just remove the second NOSPAM to reply.
(Yes, NOSPAM is my real username).

 
 
 

Masquerading in sendmail.cf

Post by Chri » Wed, 09 Sep 1998 04:00:00


Hi Mangelo

I edited my sendmail.cf file by uncommenting the line

# my official domain name
# ... define this only if sendmail cannot automatically determine your
domain #
Dj$w.eis.net.au  

where eis.net.au is my domain name.

I now have the correct domain in my reply-to fields and so on, but sadly
haven't been able to masquerade as a different user (my username at my ISP
is different to that on my home machine)

Hope this helps and if you have any idea about username's please let me
know.

Thanks,



> Subject: Masquerading in sendmail.cf

> Date: 8/28/98 11:44 AM Pacific Daylight Time

> I have a LAN that is connected to the internet. I want the hosts outgoing mail
> to be masqueraded as coming from the server. I edited the host.mc file to
> include

>         MASQUERADE_AS(server.domain.org)   **using the correct name, of couse

> I recompiled the sendmail.cf, copied it to /etc, and it now contains the line:

>         # who I masquerade as (null for no masquerading) (see also $=M)
>         DMserver.domain.org

> However, outgoing mail still claims to have come from the original host rather
> than the server. Apparently this line is incorrect. Any ideas?

 
 
 

Masquerading in sendmail.cf

Post by Jens-U. Mozdze » Wed, 09 Sep 1998 04:00:00



> Hi Mangelo

> I edited my sendmail.cf file by uncommenting the line

> # my official domain name
> # ... define this only if sendmail cannot automatically determine your
> domain #
> Dj$w.eis.net.au

> where eis.net.au is my domain name.

> I now have the correct domain in my reply-to fields and so on, but sadly
> haven't been able to masquerade as a different user (my username at my ISP
> is different to that on my home machine)

> Hope this helps and if you have any idea about username's please let me
> know.
> [...]

Have a look at the genericstable feature. That allows to do a one-on-one
mapping of internal to external user names. Works fine for me.

Now what I need is a one-to-many mapping, depending on whom I send the
mail to, like:




and so on.

Any ideas on that one? I'd write the rules, but haven't found a way to
access the target address, while rewriting the sender address.

Regards,
Jens
--

Schleswiger Damm 200                          | phone & fax
++49-40-5595175
D-22457 Hamburg, Germany                      |