Email sending from Infomaniak's public cloud is tested
Ideally, directly with a beta.mail.raksha.ch docker-compose setup, similar to the (later) production setup.
Testing swaks from a compute instance:
$ swaks --to xxxxxxxx@odyx.org --from manager@flosstools-test.ik.vps.liip.ch
=== Trying mail.raksha.ch:25...
=== Connected to mail.raksha.ch.
<- 220 mail.raksha.ch ESMTP ready
-> EHLO flosstools-test
<- 250-mail.raksha.ch
<- 250-PIPELINING
<- 250-SIZE 50000000
<- 250-ETRN
<- 250-ENHANCEDSTATUSCODES
<- 250-8BITMIME
<- 250-DSN
<- 250 STARTTLS
-> MAIL FROM:<manager@flosstools-test.ik.vps.liip.ch>
<- 250 2.0.0 OK
-> RCPT TO:<xxxxxxxx@odyx.org>
<- 250 2.1.5 Ok
-> DATA
<- 354 End data with <CR><LF>.<CR><LF>
-> Date: Sat, 14 Dec 2024 17:26:58 +0100
-> To: me@odyx.org
-> From: manager@flosstools-test.ik.vps.liip.ch
-> Subject: test Sat, 14 Dec 2024 17:26:58 +0100
-> Message-Id: <20241214172658.003148@flosstools-test>
-> X-Mailer: swaks v20201014.0 jetmore.org/john/code/swaks/
->
-> This is a test mailing
->
->
-> .
<** 451 4.7.1 Try again later
-> QUIT
<- 221 2.0.0 Bye
=== Connection closed with remote host.
Results on mail.raksha.ch's rspamd:
HFILTER_HELO_5 (3) [flosstools-test]
HFILTER_HOSTNAME_UNKNOWN (2.5)
DMARC_POLICY_QUARANTINE (1.5) [liip.ch : No valid SPF, No valid DKIM,quarantine]
RDNS_NONE (1)
MID_RHS_NOT_FQDN (0.5)
ONCE_RECEIVED (0.1)
MIME_GOOD (-0.1) [text/plain]
BAYES_HAM (-0.000002) [16.34%]
GREYLIST (0) [greylisted,Sat, 14 Dec 2024 16:31:58 GMT,new record]
MIME_TRACE (0) [0:+]
ASN (0) [asn:29222, ipnet:2001:1600::/32, country:CH]
RCVD_COUNT_ZERO (0) [0]
R_SPF_NA (0) [no SPF record]
FROM_EQ_ENVFROM (0)
TO_DN_NONE (0)
DIRECT_TO_MX (0) [swaks v20201014.0 jetmore.org/john/code/swaks/]
FROM_NO_DN (0)
TO_MATCH_ENVRCPT_ALL (0)
RCPT_COUNT_ONE (0) [1]
R_DKIM_NA (0)
ARC_NA (0)
SINGLE_SHORT_PART (0)
ARC_SIGNED (0) [odyx.org:s=dkim:i=1]
On retry (later):
HFILTER_HELO_5 (3) [flosstools-test]
HFILTER_HOSTNAME_UNKNOWN (2.5)
DMARC_POLICY_QUARANTINE (1.5) [liip.ch : No valid SPF, No valid DKIM,quarantine]
RDNS_NONE (1)
MID_RHS_NOT_FQDN (0.5)
ONCE_RECEIVED (0.1)
MIME_GOOD (-0.1) [text/plain]
BAYES_HAM (-0.000559) [34.18%]
GREYLIST (0) [pass,body]
MIME_TRACE (0) [0:+]
ASN (0) [asn:29222, ipnet:2001:1600::/32, country:CH]
RCVD_COUNT_ZERO (0) [0]
R_SPF_NA (0) [no SPF record]
FROM_EQ_ENVFROM (0)
TO_DN_NONE (0)
DIRECT_TO_MX (0) [swaks v20201014.0 jetmore.org/john/code/swaks/]
FROM_NO_DN (0)
TO_MATCH_ENVRCPT_ALL (0)
RCPT_COUNT_ONE (0) [1]
R_DKIM_NA (0)
ARC_NA (0)
SINGLE_SHORT_PART (0)
ARC_SIGNED (0) [odyx.org:s=dkim:i=1]
We need to make sure to:
- send from IPs with a valid PTR (beware of IPv6)
- use a valid floating IP to reach out.
- have the EHLO setting correct
Edited by Didier Raboud