|
29 | 29 | "port" => app_env("SMTP_PORT"), |
30 | 30 | "tls" => app_env("SMTP_TLS"), |
31 | 31 | "ssl" => app_env("SMTP_SSL"), |
32 | | - "timeout" => app_env("SMTP_TIMEOUT") |
| 32 | + "timeout" => app_env("SMTP_TIMEOUT"), |
| 33 | + |
| 34 | + /** |
| 35 | + * DKIM (DomainKeys Identified Mail) allows an organization to take |
| 36 | + * responsibility for a message by signing it. It allows the receiver |
| 37 | + * to verify that the message was not modified in transit. |
| 38 | + */ |
| 39 | + 'dkim' => [ |
| 40 | + 'enabled' => app_env('MAIL_DKIM_ENABLED', false), |
| 41 | + 'domain' => app_env('MAIL_DKIM_DOMAIN'), |
| 42 | + 'selector' => app_env('MAIL_DKIM_SELECTOR', 'default'), |
| 43 | + 'private_key' => app_env('MAIL_DKIM_PRIVATE_KEY'), |
| 44 | + 'passphrase' => app_env('MAIL_DKIM_PASSPHRASE'), |
| 45 | + 'identity' => app_env('MAIL_DKIM_IDENTITY'), |
| 46 | + 'algo' => 'rsa-sha256', |
| 47 | + ], |
| 48 | + |
| 49 | + /** |
| 50 | + * SPF (Sender Policy Framework) is an email authentication method designed |
| 51 | + * to prevent email spoofing by allowing domain owners to specify which |
| 52 | + * mail servers are authorized to send mail for their domains. |
| 53 | + */ |
| 54 | + 'spf' => [ |
| 55 | + 'enabled' => app_env('MAIL_SPF_ENABLED', false), |
| 56 | + 'strict' => app_env('MAIL_SPF_STRICT', true), |
| 57 | + 'policies' => [ |
| 58 | + 'fail' => 'reject', // reject, mark, accept |
| 59 | + 'softfail' => 'mark', |
| 60 | + 'neutral' => 'accept', |
| 61 | + ], |
| 62 | + ], |
33 | 63 | ], |
34 | 64 |
|
35 | 65 | /** |
|
51 | 81 | */ |
52 | 82 | "mail" => [ |
53 | 83 | "default" => "contact", |
54 | | - "froms" => [ |
| 84 | + "from" => [ |
55 | 85 | "contact" => [ |
56 | 86 | "address" => app_env("MAIL_FROM_EMAIL"), |
57 | 87 | "name" => app_env("MAIL_FROM_NAME") |
|
0 commit comments