Am 23.03.2011 21:35, schrieb Jeroen van Aart: > Matthias Andree wrote: >> Yes - you seem to be misunderstanding how SMTP works. See RFC5321 [1] >> for an explanation; for delivery, it matters ONLY what's in the > > I don't misunderstand in as much that I just barely ever had the need to > use bcc. > >> RCPT TO:<[email protected]> >> >> commands, not what's in the DATA section. > > Yes I am aware of RFC5321. I assumed that since you add "cc:" and > "subject:" in the DATA section the same goes for a "bcc:" list.
You may be aware of it, but I don't believe you've got the full picture yet. The contents are not relevant for routing and delivery. Cc:/Bcc: headers are only looked at on initial injection through sendmail -i -t or thereabouts. The post service doesn't care what Cc: you write on your letters either, but only looks at the envelope. If I write "Amsterdam" on the envelope (RFC5321) and "Paris" on the letterhead inside (the DATA part, as specified by RFC5322), where does the letter go to? > Would I need to issue separate "rcpt to:" commands in the same session > to accomplish a bcc? If I try that then postfix does not remove the > bcc'ed addresses. Yes to the RCPT TO (and do mind the syntax, you'd got it wrong) -- and Postfix is not supposed to tamper witht the Bcc:, in fact, cleanup(8) is not consistently documented to eliminate Bcc: headers. > However, if I issue multiple "rcpt to:" commands AND then add an empty > "bcc:" header field after DATA. > > Am I correct into thinking this then is the correct procedure of sending > bcc emails using postfix? There are several ways - the safest and easiest is not to include the Bcc header at all (it is a crutch for setups that do not specify an envelope, as, for instance, sendmail -t -i or sendmail -t -oi), and just specifying the recipients-to-be-bcc'd in RCPT TO:<> commands. You don't need such a crutch if you're talking SMTP.
