Thanks for posting this follow-up, Chris.
Your method of using aliases to combat spam seems like a good one to
me.  Now I just need to get off my duff and set up my own mail server...
:-)

--Jeremy

On Thu, 2003-08-21 at 09:45, Chris Merrill wrote:
> I got an answer to this question on the Postfix mailing
> list, so I thought I'd repeat it here:
> 
> Starting somewhere in the 2.0 tree, Postfix adds the information
> I needed (the address that a message was destined for, prior
> to being 'de-aliased') is now contained in two places:
> - a header is added to the message "X-Original-To" that contains
>    the original address
> - the original address is included in the mail log entry when the
>    message is received: "orig_to=<[EMAIL PROTECTED]>"
> 
> Chris
> 
> Chris Merrill wrote:
> > A little background:
> > I'm using the postfix aliases file as a sort of "whitelist" filter for
> > spam.  All the aliases refer to a username that I have never given out.
> > It's sorta the 'master' destination for my e-mail.
> > Key to this scheme is that when I get spam, I look to see which address
> > it came to and delete the alias.  Future messages to that address get
> > bounced.
> > 
> > Of course, many spammers don't address the "To:" field correctly, so I was
> > relying on the "Delivered-To:" field that is apparently added by Postfix.
> > However, it seems to report the address _after_ it's been resolved against
> > the alias file.  Even in the log file, it reports the resolved address,
> > rather than the original address:
> > 
> > Aug  6 11:42:55 christophermerrill postfix/smtpd[9164]: connect from 
> > ms-smtp-02.southeast.rr.com[24.93.67.83]
> > Aug  6 11:42:55 christophermerrill postfix/smtpd[9164]: EE0DB73B78: 
> > client=ms-smtp-02.southeast.rr.com[24.93.67.83]
> > Aug  6 11:42:56 christophermerrill postfix/cleanup[9165]: EE0DB73B78: 
> > message-id=<[EMAIL PROTECTED]>
> > Aug  6 11:42:56 christophermerrill postfix/nqmgr[9101]: EE0DB73B78: 
> > from=<[EMAIL PROTECTED]>, size=981, nrcpt=1 (queue active)
> > Aug  6 11:42:56 christophermerrill postfix/smtpd[9164]: disconnect from 
> > ms-smtp-02.southeast.rr.com[24.93.67.83]
> > Aug  6 11:42:56 christophermerrill postfix/local[9169]: EE0DB73B78: 
> > to=<[EMAIL PROTECTED]>, relay=local, delay=1, status=sent 
> > (mailbox)
> > 
> > 
> > Does anyone know of a configuration setting to change this behavior?
> > Or any other way to figure out who a message was originally destined for?
> > 
> > TIA,
> > Chris
> > 
> 
> 
> -- 
> *********************************
> Chris Merrill
> [EMAIL PROTECTED]
> *********************************
-- 
/---------------------------------------------------------------------\
| Jeremy Portzer       [EMAIL PROTECTED]       trilug.org/~jeremy     |
| GPG Fingerprint: 712D 77C7 AB2D 2130 989F  E135 6F9F F7BC CC1A 7B92 |
\---------------------------------------------------------------------/

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ  : http://trilug.org/faq/
TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
TriLUG PGP Keyring         : http://trilug.org/~chrish/trilug.asc

Reply via email to