The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Mail::OpenDKIM::Signature - maintains a DKIM signature for a message

SYNOPSIS

  use Mail::DKIM::Signature;

  # create a signature object
  my $sig = Mail::OpenDKIM::Signature->new(
  	Algorithm => 'rsa-sha1',
	Method => 'relaxed',
	Domain => 'example.org',
	Selector => 'selector1',
	KeyFile => 'private.key',
  );

  # Generate a signature
  ...
  my $signature = ...
  # Store the signature

  $sig->data($signature)

  # Emit the email header line
  print $sig->as_string() . "\r\n";

DESCRIPTION

Mail::OpenDKIM::Signature maintains a signature header for an email.

It provides enough of a subset of the functionaility of Mail::DKIM::Signature to allow use of the OpenDKIM library with Mail::OpenDKIM::Signer.

SUBROUTINES/METHODS

new

Create a new signature.

data

Get and set the signature.

as_string

Returns the signature in a form suitable for inclusion in an e-mail's header.

EXPORT

This module exports nothing.

SEE ALSO

Mail::DKIM::Signature

Mail::OpenDKIM::Signer

NOTES

This module does not yet implement all of the API of Mail::DKIM::Signature

AUTHOR

Nigel Horne, <nigel at mailermailer.com>

BUGS

Please report any bugs or feature requests to bug-mail-opendkim at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Mail-OpenDKIM. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Mail::OpenDKIM::Signature

You can also look for information at:

SPONSOR

This code has been developed under sponsorship of MailerMailer LLC, http://www.mailermailer.com/

COPYRIGHT AND LICENCE

This module is Copyright 2011 Khera Communications, Inc. It is licensed under the same terms as Perl itself.