Commit Graph

693 Commits

Author SHA1 Message Date
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 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
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