On Wed, 2003-10-01 at 08:25, Joe Emenaker wrote: > Here's an odd one. > > I'm using the Amavis virus scanner middle-ware (acts as an adaptor > between various MTA's and various virus scanner apps). It has an option > to have it notify the recipient of a message when it finds a virus and > quarantines it (ie. "The mail server has detected a virus in an email > addressed to you and has dealt with it...."). > > The problem comes when the virus-infected email has a bogus "To;" > address in it, as sometimes happens. What I'm seeing is that, as the > mail admin, I'm getting a bunch of bounces telling me that > "[EMAIL PROTECTED]" can't be resolved when trying > to deliver the virus quarantine notification. > > Does anybody already have a slick way of preventing this? > > The only thing I can think of is to somehow feed Amavis the > "Envelope-To"... the address that appears in the "RCPT TO" line in the > SMTP delivery.
See dot-courier man page. I think that the RECIPIENT env var is available to amavis if you run it from a .courier or .mailfilter > > Which brings me to that part. Sometimes, I'll find out that I'm still on > some old mailing list from one of my old email addresses. I want to > unsubscribe, but I need to put the right "From" address in the > unsubscribe message. I don't *know* what my subscribed address is > because the "To:" line in all of the mailing list traffic says something > like "Mailing List Recipients" or whatever. The way I was able to solve > this with my old MTA (Exim) was to turn on a feature that had it add a > "Envelope-To:" header field which, as I mentioned above, contained the > address that was specified on the "RCPT TO" line in the SMTP delivery. > > Is there a way to get Courier to give me the same kind of header line? > Don't know if it's a built-in. You can add it with running "reformail -a "Envelope-To: $RECIPIENT" ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
