From aleon at easysol.net Fri Sep 15 11:53:31 2017 From: aleon at easysol.net (Alejandro Leon) Date: Fri, 15 Sep 2017 15:53:31 +0000 Subject: [Pymilter] BCC not received in envrcpt Message-ID: Hello all! I'm using pymilter to process some mail and I did notice that I never get the email directions that comes in BCC in the emails that arrives to sendmail i'm expecting that this information comes in "def envrcpt(self, to, *str):" Is there a way that I can read the bcc in the milter? thanks, Alejandro Le?n | DMARC COMPASS? Technical Product Manager Main: +57 1- 7425570 Ext. 131 Movile: +57 300 - 2085509 aleon at easysol.net | www.easysol.net [Easy Solutions Named as a Strong Performer - Forrester Wave] [http://www.easysol.net/images/signature2015/twitter.jpg] [http://www.easysol.net/images/signature2015/linkedin.jpg] [http://www.easysol.net/images/signature2015/facebook.jpg] [http://www.easysol.net/images/signature2015/blog.jpg] This communication is for use by the intended recipient and contains information that may be privileged, confidential or copyrighted under applicable law. -------------- next part -------------- An HTML attachment was scrubbed... URL: From stuart at gathman.org Fri Sep 15 13:49:16 2017 From: stuart at gathman.org (Stuart D. Gathman) Date: Fri, 15 Sep 2017 13:49:16 -0400 (EDT) Subject: [Pymilter] BCC not received in envrcpt In-Reply-To: References: Message-ID: On Fri, 15 Sep 2017, Alejandro Leon wrote: > I'm using pymilter to process some mail and I did notice that I never get > the email directions that comes in BCC in the emails that arrives to sendmail > i'm expecting that this information comes in ?"def envrcpt(self, to, *str):" That's normally what happens (Works For Me?). To debug why it doesn't happen in your case, we'll need a lot more details about your setup. Note that envrcpt is called multiple times - once for each recipient. You might need to accumlate all the recipients in an array depending on what you are trying to do. > Is there a way that I can read the bcc in the milter? No. The whole point of Bcc is that it is *not* sent to the MTA. -- Stuart D. Gathman "Confutatis maledictis, flamis acribus addictis" - background song for a Microsoft sponsored "Where do you want to go from here?" commercial. From stuart at gathman.org Fri Sep 15 16:02:27 2017 From: stuart at gathman.org (Stuart D. Gathman) Date: Fri, 15 Sep 2017 16:02:27 -0400 (EDT) Subject: [Pymilter] BCC not received in envrcpt Message-ID: > Thanks for answer, but how does sendmail know to which recipient > deliver the message if the MTA doesn't send the BCC: They are listed in the SMTP envelope in RCPT TO, which if your milter is running on the machine receiving the email submission, would be reported to milter via calls to envcrpt. Your picture shows that the email in question is submitted to gmail.com, which I assume you do not have access to run milters on, and therefore you will never see the recipients listed in the Bcc. That is, indeed, the designed purpose of Bcc. -- Stuart D. Gathman "Confutatis maledictis, flamis acribus addictis" - background song for a Microsoft sponsored "Where do you want to go from here?" commercial.