sendmail and re-writing addresses
- From: Will Parsons <oudeis@xxxxxxxxxxxxxxxx>
- Date: 27 May 2007 21:19:55 GMT
I am using ADSL to connect to the interet via my ISP. Using the default
sendmail configuration, I can send mail fine using sylpheed, but I would
like to be able to send mail using Emacs, or simply mail(1). This fails,
however, because the remote mail host rejects my mail on the grounds that
the domain "my.local.network" doesn't exist (which of course is true,
since "my.local.network" is a purely local domain unknown to the outside
world). After considerable googling, I've reached a partial solution,
by adding to the sendmail .mc config file:
FEATURE(genericstable, `hash -o -T<TMPF> /etc/mail/genericstable')
FEATURE(masquerade_entire_domain)
FEATURE(masquerade_envelope)
MASQUERADE_AS(`myisp.com')
MASQUERADE_DOMAIN(`my.local.network')
and creating /etc/mail/genericstable containing:
william myispname@xxxxxxxxx
(or
william@xxxxxxxxxxxxxxxx myispname@xxxxxxxxx
- I've tried both.)
This works, as far as now being able to actually get mail delivered,
but it still is lacking in that the mail shows up as being from
william@xxxxxxxxx rather than myispname@xxxxxxxxx
so I'm still missing something.
- Will
.
- Follow-Ups:
- Re: sendmail and re-writing addresses
- From: Per Hedeland
- Re: sendmail and re-writing addresses
- Prev by Date: Re: From a newbee: Time and sound?
- Next by Date: Re: sendmail and re-writing addresses
- Previous by thread: openssl-0.9.8e patch error
- Next by thread: Re: sendmail and re-writing addresses
- Index(es):