Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion special rewriting of outgoing mail
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Per Hedeland  
View profile  
 More options Nov 5 2006, 3:32 pm
Newsgroups: comp.mail.sendmail
From: p...@hedeland.org (Per Hedeland)
Date: Sun, 5 Nov 2006 20:32:08 +0000 (UTC)
Local: Sun, Nov 5 2006 3:32 pm
Subject: Re: special rewriting of outgoing mail
In article <eik4mt$1up...@relay.tomsk.ru> Victor Sudakov

<v...@mpeks.no-spam-here.tomsk.su> writes:
>Per Hedeland wrote:

>> Yes, it can be done with a custom mailer definition of course - look at
>> e.g. how the esmtp mailer turns out in the .cf with and without
>> masquerade_envelope and/or allmasquerade (which adds header recipient),
>> and you can probably figure out how it should look to achieve what you
>> want.

>I am sorry but adding

>MASQUERADE_AS(`domain.com')
>FEATURE(masquerade_envelope)

>to the .mc file does not produce any changes in the mailer
>definitions. It only modifies the rulesets.

Yes, sorry, it's allmasquerade that changes the mailer definition. But
anyway, since you've now looked at the mailer definition, you'll have
found a reference to the EnvFromSMTP ruleset, which is the one
responsible for dealing with the envelope sender. And since it isn't
really masquerading you want to do, I'd suggest that you don't use that
feature but instead have the mailer definition call a ruleset of your
own instead of EnvFromSMTP. That ruleset just needs to throw away the
original address and insert your desired fixed one, and then call
EnvFromSMTP.

Something like this (untested):

LOCAL_RULESETS
SFixedEnvFrom
R$*                     $: sender < @ domain.com. >
R$*                     $: $>EnvFromSMTP $1

--Per Hedeland
p...@hedeland.org


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google