Skip to content

Commit

Permalink
Security configuration options added
Browse files Browse the repository at this point in the history
  • Loading branch information
Webklex committed Jan 17, 2025
1 parent 916e273 commit cafda4f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
- Address parsing improved and extended to include more cases

### Added
- Security configuration options added
- Spoofing detection added #40

### Breaking changes
Expand Down
26 changes: 26 additions & 0 deletions src/config/imap.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,32 @@
*/
'default' => 'default',

/*
|--------------------------------------------------------------------------
| Security options
|--------------------------------------------------------------------------
|
| You can enable or disable certain security features here by setting them to true or false to enable or disable
| them.
| -detect_spoofing:
| Detect spoofing attempts by checking the message sender against the message headers.
| Default TRUE
| -detect_spoofing_exception:
| Throw an exception if a spoofing attempt is detected.
| Default FALSE
| -sanitize_filenames:
| Sanitize attachment filenames by removing any unwanted and potentially dangerous characters. This is not a
| 100% secure solution, but it should help to prevent some common attacks. Please sanitize the filenames
| again if you need a more secure solution.
| Default TRUE
|
*/
'security' => [
"detect_spoofing" => true,
"detect_spoofing_exception" => false,
"sanitize_filenames" => true,
],

/*
|--------------------------------------------------------------------------
| Available accounts
Expand Down

0 comments on commit cafda4f

Please sign in to comment.