Sendmail Masquerading headers

Sendmail Masquerading headers

Post by Brent Haa » Tue, 18 Apr 2000 04:00:00



I have setup sendmail to masquerade my email that I send out to my isp.
However, how do I make it change/add the default 'Reply-To' and/or 'From'
address in the header?  Because, the default is my hostname (that I gave my
computer) and my isp's domain.

Any help is greatly appreciated, because I haven't found any info on this.

Also, how do I keep sendmail from trying to use the outside network
(internet), when sending a local email message?  (I have it to demand dial
and this can be annoying and unnecessary)

--

Brent Haag
Kansas State University
**** remove NOSPAM if replying by email *****

 
 
 

Sendmail Masquerading headers

Post by ke.. » Wed, 19 Apr 2000 04:00:00


To have sendmail change the headers like that, you need to have support
for virtusertable in your sendmail.cf file. First, add:
FEATURE(`virtusertable')dnl
to your mc file.  Then, you've got to create your cf file:
m4 ../m4/cf.m4 file_name.mc > sendmail.cf
Then, create your virtusertable(usually /etc/mail/virtusertable).  The
syntax is:

After that, create the database(you must be in the same dir as the
file):
makemap hash virtusertable < virtusertable
and restart sendmail.

Another option would be to use masquerading.  With that approach, any
user sending e-mail from your machine would have the ISPs domain
attatched for their e-mail address. Basically, all you'd have to do
to do it this way is add:
MASQUERADE_AS(`domain.com')dnl
MASQUERADE_DOMAIN(`your_box_domain.com')dnl
FEATURE(`masquerade_entire_domain')dnl
FEATURE(`masquerade_envelope')dnl
to your mc file and create sendmail.cf as described above.

To have e-mail delivered locally on your box, your box needs to be
set to accept mail for the domain. Make sure you've got the domain
name in /etc/mail/sendmail.cw, assuming you have cw file support in
your cf file. If not, add
FEATURE(`use_cw_file')dnl
to your mc file and generate a new cf.

If you've got the sendmail source, check out the README file in the
CF directory, it goes through all the options available for an mc
file.

Kevin


> I have setup sendmail to masquerade my email that I send out to my isp.
> However, how do I make it change/add the default 'Reply-To' and/or 'From'
> address in the header?  Because, the default is my hostname (that I gave my
> computer) and my isp's domain.

> Any help is greatly appreciated, because I haven't found any info on this.

> Also, how do I keep sendmail from trying to use the outside network
> (internet), when sending a local email message?  (I have it to demand dial
> and this can be annoying and unnecessary)

> --

> Brent Haag
> Kansas State University
> **** remove NOSPAM if replying by email *****


 
 
 

1. Headers, Headers, whos got the Headers

:   - Does anybody have any idea how the headers are supposed to be arranged
:     and what their contents should be?
:
:   - Which ones go where, which versions should be used, which ones shouldn't
:     be used, where can they be found?
:
:   - Should the headers included with the GNU 2.2.2 release in
:     0.96cpl2inc.tar.Z be used as well as those included with the 0.97
:     kernel? (I wasn't using them)
:
: Any help that anybody could give would be appreciated.  And "No!" I don't plan
: on quitting my day job. :)

I think H.J. and Linus finally have the header problem solved.  Get
2.2.2d when it's released tomorrow and install it with the 0.97pl1
kernel source.  After that, everything should work fine (at least it
does on my system).

David
--
David Engel                        Optical Data Systems, Inc.

(214) 234-6400                     Richardson, TX  75081

2. Help with ATI SGRAM w/ 2MB

3. Sendmail screws From_ Headers

4. Need Divine help - TTY

5. sendmail: weird timezone syntax in Date: header

6. I'm lonely: icecast

7. sendmail mail header

8. CGI for Virtual Webservers

9. sendmail custom headers

10. smtpd/sendmail headers?

11. Sendmail: insert header?

12. Sendmail relay-headers question

13. Configuring sendmail with custom headers