CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Email Certificate: Digitally Signing Emails
Pages: [1]

Author Topic: Email Certificate: Digitally Signing Emails  (Read 3952 times)

shayaknyc

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 0
Email Certificate: Digitally Signing Emails
December 04, 2008, 01:02:12 pm
Hi All,

I'm relatively new to this whole thing, and my knowledge of MySQL and PHP (let alone CiviCRM) is rudimentary, but very functional.

I tried searching for this, but I attribute my lack of success to the limitations of my knowledge of how some of these functions work.

I am interested in researching the possibility of digitally encrypting or digitally signing emails being sent out through CiviMail with a legitimate security certificate from my organization. Is this even possible? Is it something that's worth doing? Is there any gain to doing this?

Currently, I have the option of using sendmail or SMTP to send out emails. I currently use sendmail since it offers the greatest flexibility and doesn't trigger SPAM criteria on the SMTP server - which I'm looking to avoid regardless, and hoping that digitally signing the email would accomplish this.

Additionally, would it be possible to use multiple certificates which would differ from each user the email is being sent from?

Thank you!

Shaya K

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Email Certificate: Digitally Signing Emails
December 04, 2008, 01:56:26 pm

any specific reason you want your emails digitially signed etc

I suspect adding this feature will not be too hard. All emails are sent via one or two functions, so you will need to add code to those functions.

You'll need to store certificates in a secure place to sign them on a per user basis, and pick the right certificate as needed.

lobo
 
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Email Certificate: Digitally Signing Emails
December 04, 2008, 11:16:43 pm
Quote from: shayaknyc on December 04, 2008, 01:02:12 pm
I am interested in researching the possibility of digitally encrypting or digitally signing emails being sent out through CiviMail with a legitimate security certificate from my organization.

I don’t have much experience outside of GPG email signing, so all of the below covers that.

In GPG’s case: for signing you need the public key (which you distribute to keyservers) to mention the sender’s email address; for encryption, you need the ability to fetch the addressee’s public key.

Quote from: shayaknyc on December 04, 2008, 01:02:12 pm
Is this even possible?

If you manage to protect your organisation’s private key(s)/certificate(s), then yes.

Quote from: shayaknyc on December 04, 2008, 01:02:12 pm
Is it something that's worth doing? Is there any gain to doing this?

It depends on your use case. There are various benefits to signing. If your users are informed, they may appreciate this (or, in certain cases, require); if you believe you managed to secure your private key and make the users verify the signature, you can be sure the recipient is reading the words you sent (as any man-in-the-middle attack would invalidate the signature); in the future, if anyone accuses you of sending something you didn’t, you can also invalidate that claim (as no-one should be able to sign as you, and non-signed emails are so easy to forge that they can’t be sanely claimed as being sent by anyone in particular).

I assume the benefits of encryption are obvious. :)

Quote from: shayaknyc on December 04, 2008, 01:02:12 pm
I currently use sendmail since it […] doesn't trigger SPAM criteria on the SMTP server - which I'm looking to avoid regardless, and hoping that digitally signing the email would accomplish this.

In theory, signed emails should be treated as less likely to be spam (especially if the signature’s valid, but I doubt any spam filter would try to validate the signature, it’s a bit too time/power consuming for them). In my experience, though, this works only with probability-based filters that learn – and it works with them only if these filters are able to learn over time that they never got a spam email that was signed.

Of course, as with any anti-spam method, the moment it gets too popular spammers will start signing emails. :)

Quote from: shayaknyc on December 04, 2008, 01:02:12 pm
Additionally, would it be possible to use multiple certificates which would differ from each user the email is being sent from?

It depends on your implementation (you can always do the signing outside CiviCRM, for example on your SMTP gate…), but it should be possible.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

shayaknyc

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 0
Re: Email Certificate: Digitally Signing Emails
December 05, 2008, 06:45:21 am
As of now, it looks like I would only need to digitally sign emails from one user the email is appearing to be coming from. As far as being able to secure the private key, that should not be a problem.

How would anyone suggest I effectively implement digitally signing outgoing emails with the current configuration (sendmail)?


Thanks,
Shaya K

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Email Certificate: Digitally Signing Emails
December 08, 2008, 07:20:02 am
Quote from: shayaknyc on December 05, 2008, 06:45:21 am
How would anyone suggest I effectively implement digitally signing outgoing emails with the current configuration (sendmail)?

I haven’t tried it, but I’d start with wrapping sendmail in a script that takes the email, signs it and then passes the signed message to the (real) sendmail.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Email Certificate: Digitally Signing Emails

This forum was archived on 2017-11-26.