Skip to content

"Vibe-Trading: Your Personal Trading Agent"

Merge PR #1508: trusted and aligned email authentication

Haozhe Wu3f44e6a3c2d5
diff --cc agent/src/channels/email.py
index 66f2d3492,1c01f835d..7b0a72e3d
--- a/agent/src/channels/email.py
+++ b/agent/src/channels/email.py
@@@ -527,11 -492,13 +548,13 @@@ class EmailChannel(BaseChannel)
continue
# --- Anti-spoofing: verify Authentication-Results ---
- spf_pass, dkim_pass = self._check_authentication_results(parsed)
+ spf_pass, dkim_pass = self._check_authentication_results(
+ parsed, self.config.trusted_authserv_id
+ )
if self.config.verify_spf and not spf_pass:
self.logger.warning(
- "From %s rejected: SPF verification failed "
- "(no 'spf=pass' in Authentication-Results header)",
- "From {} rejected: SPF verification failed (no aligned "
++ "From %s rejected: SPF verification failed (no aligned "
+ "'spf=pass' in a trusted Authentication-Results header)",
sender,
)
self._remember_processed_uid(uid, dedupe, cycle_uids)
@@@ -540,8 -507,8 +563,8 @@@
continue
if self.config.verify_dkim and not dkim_pass:
self.logger.warning(
- "From %s rejected: DKIM verification failed "
- "(no 'dkim=pass' in Authentication-Results header)",
- "From {} rejected: DKIM verification failed (no aligned "
++ "From %s rejected: DKIM verification failed (no aligned "
+ "'dkim=pass' in a trusted Authentication-Results header)",
sender,
)
self._remember_processed_uid(uid, dedupe, cycle_uids)