Hi Tim,
the following should do the trick, if you are running a single email domain on your sendmail server
I'm assuming you're comfortable with managing sendmail via the M4 file - since it works differently than normal config files;
First of all ensure, that the root is not an "EXPOSED_USER", i.e. if you have a line like
EXPOSED_USER(`root')dnl
make sure it is commented out, like for example dnl EXPOSED_USER(`root')dnl
and then you can force the sender domain for that server:
dnl # The following example makes mail from this host and any additional dnl # specified domains appear to be sent from mydomain.com dnl # MASQUERADE_AS(`domain.com')dnl dnl # dnl # masquerade not just the headers, but the envelope as well dnl # FEATURE(masquerade_envelope)dnl dnl #
HTH
...Niels
timmy wrote:
Single; theoretically none, though, I suppose. I'm not using the box to host anything, it's just a file server, but sendmail is running so I can get cron reports and such.
tim
On Fri, 19 Nov 2004 23:58:48 -0700, Niels Voll wrote:
>are you running a single domain or multiple domains on that sendmail server?
>...Niels
>
>
>timmy wrote:
>
>> Does anyone know how to change the envelope sender address in sendmail?
>>
>> i.e, when the system sends an email to root, or whoever is setup to
>> receive the system messages, the sender address is as such:
>>
>> [EMAIL PROTECTED]
>>
>> This causes a problem, as most of the time, 'host.domain.com' might
>> not be a valid dns host, so basic sendmail checking would bounce the
>> message back stating:
>>
>> <snip>
>>
>> Action: failed
>> Status: 5.1.8
>> Diagnostic-Code: SMTP; 553 5.1.8 <[EMAIL PROTECTED]>... Domain of
>> sender address [EMAIL PROTECTED] does not exist
>> Last-Attempt-Date: Fri, 19 Nov 2004 18:15:12 -0700
>>
>> </snip>
>>
>> I'd need the email to come from [EMAIL PROTECTED], or just take the easy
>> way out and add a dns record for 'host.domain.com'. I'd prefer the
>> former, as I don't have easy access to the dns configuration.
>>
>> TIA
>>
>> tim
>>
>>
>
_______________________________________________ clug-talk mailing list [EMAIL PROTECTED] http://clug.ca/mailman/listinfo/clug-talk_clug.ca Mailing List Guidelines (http://clug.ca/ml_guidelines.php) **Please remove these lines when replying

