mail confusion

Derek Martin code at pizzashack.org
Sun Nov 6 18:49:42 UTC 2005


On Sun, Nov 06, 2005 at 12:05:11PM -0600, Robert Nichols wrote:
> For root, you can't get away with just eliminating "root" as an
> EXPOSED_USER in sendmail.mc and relying on MASQUERADE_DOMAIN because
> that will result in translating root at localhost.localdomain" to
> "root at some.real.host", which would be very wrong.

This is absolutely true, positively.  Except that for Jay's purposes,
it probably doesn't matter.  If he's only trying to send mail out to
himself, and will be careful not to use the address for any other
purpose (i.e. he doesn't intend to reply to the message) then it
doesn't really matter what the address is, so long as it is a "valid"
one (in this case, not localhost.localdomain, and probably something
that's resolvable, depending on his ISP).

Strictly speaking, to solve Jay's problem, all that is really required
is to make sendmail stop sending mail out as localhost.localdomain.  I
believe that the easiest solution to that problem *should* be to just
set LOCAL_DOMAIN to some reasonable value in the *.mc files, re-make
the config files, and restart sendmail.  Even masquerading really
shouldn't be necessary.  All that extra stuff I suggested before is
probably not all that helpful...  I must have had too much tequila
when I wrote it. ;-)  Sorry.

That said...

> You can use genericstable to translate root at localhost.localdomain
> to some other real address.  You'll want to uncomment the
> "FEATURE(`genericstable')" line in your sendmail.mc and include a
> line like the following in /etc/mail/genericstable:
> 
>   root at localhost.localdomain   somebody at some.real.domain.tld

This is good advice, and should work.  It's probably the Right
Thing(tm), barring registering one's own domain and getting it to
resolve properly.

-- 
Derek D. Martin
http://www.pizzashack.org/
GPG Key ID: 0x81CFE75D

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20051106/761fdbab/attachment-0002.bin 


More information about the users mailing list