Skip to content

Commit cafda4f

Browse files
committed
Security configuration options added
1 parent 916e273 commit cafda4f

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
1010
- Address parsing improved and extended to include more cases
1111

1212
### Added
13+
- Security configuration options added
1314
- Spoofing detection added #40
1415

1516
### Breaking changes

src/config/imap.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,32 @@
3535
*/
3636
'default' => 'default',
3737

38+
/*
39+
|--------------------------------------------------------------------------
40+
| Security options
41+
|--------------------------------------------------------------------------
42+
|
43+
| You can enable or disable certain security features here by setting them to true or false to enable or disable
44+
| them.
45+
| -detect_spoofing:
46+
| Detect spoofing attempts by checking the message sender against the message headers.
47+
| Default TRUE
48+
| -detect_spoofing_exception:
49+
| Throw an exception if a spoofing attempt is detected.
50+
| Default FALSE
51+
| -sanitize_filenames:
52+
| Sanitize attachment filenames by removing any unwanted and potentially dangerous characters. This is not a
53+
| 100% secure solution, but it should help to prevent some common attacks. Please sanitize the filenames
54+
| again if you need a more secure solution.
55+
| Default TRUE
56+
|
57+
*/
58+
'security' => [
59+
"detect_spoofing" => true,
60+
"detect_spoofing_exception" => false,
61+
"sanitize_filenames" => true,
62+
],
63+
3864
/*
3965
|--------------------------------------------------------------------------
4066
| Available accounts

0 commit comments

Comments
 (0)