Son Nguyen Kim
c14e01839e
Merge pull request #899 from simple-login/add-alias-to-to-header
...
add alias to To: header if it isn't included in To and Cc header
2022-04-20 09:10:11 +02:00
Son
01fd880902
add more test. Make sure to delete To header before changing.
2022-04-19 18:45:59 +02:00
Son Nguyen Kim
259851a04e
Merge pull request #860 from acasajus/remove-softfail
...
Generate secure transactional emails from address
2022-04-19 09:28:47 +02:00
Son
199ec09554
update bounce warning email to avoid having sender address in the email subject
2022-04-18 09:30:29 +02:00
Son
0565ca4d5e
add alias to To: header if it isn't included in To and Cc header
2022-04-15 17:01:27 +02:00
Adrià Casajús
4bcc728222
Merge remote-tracking branch 'origin/master' into remove-softfail
...
* origin/master: (34 commits)
fix flake8
add link to the anti phishing page
improve email wording
Move tests
Only send enum names
Only send enum name for events intead of the full class.enum
Also track login and register events from the api routes
typo
revert changes
Added fix for parts that are not messages
Add missing formatting place
Revert unwanted changes
Do not show an error if we receive an unsubscribe from a different address
Revert changes to pgp_utils
fix import
Send newrelic events on login and register
PR changes
format
Move dmarc management to its own file
ignore VERPTransactional
...
2022-04-14 18:25:03 +02:00
Adrià Casajús
ca93c8e603
Merge remote-tracking branch 'origin/master' into ac-dmarc-reply-phase
...
* origin/master:
Only send enum name for events intead of the full class.enum
Also track login and register events from the api routes
typo
revert changes
Added fix for parts that are not messages
Add missing formatting place
Revert unwanted changes
Do not show an error if we receive an unsubscribe from a different address
Revert changes to pgp_utils
Send newrelic events on login and register
2022-04-12 12:48:46 +02:00
Adrià Casajús
dbc55c50a2
Add missing formatting place
2022-04-11 14:51:33 +02:00
Adrià Casajús
7649f6b822
Do not show an error if we receive an unsubscribe from a different address
2022-04-11 14:19:32 +02:00
Adrià Casajús
7fdd7d7f6a
PR changes
2022-04-11 09:28:57 +02:00
Adrià Casajús
8df6d98522
Merge remote-tracking branch 'origin/master' into ac-dmarc-reply-phase
2022-04-08 11:34:12 +02:00
Adrià Casajús
68e58c0876
Move dmarc management to its own file
2022-04-08 11:28:14 +02:00
Son
42f89b71d7
ignore VERPTransactional
2022-04-08 11:10:54 +02:00
Adrià Casajús
b128d64563
Moved spamd check to a custom file and cached the result
2022-04-07 19:17:37 +02:00
Adrià Casajús
44c77439c1
PR comments
2022-04-06 17:44:05 +02:00
Adrià Casajús
33e83fc153
fix message
2022-04-06 17:37:55 +02:00
Adrià Casajús
0e3c46d944
Save original envelope for debugging
2022-04-06 17:31:46 +02:00
Adrià Casajús
8ca1be0166
Apply dmarc policy to the reply phase
2022-04-06 12:51:04 +02:00
Son
754bd4964c
Set CONTENT_TRANSFER_ENCODING if absent
2022-04-05 11:56:45 +02:00
Son
9aeceb9119
change logging for icloud bounce case
2022-04-05 11:52:43 +02:00
Son
c83bea6650
improve wording
2022-04-02 17:11:42 +07:00
Adrià Casajús
451e69a3c4
More rebase fixes
2022-03-30 16:09:17 +02:00
Adrià Casajús
dce9e633bf
fix
2022-03-30 16:02:05 +02:00
Adrià Casajús
db06ce0ae6
Create signed email addresses for VERP emails
2022-03-30 16:00:02 +02:00
Son
215561dec1
fix test
2022-03-30 20:54:42 +07:00
Son
1b5521efcf
use red color for warning
2022-03-30 19:48:07 +07:00
Son
67c2c6afad
add warning to email content when dmarc softfail
2022-03-30 19:48:07 +07:00
Adrià Casajús
83fc8964a8
PR comments
2022-03-30 09:53:35 +02:00
Adrià Casajús
ac9b88f87d
Add no header test
2022-03-29 15:59:35 +02:00
Adrià Casajús
085c166cb2
Replace 5XX with 2XX for return path that fail SPF check
2022-03-29 15:09:10 +02:00
Adrià Casajús
7d36256b7c
Check return-path spf record before bouncing a message
2022-03-29 10:52:11 +02:00
Son
b0023981af
change log
2022-03-25 18:28:31 +01:00
Son
4dbe22d856
do not put soft_fail email into quarantine for now
2022-03-25 18:04:53 +01:00
Son
0d7d56c0ea
send email when an email is put to quarantine
2022-03-25 18:02:17 +01:00
Son
159d30820e
change N/A to unknown to avoid confusion
2022-03-25 18:00:49 +01:00
Son
75da6d7027
fix
2022-03-25 16:49:49 +01:00
Son
334365e853
Merge branch 'master' into fix/dmarc
...
# Conflicts:
# email_handler.py
2022-03-25 16:24:12 +01:00
Son
17d9190309
log envelope mail_from and header_from when dmarc fail
2022-03-25 16:20:30 +01:00
Son
63b1100a8b
log event when there's no dmarc result
2022-03-25 16:19:11 +01:00
Adrià Casajús
e5fa90cf04
Rename newrelic dmarc event
2022-03-24 12:51:58 +01:00
Son
37de10e54c
fix dmarc_result can be None
2022-03-23 08:34:25 +01:00
Son
cb92f1efea
log when an email fails dmarc
2022-03-22 18:54:45 +01:00
Adrià Casajús
517bcb632e
MR changes
2022-03-22 17:02:59 +01:00
Adrià Casajús
93b06fe30c
Keep original From
2022-03-21 19:05:15 +01:00
Adrià Casajús
1b2d504b3b
Send a notification to the user when a message has been quarantined
2022-03-21 18:33:18 +01:00
Adrià Casajús
45459d65be
PR comments
2022-03-21 17:43:26 +01:00
Adrià Casajús
16275620ae
Also quarantine soft_fail dmarc results
2022-03-21 17:38:41 +01:00
Adrià Casajús
9930433d21
Use custom event
2022-03-21 12:14:51 +01:00
Adrià Casajús
06a1363e92
Updated MR comments
2022-03-21 12:03:11 +01:00
Adrià Casajús
44dd06fabf
Added spoofed email test
2022-03-21 10:43:18 +01:00
Son
7f4357a329
log headers
2022-03-16 10:25:28 +01:00
Son
cd693eda69
avoid backscatter issue when unauthorized emails are sent to reverse alias
2022-03-16 09:06:49 +01:00
Son
93009158a8
fix
2022-03-16 09:05:57 +01:00
Son
5127534a00
add more logging
2022-03-11 08:56:27 +01:00
Son
ed12e47077
reduce nb of commit
2022-03-10 08:33:26 +01:00
Son
fb00c18d5a
create a notification when an alias is disabled
2022-03-09 17:59:02 +01:00
Son
b6b917eba8
add more log
2022-03-08 18:35:18 +01:00
Son
b711743d6e
fix
2022-03-08 10:31:20 +01:00
Son
89218fab7f
fix "local variable 'alias_id' referenced before assignment"
2022-03-08 10:30:29 +01:00
Son
350f498b94
lessen alias automatic disable check
2022-03-07 15:50:58 +01:00
Son
99dc45e09a
refactor
2022-03-07 15:45:36 +01:00
Son
71136669e9
return the block reason in should_disable()
2022-03-07 15:44:27 +01:00
Son
6c8d4310e5
only set the X-SimpleLogin-Envelope-From header if user has this option enabled
2022-02-25 12:24:54 +01:00
Son Nguyen Kim
7d008228e3
Merge pull request #811 from cquintana92/feature/ignore-or-reject-for-blocked-contacts
...
Allow to configure ignore or reject response for blocked contacts
2022-02-21 15:55:48 +01:00
Carlos Quintana
ee9170bb17
Allow to configure ignore or reject response for blocked contacts
2022-02-21 12:52:21 +01:00
Adrià Casajús
33163660f7
PR comments
2022-02-21 12:30:26 +01:00
Adrià Casajús
b069f81920
Reply only once per user even if they send it from any mailbox
2022-02-17 14:33:04 +01:00
Adrià Casajús
1b525a55a5
Add debug message
2022-02-16 18:39:18 +01:00
Adrià Casajús
15ce7b00d8
Reply to noreply@... once per user
2022-02-16 18:38:31 +01:00
Son
78c14fa67e
create notification for bounce email during reply phase
2022-01-24 16:13:45 +01:00
Son
90fa4abf69
create a notification for a bounce email
2022-01-24 16:10:36 +01:00
Son
efdb0a60d3
no need to raise error if email processing takes more than 60s
2022-01-17 14:42:27 +01:00
Son
8ff3b5ef8e
ignore VERPForward error
2022-01-16 11:52:44 +01:00
Son
0e496518ba
handle case alias is deleted in handle_hotmail_complaint
2022-01-16 11:47:50 +01:00
Son
db24ed8739
remove unused import
2022-01-11 13:23:44 +01:00
Son
2a1ef7beec
notify user every time a reply can't be sent
2022-01-11 13:14:47 +01:00
Son
42a29eba90
remove \r or \n from headers before processing
2022-01-11 13:11:28 +01:00
Son
5e7ff7a694
fix logging
2022-01-11 12:29:42 +01:00
Son
9c696bd038
ignore VERPReply
2022-01-09 20:35:57 +01:00
Son
f855d27836
delete EmailLog if pgp issue
2022-01-08 16:59:32 +01:00
Son
c5e4dd6d16
save email for debug with error name as prefix
2022-01-08 16:58:23 +01:00
Son
4298fe73e6
use warning level
2022-01-08 00:43:49 +01:00
Son
862d0e7a11
warn users if SL is used with another forwarding service
2022-01-08 00:42:03 +01:00
Son
ed4acebdb1
delete the email log in reply phase if NonReverseAliasInReplyPhase
2022-01-08 00:28:26 +01:00
Son
b23f9fa971
delete email_log if CannotCreateContactForReverseAlias
2022-01-08 00:23:10 +01:00
Son
01ba5e8bf0
return 5** if CannotCreateContactForReverseAlias
2022-01-08 00:16:16 +01:00
Son
ed39d47e7a
log "Custom/nb_rcpt_tos" metric
2022-01-08 00:11:16 +01:00
Son
20b6ce29fc
take into account authorized_address when checking email loop
2022-01-08 00:09:45 +01:00
Son
d8627fea97
handle case when non reverse-alias is present in the reply phase
2022-01-07 17:53:06 +01:00
Son
2a1d735800
always ignore loop email
2022-01-07 16:22:35 +01:00
Son
fb87225d2d
raise error when receiving emails sent from reverse alias
2022-01-07 16:14:21 +01:00
Son
746dfae495
remove unused import
2022-01-07 15:47:54 +01:00
Son
d4e1aec875
refactor
2022-01-07 14:57:47 +01:00
Son
bf75f8e8ab
add more logging
2022-01-07 14:26:58 +01:00
Son
40b6fde2c3
log more
2022-01-07 13:02:16 +01:00
Son
12a7e9b3fa
refactor
2022-01-07 12:24:14 +01:00
Son
4fae291251
improve logging
2022-01-07 12:19:51 +01:00
Son
4c63b4c0f1
refactor
2022-01-07 12:18:46 +01:00
Son
5195c9de8b
raise error when a non reverse-alias is used during the reply phase
2022-01-07 10:34:08 +01:00
Son
035d238c75
do not delete DATE header
2022-01-07 10:22:46 +01:00