Looking to hire Laravel developers? Try LaraJobs

laravel-mail-dkim maintained by one23

Description
Support DKIM in Laravel Mail
Last update
2026/03/23 15:24 (dev-master)
License
Downloads
28

Comments
comments powered by Disqus

DKIM support into Laravel Mail

Add DKIM support for Laravel MailServiceProvider

Install

Via Composer

$ composer require one23/laravel-mail-dkim

Replace default MailServiceProvider to \One23\LaravelMailDkim\Mail\MailDkimServiceProvider in config/app.php

...
'providers' => ServiceProvider::defaultProviders()
    ->replace([
        \Illuminate\Mail\MailServiceProvider::class => One23\LaravelMailDkim\Mail\MailDkimServiceProvider::class,
    ])
...

Publish configuration in Laravel

php artisan vendor:publish --provider="One23\LaravelMailDkim\Mail\MailDkimServiceProvider"

Configuration

Edit file .env

DKIM_ENABLE={bool}false
DKIM_DOMAIN={string}"..."
DKIM_SELECTOR={string}"default"
DKIM_PRIVATE_KEY={string}"..."
DKIM_PASSPHRASE={string}""
DKIM_ALGORITHM={string}"rsa-sha256"
DKIM_IDENTITY={string|null}null

Security

If you discover any security related issues, please email eugene@krivoruchko.info instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.