Sendmail: Username is not translated (masquerading)

Sendmail: Username is not translated (masquerading)

Post by -Y-Y-Y » Sun, 03 Oct 1999 04:00:00



Hi there!

PPPPllleease! HELP!

Sendmail doesn't convert my username at home to my mail-account-username of
GMX.


My Domain at home is mydomain.org
My username at home is "me"
My sendmail is configured like this:

        MASQUERADE_AS(`gmx.net')dnl
        MASQUERADE_DOMAIN(`mydomain.org')dnl
        FEATURE(`masquerade_entire_domain')dnl
        FEATURE(`masquerade_envelope')dnl
        dnl FEATURE(`allmasquerade')dnl

My entry in genericstable is:

I've done:
makemap hash /etc/mail/genericstable < /etc/mail/genericstable
and
m4 /etc/mail/linux.mc > /etc/sendmail.cf

Well done.
I can see in the maillog of my ISP that the translation was not correct:


Domain-masquearding was ok but the USERNAME was not!

WHAT SHOULD I DO TO TRANSLATE MY LOCAL USERNAME TO THE CORRECT
MAILUSERNAME???

Oh god! Thank you!!

Claude

------------------  Posted via CNET Linux Help  ------------------
                    http://www.searchlinux.com

 
 
 

Sendmail: Username is not translated (masquerading)

Post by Raymond Doetje » Wed, 06 Oct 1999 04:00:00


Sendmail doesn't change usernames as dfar as I know. Domain masquerading it
does.
You should perhaps start writing your own sendmail macro (wich is tricky) you
can also just ad your email address correclty in your mail program this is
easier.

Raymond


> Hi there!

> PPPPllleease! HELP!

> Sendmail doesn't convert my username at home to my mail-account-username of
> GMX.


> My Domain at home is mydomain.org
> My username at home is "me"
> My sendmail is configured like this:

>         MASQUERADE_AS(`gmx.net')dnl
>         MASQUERADE_DOMAIN(`mydomain.org')dnl
>         FEATURE(`masquerade_entire_domain')dnl
>         FEATURE(`masquerade_envelope')dnl
>         dnl FEATURE(`allmasquerade')dnl

> My entry in genericstable is:

> I've done:
> makemap hash /etc/mail/genericstable < /etc/mail/genericstable
> and
> m4 /etc/mail/linux.mc > /etc/sendmail.cf

> Well done.
> I can see in the maillog of my ISP that the translation was not correct:


> Domain-masquearding was ok but the USERNAME was not!

> WHAT SHOULD I DO TO TRANSLATE MY LOCAL USERNAME TO THE CORRECT
> MAILUSERNAME???

> Oh god! Thank you!!

> Claude

> ------------------  Posted via CNET Linux Help  ------------------
>                     http://www.searchlinux.com

--
=========================================================================
             General Exception Failure on address 0x00C098F
                   This Error Is not Yet Implemented
If this error repeats it's self then you need to re-install your Windows
=========================================================================

 
 
 

Sendmail: Username is not translated (masquerading)

Post by Ruediger Winkelma » Thu, 07 Oct 1999 04:00:00


Hello Claude!


> Sendmail doesn't convert my username at home to my mail-account-username of
> GMX.
> My entry in genericstable is:

> I can see in the maillog of my ISP that the translation was not correct:

> Domain-masquearding was ok but the USERNAME was not!

I am having the same Problem with just about the same setup.
I noticed that translation was correct when I used the standard
"mail" command from prompt but not when I was sending with a
more "proper" mailer like pine.
When I switched off masquerading I found out that pine added


I didn't have the time to tinker around the problem more but

to the genericstable or to the users-file, not sure though.

If you should pursue this matter further and with succes please
notify me, I will do the same once I find the time.

BCNU
 Ruediger

--

http://www.gargoyles.ch/duncan            May the winds be with you!

 
 
 

Sendmail: Username is not translated (masquerading)

Post by Dale Ponti » Sat, 09 Oct 1999 04:00:00




> Hello Claude!


>> Sendmail doesn't convert my username at home to my mail-account-username of
>> GMX.
> I am having the same Problem with just about the same setup.

I switched to Exim. (www.exim.org) It's pretty much a drop-in
for sendmail, but is much easier to configure. It also has
very easy address rewriting capabilities. I have multiple
accounts going out through multiple services, and it all works.

Dale Pontius
DEPontius AT usa DOT net

 
 
 

Sendmail: Username is not translated (masquerading)

Post by Ruediger Winkelman » Mon, 11 Oct 1999 04:00:00


Hello Claude!


> Sendmail doesn't convert my username at home to my mail-account-username of
> GMX.
> My entry in genericstable is:

> I've done:
> makemap hash /etc/mail/genericstable < /etc/mail/genericstable
> and
> m4 /etc/mail/linux.mc > /etc/sendmail.cf

I found some really useful info in the
"Sendmail Adress Rewriting mini-HOWTO" by Thomas Roessler

I had some trouble with it though because my SuSE Box seems to
hide it's sendmail.mc file somewhere out of reach (did a search
through the whole tree for any .mc files but the one "Yast" uses
to create sendmail.cf from was not among it, I even suspect that
this file is created, processed and deleted again every time
"SuSEconfig" is run. I found one rather suitable sendmail.mc among
the files shipped with sendmail and edited it and so far it seems
to work fine.

I added the following to the sendmail.mc:

define(`confCON_EXPENSIVE', `True')dnl
define(`SMTP_MAILER_FLAGS',`e')dnl
FEATURE(`nocanonify')dnl
FEATURE(`always_add_domain')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`local_procmail')dnl
FEATURE(`genericstable', `hash -o /etc/mail/genericstable.db')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/genericsdomain')dnl
FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')dnl
MAILER(`local')dnl
MAILER(`procmail')dnl
MAILER(`smtp')dnl

And my /etc/mail/genericsdomain now contains:
xanacorp.com
nightstone.xanacorp.com
genutech.xanacorp.com

(xanacorp.com is my local fictitious domain, nightstone is my main
Linux-box and genutech is a diskless client connected to it via
NFS-root. Haven't checked yet wether mail works from genutech or not)

BCNU
 Ruediger

--

http://www.gargoyles.ch/duncan            May the winds be with you!

 
 
 

Sendmail: Username is not translated (masquerading)

Post by Carles Arjon » Mon, 11 Oct 1999 04:00:00



>         MASQUERADE_AS(`gmx.net')dnl
>         MASQUERADE_DOMAIN(`mydomain.org')dnl
>         FEATURE(`masquerade_entire_domain')dnl
>         FEATURE(`masquerade_envelope')dnl
>         dnl FEATURE(`allmasquerade')dnl

> My entry in genericstable is:


You are just masquerading. In order to use genericstable, you need also:
  FEATURE(genericstable)

in your .mc file. Depending on your unknow sendmail version, it should
be something like:
  FEATURE(`genericstable',`hash -o /etc/mail/genericstable')

You also need to define which domains should pass through the generics
table, so you need also the GENERICS_DOMAIN or GENERICS_DOMAIN_FILE
macros. For instance, i'm using:
  GENERICS_DOMAIN_FILE(confCW_FILE)

That's explained at the cf/README file of sendmail (it's
/usr/lib/sendmail-cf/README on RedHat boxes, but this might change with
your also unknow Linux distribution), and at these pages too:
  http://www.sendmail.org/virtual-hosting.html
  http://www.sendmail.org/m4/features.html


questions.

PS. #2: Questions about sendmail should include the sendmail version and
the OS release (Linux distribution) you're using.

--
Regards.


-
Just remove the second NOSPAM for replies from newsgroups.
(Yes, NOSPAM is my real username)
[Don't send me e-mail copies of usenet postings, please]

***  SAVE THE BANDWIDTH !!  ***  DON'T QUOTE MESSAGES ENTIRELY ***

 
 
 

1. IP Masquerading works, but does not masquerade from within the local network

I've got a box running Redhat 6.1 working as a gateway for our home network.
It's connected to a cable modem, and we've only got one IP address, so it's
doing IP forwarding and masquerading for us.

Now, consider this situation: I've got a webcam running on one of my windows
boxes, whose IP address is 192.168.0.1 (for instance). The webcam is on port
8888, and I've got the linux box set up to forward this port along from
port, say, 9999, using a line much like

ipmasqadm portfw -a -P tcp -L xxx.xxx.xxx.xxx 9999 -R 192.168.0.1 8888

in my rc.local.

This works very well for people connecting in from outside - they'd use a
URL like:

http://xxx.xxx.xxx.xxx:9999/video/frame

but if I try and use that URL from inside the local network, it doesn't
connect, I'd have to use:

http://192.168.0.1:8888/video/frame

which is rather annoying as it makes it difficult to test things (I have to
VNC out to work and boot up a browser there)

I'm fairly sure the problem isn't with the webcam software - I've had the
same problem when trying to connected to an apache server inside the network
as well.

any ideas?

cheers,

Tim


2. Mach64 beta server due to die tonight...

3. IP MASQuerading NOT Masquerading?

4. VIA south bridge bug question

5. /etc/fixmog failed

6. Ip-Masquerade and games over the net...what am I doing wrong????????

7. broken pipe?

8. I am trying to masquerade

9. turning ~username to username

10. sendmail: forwarding unqualified usernames to mailhost

11. Ip-Masquerade and games over the net...what am I doing wrong????????

12. 'unknown user' on numeric usernames (sendmail 8.6.12 and linux 1.3.20)