[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vps-mail] mail to unknown user delivered to local mailbox
- Subject: Re: [vps-mail] mail to unknown user delivered to local mailbox
- From: Bennett Lanford <benlanford@xxxxxxxxx>
- Date: Fri, 2 Dec 2005 10:51:21 -0700
On 12/2/05, Scott Wiersdorf <scottw@xxxxxxxxxxxx> wrote:
>
>
> The only place you might be able to find the bcc user is in the
> maillog "to=root@xxxxxxxxxxxxxxx":
>
> Dec 2 16:35:45 thursday sm-mta[57003]: jB2GZBZq056947: to=
> root@xxxxxxxxxxxxxxx, \
> delay=00:00:16, xdelay=00:00:02, mailer=local, pri=30361,
> relay=local, dsn=2.0.0, stat=Sent
>
>
Reading this thread made me recall a possible way of providing the envelope
recipient to procmail. (I'm not sure if it will work--and I don't have time
to check it at the moment. I did a quick scan of the bat book and see
sections about macros not surviving queuing, etc. However, it is worth a
try, if you have the time).
You might try adding the following at the *bottom* of your sendmail mc file:
LOCAL_CONFIG
H?l?X-Rcpt-To: $u
(Note: the letter between the two question marks on the H line is a
lower-case l ("ell" ... L ...), which stands for "local")
I *think* it should insert a header in the incoming e-mail that looks
something like:
X-Rcpt-To: ben@xxxxxxxxxxx
where ben@xxxxxxxxxxx was specified during the SMTP conversation with the
command:
RCPT TO:<ben@xxxxxxxxxxx>
I haven't had time to
1. determine if this works at all
2. see how it behaves for e-mails delivered to multiple local recipients
(where the SMTP conversation is something like):
=============================
ehlo aol.com
mail from:<frodo@xxxxxxx>
rcpt to:<ben@xxxxxxxxxxx>
rcpt to:<scott@xxxxxxxxxxx>
rcpt to:<martin@xxxxxxxxxxx>
rcpt to:<alvin@xxxxxxxxxxx>
rcpt to:<godwin@xxxxxxxxxxx>
data
From: Good Guy <yourfriend@xxxxxxxxxxx>
To: info@xxxxxxxxxxx
Subject: How are you today
I gotcha, you sucker!
Bye
Good Guy
=================================
If someone has time to send to multiple local recipients, then check each of
their mailboxen and see if each recipient has his/her own
X-Rcpt-To: [me]@example.com
(where [me] is the person named in the RCPT TO command),
then you *might* be able to test for the X-Rcpt-To: header in procmailrc.
Sorry I don't have time to try this out completely. I hope it doesn't end up
being a wild goose chase.
Ben
(P.S. Even if this doesn't work perfectly, it might give someone else an
idea. I might have more time over the weekend to try this further.)
--
Bennett Lanford <benlanford@xxxxxxxxx>
There are 10 kinds of people: those that understand binary and those that
don't.
Main Index |
Thread Index