Mail::DomainKeys man page on Alpinelinux

Man page or keyword search:  
man Server   18016 pages
apropos Keyword Search (all sections)
Output format
Alpinelinux logo
[printable version]

Mail::DomainKeys(3)   User Contributed Perl Documentation  Mail::DomainKeys(3)

NAME
       Mail::DomainKeys - A perl implementation of DomainKeys

CAVEAT
       THIS MODULE IS OFFICIALLY UNSUPPORTED.

       Please move on to DKIM like a responsible Internet user.	 I have.

       I will leave this module here on CPAN for a while, just in case someone
       has grown to depend on it.  It is apparent that DK will not be the way
       of the future. Thus, it is time to put this module to ground before it
       causes any further harm.

       Thanks for your support, Anthony

SYNOPSIS
       Mail::DomainKeys is a perl implementation of Yahoo's mail signature
       protocol.

       This library allows one to sign and verify signatures as per draft 03
       of the DomainKeys specification:

       http://www.ietf.org/internet-drafts/draft-delany-domainkeys-base-03.txt

   A Simple Example
       This example shows the simplest possible DomainKeys signature verifier.

	 require Mail::DomainKeys::Message;

	 # load a message from a filehandle glob
	 my $mail = load Mail::DomainKeys::Message(File => \*STDIN) or
	   die "unable to load message\n";

	 # check to make sure the sender has a fully qualified domain
	 $mail->senderdomain or
	   die "unable to verify message: no sender domain\n";

	 # check if the mail is signed by DomainKeys
	 $mail->signed or
	   die "no signature\n";

	 # check the signature
	 if ($mail->verify) {
	   print STDERR "signature valid\n";
	   exit 0;
	 }

	 # the signature was not valid
	 die "unable to verify signature\n";

       This example shows the simplest possible DomainKeys signer.

	 require Mail::DomainKeys::Message;
	 require Mail::DomainKeys::Key::Private;

	 # load the message, or die trying
	 my $mail = load Mail::DomainKeys::Message(File => \*STDIN) or
	   die "unable to load message";

	 # load the private key, or die trying
	 my $priv = load Mail::DomainKeys::Key::Private(File => "private.key") or
	   die "unable to load key";

	 # sign the message using the "simple" canonifier and selector "test"
	 $mail->sign(Method => "simple", Selector => "test", Private => $priv);

	 # print out the signature
	 print $mail->signature->as_string;

SEE ALSO
       Mail::DomainKeys::Message
       Mail::DomainKeys::Policy

COPYRIGHT
       Copyright (c) 2005, Anthony D. Urso. All rights reserved.

       This program is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

AVAILABILITY
       The latest version of Mail::DomainKeys will be available on CPAN and
       at:

       http://killa.net/infosec/Mail-DomainKeys/

POD ERRORS
       Hey! The above document had some coding errors, which are explained
       below:

       Around line 91:
	   '=item' outside of any '=over'

perl v5.18.2			  2007-03-03		   Mail::DomainKeys(3)
[top]

List of man pages available for Alpinelinux

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net