haraka / Haraka

A fast, highly extensible, and event driven SMTP server
https://haraka.github.io
MIT License
5.02k stars 662 forks source link

BCC #108

Closed Koded closed 12 years ago

Koded commented 12 years ago

I have just installed Haraka and intend to use it to receive incoming emails. The only change I have made is to use the test_queue plugin so that the emails are delivered to a test folder.

When I test it using to, cc and bcc fields from my email client, it receives the email into the queue fine, but there is no details of the BCC address.

I have read up a bit about SMTP and this is correct, it should strip the BCC header from the email.

But - I can't see a way of stopping this happening for use in my situation, i.e. I want to be able to see the original email, BCC header field included.

Any help would be appreciated.

baudehlo commented 12 years ago

Bcc isn't a header (though if it is, Haraka won't strip it). It just adds addresses to the envelope, which is part of the SMTP protocol.

If you put LOGPROTOCOL into config/loglevel you will see the addresses. They are available to plugins via the transaction object. See: http://haraka.github.com/manual/Transaction.html - the rcpt_to property.

Koded commented 12 years ago

Given that a go and works exactly as you say.

Many thanks for that!