Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Contact Us
Online Help
Domain Status
Man Pages

Virtual Servers

Topology Map

Server Agreement
Year 2038

USA Flag



Man Pages
Mail::OpenDKIM::Signer(3) User Contributed Perl Documentation Mail::OpenDKIM::Signer(3)

Mail::OpenDKIM::Signer - generates a DKIM signature for a message

  use Mail::DKIM::Signer;
  # create a signer object
  my $dkim = Mail::OpenDKIM::Signer->new(
        Algorithm => 'rsa-sha1',
        Method => 'relaxed',
        Domain => '',
        Selector => 'selector1',
        KeyFile => 'private.key',
  # read an email and pass it into the signer, one line at a time
  while(<STDIN>) {
        # remove local line terminators
        # use SMTP line terminators
  # what is the signature result?
  my $signature = $dkim->signature;
  print $signature->as_string;

Use this class to generate a signature for inclusion in the header of an email.
It provides enough of a subset of the functionaility of Mail::DKIM::Signer to allow use of the OpenDKIM library with simple drop-in replacements. Mail::OpenDKIM::Signer offloads the signing work to the OpenDKIM library, and is therefore far quicker.

Creates the signer.

Feed part of the message to the signer.

Call this when when you have finished feeding in the message to the signer.

Access the generated Mail::OpenDKIM::Signature object.

For further information, refer to

This module exports nothing.


This module does not yet implement all of the API of Mail::DKIM::Signer
The PRINT method is expensive. To increase performance we recommend that you minimise the number of calls to this function, perhaps by storing the message in a buffer before passing it to this function.

Nigel Horne, "<nigel at>"

Please report any bugs or feature requests to "bug-mail-opendkim at", or through the web interface at <>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

You can find documentation for this module with the perldoc command.
    perldoc Mail::OpenDKIM::Signer
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN

This code has been developed under sponsorship of MailerMailer LLC,

This module is Copyright 2011 Khera Communications, Inc. It is licensed under the same terms as Perl itself.
2017-08-17 perl v5.28.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.