HOWTO:caff einrichten

Aus Fachschaft_Informatik
Version vom 23. November 2012, 22:02 Uhr von T (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „dieses howto erklärt, wie man caff mit dem informatik-mailhost benutzen kann. === installation und systemweite konfiguration === installiere dir caff und ssmtp:…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen
Die druckbare Version wird nicht mehr unterstützt und kann Darstellungsfehler aufweisen. Bitte aktualisiere deine Browser-Lesezeichen und verwende stattdessen die Standard-Druckfunktion des Browsers.

dieses howto erklärt, wie man caff mit dem informatik-mailhost benutzen kann.

installation und systemweite konfiguration

installiere dir caff und ssmtp:

# apt-get install signing-party  ssmtp

editiere die /etc/ssmtp/ssmtp.conf:

 mailhub=localhost:2525
 rewriteDomain=informatik.uni-hamburg.de

user-spezifische konfiguration

für alles weitere brauchst du keine root-rechte mehr. editiere die ~/.caffrc:

 $CONFIG{'owner'} = '$NAME';
 $CONFIG{'email'} = '$UID@informatik.uni-hamburg.de';
 $CONFIG{'bcc'} = '$UID@informatik.uni-hamburg.de';
 $CONFIG{'keyid'} = [ qw{$LANGEKEYID} ];
 # You can get your long keyid from
 #   gpg --with-colons --list-key <yourkeyid|name|emailaddress..>
 # if you have more than one key:
 #   $CONFIG{'keyid'} = [ qw{0123456789ABCDEF 89ABCDEF76543210} ];
 $CONFIG{'also-encrypt-to'} = [ qw{$LANGEKEYID} ];
 # Mail template to use for the encrypted part
 #$CONFIG{'mail-template'} = << 'EOM';
 #Hi,
 #
 #please find attached the user id{(scalar @uids >= 2 ? 's' : )}
 #{foreach $uid (@uids) {
 #    $OUT .= "\t".$uid."\n";
 #};}of your key {$key} signed by me.
 #
 #If you have multiple user ids, I sent the signature for each user id
 #separately to that user id's associated email address. You can import
 #the signatures by running each through `gpg --import`.
 #
 #Note that I did not upload your key to any keyservers. If you want this
 #new signature to be available to others, please upload it yourself.
 #With GnuPG this can be done using
 #	gpg --keyserver subkeys.pgp.net --send-key {$key}
 #
 #If you have any questions, don't hesitate to ask.
 #
 #Regards,
 #{$owner}
 #EOM

benutzung

nun sollte alles fertig konfiguriert sein. zum signieren musst du dann zunächst port 2525 per ssh auf 25 auf dem mailhost weiterleiten:

 $ ssh -L 2525:mailhost:25 6weber@ikum -N

dann kannst du caff benutzen:

 $ caff $KEYID