procmail
[Top] [All Lists]

RE: BCC

2000-10-05 02:26:30
I understand that.  But let's look at the following situation.  I have an
email that I'm sending to joeblow(_at_)yahoo(_dot_)com and I want to send a bcc 
to
bob(_at_)somedomain(_dot_)com(_dot_)  Now somedomain.com uses procmail to 
forward email.
Below would be an example of the RC file for procmail:

#Forward Bob's email
:0
* ^TO_bob(_at_)somedomain(_dot_)com
! bob(_at_)hotmail(_dot_)com

#Defalt Delivery to Joey
:0
! joey(_at_)aol(_dot_)com

Now assuming the above mentioned situation, that email would get sent to
joeblow(_at_)yahoo(_dot_)com and theoretically, according to the procmail man 
pages, to
bob(_at_)hotmail(_dot_)com(_dot_)  However, I have yet to get it to work like 
that.  I would
always go to joey(_at_)aol(_dot_)com, the "catch-all" address.  The verbose log 
would
say:

procmail: No match on
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):
(.*[^-a-zA-Z0-9_.])?)bob(_at_)somedomain(_dot_)com"
procmail: Assigning "LASTFOLDER=/usr/sbin/sendmail -oi joey(_at_)aol(_dot_)com"
From jasonc(_at_)webpipe(_dot_)net  Wed Oct  4 19:02:06 2000
 Subject: test
  Folder: /usr/sbin/sendmail -oi joey(_at_)aol(_dot_)com
procmail: Notified comsat: "someuser@:/usr/sbin/sendmail -oi 
joey(_at_)aol(_dot_)com"
procmail: Executing "/usr/sbin/sendmail,-oi,joey(_at_)aol(_dot_)com"

I hope that better illustrates what I've been trying to explain.

Thanks for all the input thus far.

Jason

That really stinks then. I've noticed that neither Imail, Hotmail,
AOL, nor YahooMail add the headers necessary for procmail to
process BCCs. That's a rather large chunk of the Internet Mail
population. Anyone know of another work-around other than just not
using procmail?

Jason

Jason, I think you are going about this the wrong way. The BCC header was
supposed to be "blind"--it would only stink if it were visible after all. :)
Typically, your MTA will receive the BCC header, of course, but subsequently
delete it upon delivery, as well it should.

If you send a message to yourself, and BCC to yourself as well, a deeper,
underlying "problem" occurs, which is that sendmail recognizes that the two
destination addresses are the same final addresses, and sendmail eliminates
duplicate recipients. Which means your BCC gets "lost" on MTA level already,
prior to procmail even dealing with it. And I say "problem" and "lost"
between quotation marks, because this is a documented, and correct sendmail
behavior.

- Mark

        System Administrator Asarian-host.org


_______________________________________________________
Site Design, Hosting, and E-Commerce at www.webpipe.net

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>