1SSL encryption for remote servers with Websieve 2Method 1 3 4You can turn on SSL connections by setting the variables $useimapSSS=1 and $usesieveSSL=1 in websieve.conf. Also ensure you set the correct SSL'ized ports for $imapport and $sieveports. You may instead if you have more then one server enter the correct settings in hash %server_hosts in websieve.conf. 5This method uses the SSL option in the IMAP::Admin and IMAP::Sieve perl modules. 6You must also have Openssl, Net_SSLeay, and IO::Socket::SSL installed on your system. See the IMAP::Admin SSL section for more info. 7 8 9Method 2 10 11This is an example setup on using stunnel to encrypt websieve connections 12to remote imap/sieve servers using an ssl session. 13 14 15Imap server 16 17stunnel -d imaps -r localhost:imap 18stunnel -d sieves -r localhost:sieve 19 20Websieve client 21 22stunnel -c -d localimapport -r imapserver:imaps 23stunnel -c -d localsieveport -r imapserver:sieves 24 25Where "sieves" is a tcp port of your choice since there is no standard SSL'ized 26sieve port as far as I know. Just make sure it does'nt conflict with an existing port. 27 28You also have to make sure to point websieve.conf $sieveport->localsieveport and 29$imapport->localimapport. Those 2 ports are also arbitrary ports on the local machine of your choosing. Again make sure they don't conflict to anything else and also restrict them (tcp wrappers - host.deny, hosts.allow) to access from the localhost only. 30 31See the Stunnel docs for more info. 32 33You can find all the required modules in directory /websieve/ssl 34