Skip to content

Sign outgoing emails with DKIM in early Laravel 5 versions

License

Notifications You must be signed in to change notification settings

radicalloop/laravel5-dkim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

laravel5-dkim

Sign outgoing emails with DKIM in early Laravel 5 versions

Installation

  1. Install via Composer:
composer require radicalloop/laravel5-dkim
  1. In config/app.php, comment out original service provider from providers array:
// Illuminate\Mail\MailServiceProvider::class,
  1. In config/app.php, add following line to providers array:
RadicalLoop\LaravelDkim\DkimMailServiceProvider::class,
  1. Fill your settings in config/mail.php:
'dkim_should_sign' => env('MAIL_DKIM_SHOULD_SIGN'), // yes / no, if set to no, signing is skipped. Useful for conditional signing.
'dkim_selector' => env('MAIL_DKIM_SELECTOR'), // selector, required
'dkim_domain' => env('MAIL_DKIM_DOMAIN'), // domain, required
'dkim_private_key_path' => env('MAIL_DKIM_PRIVATE_KEY_PATH'), // path to private key, required
'dkim_identity' => env('MAIL_DKIM_IDENTITY'), // identity, optional
'dkim_algo' => env('MAIL_DKIM_ALGO'), // sign algorithm (defaults to rsa-sha256), optional
'dkim_passphrase' => env('MAIL_DKIM_PASSPHRASE'), // private key passphrase, optional

Note: It is advised to add the dkim private key file path to .gitignore so as to keep it private to server.

TODO

  • tests

About

Sign outgoing emails with DKIM in early Laravel 5 versions

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages