Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
OpenXPKI::Server::NotiUsertContributed)OpenXPKI::Server::Notification::SMTP(3)

Name
       OpenXPKI::Server::Notification::SMTP - Notification via SMTP

Description
       This class implements a notifier	that sends out notification as plain
       plain text message using	Net::SMTP. The templates for the mails are
       read from the filesystem.

Configuration
	   backend:
	       class: OpenXPKI::Server::Notification::SMTP
	       host: localhost
	       port: 25
	       username: smtpuser
	       password: smtppass
	       debug: 0

	   default:
	       to: "[% cert_info.requestor_email %]"
	       from: no-reply@openxpki.org
	       reply: helpdesk@openxpki.org
	       cc: helpdesk@openxpki.org
	       prefix: PKI-Request [% meta_wf_id %]

	   template:
	       dir:   /home/pkiadm/ca-one/mails/

	   message:
	       csr_created:
		   default:
		       template: csr_created_user
		       subject:	CSR for	[% cert_subject	%]

		   raop:
		       template: csr_created_raop  # Suffix .txt is always added!
		       to: ra-officer@openxpki.org
		       reply: "[% cert_info.requestor_email %]"
		       subject:	New CSR	for [% cert_subject %]

       Calling the notifier with "MESSAGE=csr_created" will send out two
       mails.  One to the requestor and	one to the ra-officer, both are	CC'ed
       to helpdesk.

       Note: The settings To, Cc and Prefix are	stored in the workflow on the
       first message and reused	for each subsequent message on the same
       channel,	so you can gurantee that each message in a thread is sent to
       the same	people.	All settings from default can be overriden in the
       local definition. Defaults can be blanked using an empty	string.

   Sign	outgoing mails using SMIME
       Outgoing	emails can be signed using SMIME, add this section on the top

       level:

	   smime:
	       certificate_key_file: /usr/local/etc/openxpki/local/smime.key
	       certificate_file: /usr/local/etc/openxpki/local/smime.crt
	       certificate_key_password: secret

       Key and certificate must	be PEM encoded,	password can be	omitted	if the
       key is not encrypted. Key/cert can be provided by a PKCS12 file using
       certificate_p12_file (PKCS12 support requires Crypt::SMIME 0.17!).

Functions
   notify
       see @OpenXPKI::Server::Notification::Base

   _send_plain
       Send the	message	using Net::SMTP

   _send_html
       Send the	message	using MIME::Tools

perl v5.24.1			  2017-OpenXPKI::Server::Notification::SMTP(3)

Name | Description | Configuration | Functions

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=OpenXPKI::Server::Notification::SMTP&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help