Re: How do I change the envelope from address in sendmail

2004-07-09 Thread Matthew Seaman
On Fri, Jul 09, 2004 at 05:35:07PM +0530, BALU G.S wrote:

What's the proper way to
get sendmail to use [1]user at domain.com instead of [2]user at
machine.domain.com?

You want MASQUERADE_AS(`domain.com')dnl in your `hostanme`.mc Read the
masquerading sections of /usr/share/sendmail/cf/README for details.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgpzjlUZVxR6I.pgp
Description: PGP signature


Re: How do I change the envelope from address in sendmail

2004-07-09 Thread Oliver Fuchs
On Fri, 09 Jul 2004, BALU G.S wrote:

 
Hi,
 
What's the proper way to
get sendmail to use [1]user at domain.com instead of [2]user at
machine.domain.com?
 
Regards,

Hi,

add:
FEATURE(`genericstable', `hash -o /etc/mail/genericstable')dnl
FEATURE(`masquerade_envelope')dnl

to your sendmail.mc

Add in /etc/mail/genericstable
user1.domain.comuser2.machine.domain.com

Change to /etc/mail
and run

make all
make install
make restart

Oliver
-- 
... don't touch the bang bang fruit
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: How do I change the envelope from address in sendmail

2003-06-16 Thread Doron Shmaryahu
Hi,

Have you double checked that it did build a new sendmail.cf file. Also you
can directly edit sendmail.cf.


Kind Regards

Doron Shmaryahu

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bill Moran
Sent: 14 June 2003 03:23 AM
To: [EMAIL PROTECTED]
Subject: Re: How do I change the envelope from address in sendmail

[sorry Jon, I'm trying to do 5 things at once and forgot to CC the list]

Jonathan Chen wrote:
 On Fri, Jun 13, 2003 at 08:33:07PM -0400, Bill Moran wrote:
 
 [...]
 
howtos I found, but it doesn't seem to be helping.  What's the proper way
to
get sendmail to use [EMAIL PROTECTED] instead of [EMAIL PROTECTED]
 
 
 You have to add the following into your /etc/mail/`hostname`.mc file.
 
 MASQUERADE_AS(domain.com)
 FEATURE(`masquerade_envelope')

Thanks, but this hasn't helped.  Any suggestions on what I could be doing
wrong?

I added the two lines above to my .mc file and did a 'make; make restart' in
the /etc/mail directory.  The results are the same.  My .mc file is stock
otherwise except I've defined a SMART_HOST.

Any ideas?


-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How do I change the envelope from address in sendmail

2003-06-14 Thread Kevin Stevens
On Friday, Jun 13, 2003, at 17:33 US/Pacific, Bill Moran wrote:

I'm having a hell of a time with send-pr.
See thread below from the comp.mail.sendmail Usenet group; this is what 
worked for me after I had the same problem:

Begin forwarded message:

Newsgroups: comp.mail.sendmail
Organization: Sporadic
User-Agent: MT-NewsWatcher/3.2 (PPC Mac OS X)
Message-ID: [EMAIL PROTECTED]
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 07 Aug 2002 04:56:52.0260 (UTC) 
FILETIME=[D8612E40:01C23DCE]

I know the regulars here must be incredibly tired of responding to the
same questions over and over.  I apologize in advance, but I *have* 
read
through all the masquerading posts I could find in this group, the
sendmail FAQ, and the FreeBSD handbook.  I'm at a loss.  Please don't
hurt me.

Typical goal:  I want my messages, including envelopes, to appear as
though they are from my domain name rather than the specific host.
Sendmail is version 8.12.3, running on FreeBSD 4.6-RELEASE.

Here's an example of a local test message with headers:

From: Kevin Stevens [EMAIL PROTECTED]
Date: Tue Aug 06, 2002  09:37:55  US/Pacific
To: [EMAIL PROTECTED]
Subject: test
Return-Path: [EMAIL PROTECTED]
Received: from babelfish.pursued-with.net (localhost [127.0.0.1]) by
babelfish.pursued-with.net (8.12.3/8.12.3) with ESMTP id g774bteb056372
for [EMAIL PROTECTED]; Tue, 6 Aug 2002 21:37:55 -0700 (PDT)
(envelope-from [EMAIL PROTECTED])
Received: (from [EMAIL PROTECTED]) by babelfish.pursued-with.net
(8.12.3/8.12.3/Submit) id g774btRg056371 for [EMAIL PROTECTED]; Tue,
6 Aug 2002 21:37:55 -0700 (PDT)
Message-Id: [EMAIL PROTECTED]
Basically, I want babelfish. excised in its entirety.

I began with the typical MASQUERADE_AS( ) and
FEATURE(`masquerade_envelope') settings, and have progressed in
confusion to FEATURE(`masquerade_entire_domain') and more esoteric
things.  Here's the salient portion of my current .mc file:
FEATURE(access_db, `hash -TTMPF /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(relay_based_on_MX)
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')dnl
MASQUERADE_AS(`pursued-with.net')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`masquerade_entire_domain')dnl
MASQUERADE_DOMAIN_FILE(`/etc/mail/masqueraded-hosts')dnl
MASQUERADE_DOMAIN(`pursued-with.net')dnl
Nothing I do seems to make any difference, which is what's really
strange.  I've tested, and the sendmail.cf file does get updated and 
the
daemon restarted when using the make all install restart format, for
what that's worth.  I can post any other needed info, just ask.  Thanks
for any assistance.

KeS

From: [EMAIL PROTECTED] (Per Hedeland)
Subject: Re: Another stupid masquerading question...
Date: Thu, 8 Aug 2002 00:32:22 + (UTC)
Newsgroups: comp.mail.sendmail
Message-ID: [EMAIL PROTECTED]
In article [EMAIL PROTECTED] Kevin 
Stevens
[EMAIL PROTECTED] writes:
a)  I don't particularly want to display my internal host names all 
over
the world (although apparently I don't mind doing it on Usenet - 
eek!).
Why do you care, especially if the name can't be found in DNS - are 
you
ashamed of it or something?:-)

b)  With this configuration, other SMTP hosts can't authenticate my 
mail
server, since that hostname isn't published/resolvable in the outside
world.  As below:
As Neil points out, this site violates the RFCs, and it's unusual.
However the RFCs also say that you should give the official name of
the host in the HELO argument (or a dotted quad if the host doesn't 
have
an official name), and an official name must be in DNS, so it's
reasonable to fix this.

The simplest way to do it is to define confDOMAIN_NAME in the .mc 
file,
see cf/README. What to set it to in a case like yours is perhaps not
obvious, to be as correct as possible it should be a name that
resolves to the IP address that remote servers are seeing when you
connect, as well as the name that that IP address reverse-resolves to.
If you can't meet both of those requirements for some reason (you 
should
be able to), it's probably best to go for the former. And be sure to
never set the same confDOMAIN_NAME on two different servers (whereas
using the same MASQUERADE_AS on multiple servers can be perfectly OK).

--Per Hedeland
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How do I change the envelope from address in sendmail

2003-06-14 Thread Shantanu Mahajan
google masquerade+sendmail

Regards,
Shantanu


+-- Bill Moran [freebsd] [13-06-03 20:33 -0400]:
| I'm having a hell of a time with send-pr.
| 
| Sendmail on my system insists on using the entire hostname in the from part 
| of the
| smtp communication: i.e. [EMAIL PROTECTED]  This is a 
| problem
| because this particular machine doesn't have a real DNS name, so the 
| FreeBSD mail
| servers bounce the email.
| 
| I've tried creating a local-host-names file in /etc/mail according to some 
| Linux
| howtos I found, but it doesn't seem to be helping.  What's the proper way to
| get sendmail to use [EMAIL PROTECTED] instead of [EMAIL PROTECTED]
| 
| TIA
| -- 
| Bill Moran
| Potential Technologies
| http://www.potentialtech.com
| 
| 
| --
| 
| ___
| [EMAIL PROTECTED] mailing list
| http://lists.freebsd.org/mailman/listinfo/freebsd-questions
| To unsubscribe, send any mail to [EMAIL PROTECTED]
| 
| End of freebsd-questions Digest, Vol 12, Issue 21
| *

-- 
man hier will explain the way FreeBSD filesystems are normally laid out.
-- David Scheidt [EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How do I change the envelope from address in sendmail

2003-06-14 Thread Bill Moran
Thanks to all who helped.

The answer was in the handbook (I should have thought to try there first)
For the archives, this is the section that solved it for me:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/smtp-dialup.html
Although I still don't _understand_ what that does ...

Jonathan Chen wrote:
On Fri, Jun 13, 2003 at 09:18:15PM -0400, Bill Moran wrote:

Jonathan Chen wrote:

On Fri, Jun 13, 2003 at 08:33:07PM -0400, Bill Moran wrote:

[...]


howtos I found, but it doesn't seem to be helping.  What's the proper way 
to
get sendmail to use [EMAIL PROTECTED] instead of [EMAIL PROTECTED]


You have to add the following into your /etc/mail/`hostname`.mc file.

  MASQUERADE_AS(domain.com)
  FEATURE(`masquerade_envelope')
Thanks, but this hasn't helped.  Any suggestions on what I could be doing
wrong?
I added the two lines above to my .mc file and did a 'make; make restart' in
the /etc/mail directory.  The results are the same.  My .mc file is stock
otherwise except I've defined a SMART_HOST.


Did you do a make install to install the results of your mc file to
sendmail.cf? About the only other thing I can suggest do to add a:
define(`confDOMAIN_NAME', `domain.com')dnl

That should tell sendmail to negotiate as domain.com instead of
machine.domain.com.
Cheers.


--
Bill Moran
Potential Technologies
http://www.potentialtech.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How do I change the envelope from address in sendmail

2003-06-14 Thread Chuck Swiger
Bill Moran wrote:
[ ... ]
I've tried creating a local-host-names file in /etc/mail according to 
some Linux howtos I found, but it doesn't seem to be helping.
Right.  This change won't help solve the problem you asked about.

 What's the proper way to get sendmail to use [EMAIL PROTECTED]
 instead of [EMAIL PROTECTED]
Someone else already provided references to MASQUERADE_AS(), but if you can't 
get that working, you can forcibly set it by uncommenting the following line in 
/etc/mail/sendmail.cf:

# my official domain name
# ... define this only if sendmail cannot automatically determine your domain
#Dj$w.Foo.COM
...to:

Djdomain.com

[ Using an .mc file is the way to go if at all possible, but the above plus a 
make restart should do in a pinch. ]

--
-Chuck
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How do I change the envelope from address in sendmail

2003-06-13 Thread Jonathan Chen
On Fri, Jun 13, 2003 at 08:33:07PM -0400, Bill Moran wrote:

[...]
 howtos I found, but it doesn't seem to be helping.  What's the proper way to
 get sendmail to use [EMAIL PROTECTED] instead of [EMAIL PROTECTED]

You have to add the following into your /etc/mail/`hostname`.mc file.

MASQUERADE_AS(domain.com)
FEATURE(`masquerade_envelope')

Cheers.
-- 
Jonathan Chen [EMAIL PROTECTED]

We laugh in the face of danger, we drop icecubes down the vest of fear
 - Edmond Blackadder III
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How do I change the envelope from address in sendmail

2003-06-13 Thread Bill Moran
[sorry Jon, I'm trying to do 5 things at once and forgot to CC the list]

Jonathan Chen wrote:
On Fri, Jun 13, 2003 at 08:33:07PM -0400, Bill Moran wrote:

[...]

howtos I found, but it doesn't seem to be helping.  What's the proper way to
get sendmail to use [EMAIL PROTECTED] instead of [EMAIL PROTECTED]


You have to add the following into your /etc/mail/`hostname`.mc file.

MASQUERADE_AS(domain.com)
FEATURE(`masquerade_envelope')
Thanks, but this hasn't helped.  Any suggestions on what I could be doing
wrong?
I added the two lines above to my .mc file and did a 'make; make restart' in
the /etc/mail directory.  The results are the same.  My .mc file is stock
otherwise except I've defined a SMART_HOST.
Any ideas?

--
Bill Moran
Potential Technologies
http://www.potentialtech.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How do I change the envelope from address in sendmail

2003-06-13 Thread James Long
On Fri, Jun 13, 2003 at 09:22:37PM -0400, Bill Moran wrote:
  
  You have to add the following into your /etc/mail/`hostname`.mc file.
  
  MASQUERADE_AS(domain.com)
  FEATURE(`masquerade_envelope')
 
 Thanks, but this hasn't helped.  Any suggestions on what I could be doing
 wrong?

YMMV, but I find that this works if I put it in my `hostname`.submit.mc
file.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]