[Webcalendar] sign by gpg an email
Rob Janssen
r.janssen a t uw-werk.nl
Fri, 05 Mar 2004 18:32:41 +0100
Reimar Bauer schreef:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Rob Janssen wrote:
> | Reimar Bauer schreef:
> |
> |> Dear all,
> |>
> |> it would be fine if I could use a gpg key to sign automaticly all
> |> mails which are sent by the webcalendar. One key for all users of the
> |> calendar would be enough.
> |> If I like to implement this myself where do I have to start?
> |>
> |> regards
> |> Reimar
> |>
> |>
> | I think it would be simplest to write a script or perl program that can
> | send the message that appears
> | on standard input, like a "sendmail -t -oi" does.
> | This script will add the signature to the message, and will then
> pass it
> | on to sendmail -t -oi
> |
> | You can configure the location of the sendmail program when installing
> | webcal, and there you give the
> | name of your script instead of the real sendmail.
> |
> | Of course you will need to put it in some secure place and put the
> right
> | security settings on it, as anybody
> | who knows about this script and can run it, will be able to send mail
> | that appears to be signed by webcal.
> | (of course only users that can login to the system, may be not a
> problem
> | when it is only a webserver)
> |
> | Rob
> |
>
> Dear Rob,
>
> I have to use smtp. At the moment I don't know if I should add a small
> script on wcald or somewhere else.
>
> Reimar
In this case you could modify the smtplib.pm, or you could do it as I
described earlier but
instead of calling sendmail you would call the functions from the smtplib.pm
I don't know if you use Windows as a server, but when not it would be
simple (on todays
Linux distributions) to install sendmail to handle the outgoing mail and
contact another server
using SMTP to actually deliver it. Usually you only need to tell the
system that it is a leaf node
that sends all mail to a "smart host".
I use SuSE Linux, and there you need to fill in one or two screens and
it all works out of the
box.
Rob