From bc5aa62abb13de1d9ff6efc9c08dcd689f1f45d3 Mon Sep 17 00:00:00 2001 From: Alexandre Lossent <alexandre.lossent@cern.ch> Date: Wed, 18 Sep 2024 16:40:02 +0200 Subject: [PATCH] Set default sender and fix mail config --- el9/templates/mail-configmap.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/el9/templates/mail-configmap.yaml b/el9/templates/mail-configmap.yaml index 6c614bc..24684c0 100644 --- a/el9/templates/mail-configmap.yaml +++ b/el9/templates/mail-configmap.yaml @@ -71,11 +71,13 @@ data: ignore received in-reply-to message-id references ignore mime-version content-transfer-encoding - # Only include selected header fields when forwarding messages. - fwdretain subject date from to - # For Linux and BSD, this should be set. set bsdcompat # CERN-specific configuration - set smtp=cernmx.cern.ch + set v15-compat=yes + set mta=smtp://cernmx.cern.ch:25 smtp-use-starttls smtp-auth=none + # By default sender (if not specified when sending mail) looks like <apache@webeos-project-i01-el9-78c9646546-shqmf> and this is considered spoofing by mail servers. + # Mail team tells us to use an address @cern.ch, it does not have to actually exist. + # Generic <no-reply@cern.ch> is discouraged as all mails from that address count against a single per-sender limit. + set from="WebEOS web sites <webeos-no-reply@cern.ch>" -- GitLab