mailinabox icon indicating copy to clipboard operation
mailinabox copied to clipboard

[WIP] adding the enigma plugin to webmail setup script

Open cromulus opened this issue 9 years ago • 19 comments

tested on vagrant.

closes #892

cromulus avatar Dec 05 '16 21:12 cromulus

To get the plugin to work i had to install: pear install MailMime pear install Crypt_GPG

bstaeheli avatar Dec 09 '16 08:12 bstaeheli

Will add those.

My understanding is that the preferred mechanism for adding PHP libs is to install the package via apt.

On Dec 9, 2016 3:23 AM, "bstaeheli" [email protected] wrote:

To get the plugin to work i had to install: pear install MailMime pear install Crypt_GPG

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mail-in-a-box/mailinabox/pull/1030#issuecomment-265959270, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAMoYpWK3_1ayHT9xITEwrubZemT7DLks5rGQ_0gaJpZM4LEt8Z .

cromulus avatar Dec 11 '16 03:12 cromulus

Huh, seems like those packages are already installed via /setup/webmail.sh:25

What's the error you are getting?

cromulus avatar Dec 13 '16 14:12 cromulus

Seems that on trusty a to old version of php-crypt-gpg is installed. (1.3.2-1)

I got errors according this thread

I love your request and support it!

bstaeheli avatar Dec 14 '16 07:12 bstaeheli

I'm going to start a php7.0 branch, and see if that resolves the issue so that we can avoid using pear.

@JoshData: How do you feel about upgrading our php version to 7.0 (improves performance, memory usage, and security) using this ppa? https://launchpad.net/~ondrej/+archive/ubuntu/php

cromulus avatar Dec 18 '16 20:12 cromulus

Would really rather not....

JoshData avatar Dec 18 '16 20:12 JoshData

Current php version 5.5.9 no longer receives security updates: http://php.net/supported-versions.php

Any particular aversion to the upgrade? if not 7, then perhaps 5.6?

Barring that, would you suggest using pear to install the necessary libraries for smime support?

On Sun, Dec 18, 2016 at 3:15 PM, Joshua Tauberer [email protected] wrote:

Would really rather not....

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mail-in-a-box/mailinabox/pull/1030#issuecomment-267843593, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAMob_dg7EveuL1H8SFvRwJ06wvVMBvks5rJZRugaJpZM4LEt8Z .

cromulus avatar Dec 18 '16 23:12 cromulus

PHP is supported by Ubuntu until 14.04 reaches end-of-life, as far as I understand.

Any particular aversion to the upgrade?

Using a PPA introduces a new attack vector and may cause problems when updating existing boxes. Any move away from stock Ubuntu creates more work in maintenance.

JoshData avatar Dec 19 '16 02:12 JoshData

Barring that, would you suggest using pear to install the necessary libraries for smime support?

Forgot to answer this but it's pretty much the same answer.

JoshData avatar Dec 19 '16 02:12 JoshData

What about git cloning the libraries into the include path?

https://github.com/pear/Crypt_GPG https://github.com/pear/Mail_Mime

cromulus avatar Jan 20 '17 02:01 cromulus

I installed the packages manually from git. Enigma works fine and so does the 2FA plugin. Now if Roundcube would roll out S/MIME support and a way to force idle logouts. (=

I know that mailinabox isn't meant to be like the Open BSD of the mail stack world, but anyone doing this is probably at least partially motivated by security concerns.

sj660 avatar Mar 06 '17 21:03 sj660

We're on php7 now on master so we could give this another shot.

JoshData avatar Aug 06 '17 21:08 JoshData

👍

cromulus avatar Aug 06 '17 21:08 cromulus

What do we think about cloning the git repositories for the necessary libraries? Last time we went over this using pear was not an option.

Thoughts?

cromulus avatar Aug 06 '17 21:08 cromulus

Check if they're available in the php7 ppa?

JoshData avatar Aug 06 '17 22:08 JoshData

Will do.

cromulus avatar Aug 06 '17 22:08 cromulus

Counting in as the Enigma plug-in would be great as add on. Too bad that php7.0-mail-mime and php7.0-crypt-gpg aren't available at ondrej-php:trusty repo. Weird as they are available at upstream Ubuntu's repo (PHP5).

https://packages.ubuntu.com/trusty/php-crypt-gpg https://packages.ubuntu.com/trusty/php-mail-mime

Seems As ondrej is porting a selective number of features to PHP7.

xetorixik avatar Feb 18 '18 01:02 xetorixik

here, enigma install & runs , but some directory privilege seems off, so do chown et cetera. still breaks upon decipher here, can't find pkey. since its all server side, u gotta trust the guy whom you rent the VM from.

viogq avatar Sep 18 '19 18:09 viogq

HI folks! Amazing project. I can't believe how good this is. However, I noticed also I can't find the Enigma plugin on the downloadable / installable plugins in the "About' section of RCM. Is this issue still open or are there instructions for enabling the plug in? I had GPG working before on my shared cpanel thing (terribly hard to set up) so I was a bit surprised not to see it here by default. Thanks for any help

wayneoutthere avatar Jul 30 '20 13:07 wayneoutthere