sendmail masquerade

sendmail masquerade

Post by dfo » Fri, 25 Aug 1995 04:00:00

As you can see from my .signature, I used to post as

system -- but which later in life learned how to send mail directly
to the internet as

For a while, the two names worked cooperatively rather well - I was for UUCP (mainly for CNews news batching via UUCP) and when directly connected to the net.

At the time, I was using smail, rather than sendmail, and I had a smart
host that did the routing for me when I batched up mail to send via
UUCP every so often.

Recently, however, I lost the whole boot sector + perhaps part of
the beginning of my root filesystem :(, and the upshot of that is I
had to reinstall from scratch. I used a December 1994 vintage Infomagic
(slackware distribution) as the source.

As of now, mail to/from the Internet to gets
processed just fine with sendmail. The domain
seems to have disappeared, though. Mail to (due
to the MX records) gets here all right, but is sent directly to

his trouble.

Even though I entitled this post "sendmail masquerading", I don't
think that it's a sendmail issue. The closest thing in sendmail
I could find so far is the masquerade (DN), but according to another
post, I can only masquerade as one domain at a time, which is not
what I want to do.

In the past, I believe I had listed in /etc/hosts

# For loopbacking.       localhost  belvdere
# End of hosts.

However, with this addition, mail still will bounce. is valid, insofar as I can telnet etc that site - but
mail doesn't work yet.

Any ideas? I still have periodic mail coming into,
so I'd like to figure out how to fix this pretty quickly.

David E. Fox                               Thanks for lettimg me



sendmail masquerade

Post by dfo » Thu, 31 Aug 1995 04:00:00

: As you can see from my .signature, I used to post as

: system -- but which later in life learned how to send mail directly
: to the internet as

I think I found the solution in another somewhat unrelated post
in the c.o.l.networking newsgroup:

Essentially if I do:

Cwlocalhost belvdere

in /etc/, and then reset sendmail (kill & restart it)
being able to get mail that's still coming to
should work. I'm testing it now. If a kind person will send
a test message to both addresses in the .signature file, it
would be appreciated.


1. sendmail Masquerade

I'm having some trouble getting sendmail masquerading to work.

I've got a Linux box connected to an ISP using dynamically-allocated
IP numbers.  With pppd this seems to work very well.  Incoming email
gets downloaded with popclient; outgoing is sent with sendmail.

The problem: My ISP is; my Linux box is named 'harry'.  All

is not a valid domain, nor is it likely to become one.  Outgoing
email really needs to be from

I thought I had this solved when I read about sendmail masquerading.
I created an m4 file with the following entries:


...and created a new config file.  But outgoing email still claims
to be from

I get the feeling I've missed some obvious detail here.  Can this
be done with sendmail?  And if not, what should I be using for
outgoing email?


  "Usenet is like a tar pit except it's filled with Hershey's syrup...
 I still haven't decided if it's chocolate or strawberry-banana." -Kibo
-> Fractal Kit: <-

2. Arno's Iptables script - multiple internal i/fs?

3. sendmail masquerade

4. Filename completion in csh

5. Sendmail masquerade questions

6. Business Proposal

7. Sendmail Masquerading headers

8. How to Creat fonts.dir from pfa/pfb/afm files

9. Sendmail Masquerading Problems

10. Sendmail Masquerading (Error 553)

11. Sendmail masquerading

12. Sendmail masquerading _sometimes_ with dynamic IP