User Tools

Site Tools


computing:mailserver-trixie

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
computing:mailserver-trixie [2026/05/31 04:46] oemb1905computing:mailserver-trixie [2026/05/31 05:16] (current) oemb1905
Line 1042: Line 1042:
 -- -- -- -- Miscellaneous Issues -- -- -- -- -- -- -- -- Miscellaneous Issues -- -- -- --
  
-To test sieve logic and rules, download email (.eml) from Roundcube that did not behave as planned. Once you have the email, ''ssh'' into your mail server's simple unix user's mail directory and do the following:+To test sieve'logic and/or to test spamassassin's scoring, download email (.eml) from Roundcube that did not behave as planned. Once you have the email, ''ssh'' into your mail server's simple unix user's mail directory and do the following:
  
 +  su - username
   cd ~/sieve   cd ~/sieve
-  sieve-test -D -e roundcube.sieve Amazon3.eml+  spamassassin -t -D < Amazon1.eml  
 +  # this ^^ gives you the headers / spamassassin scores in stdout 
 +  sieve-test -D -e roundcube.sieve Amazon3.eml  
 +  # this ^^ tests your sieve logic to see if the email goes in ham or spam
  
-In the output that follows, look for something like this:+In the output that follows, look for something like the below. I put example output for each command above, respectively: 
 + 
 +<code> 
 +Content analysis details:   (16.9 points, 5.0 required) 
 + 
 + pts rule name              description 
 +---- ---------------------- -------------------------------------------------- 
 + 0.8 DKIM_ADSP_ALL          No valid author signature, domain signs all mail 
 + 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record 
 +-0.0 SPF_PASS               SPF: sender matches SPF record 
 + 0.2 BAYES_999              BODY: Bayes spam probability is 99.9 to 100% 
 +                            [score: 1.0000] 
 + 3.5 BAYES_99               BODY: Bayes spam probability is 99 to 100% 
 +                            [score: 1.0000] 
 + 2.0 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail 
 +                            domains are different 
 + 2.1 HTML_IMAGE_ONLY_12     BODY: HTML: images with 800-1200 bytes of words 
 + 0.0 HTML_EXTRA_CLOSE       BODY: HTML contains far too many close tags 
 + 0.1 MIME_HTML_ONLY         BODY: Message only has text/html MIME parts 
 + 0.0 HTML_MESSAGE           BODY: HTML included in message 
 + 2.0 RDNS_DYNAMIC           Delivered to internal network by host with 
 +                            dynamic-looking rDNS 
 + 0.0 HTML_SHORT_LINK_IMG_2  HTML is very short with a linked image 
 + 3.6 HTML_TAG_BALANCE_CENTER Malformatted HTML 
 + 0.4 HTML_MIME_NO_HTML_TAG  HTML-only message, but there is no HTML tag 
 + 1.0 GOOG_STO_IMG_HTML      Apparently using google content hosting to avoid 
 +                            URIBL 
 + 1.2 DMARC_QUAR             DMARC quarantine policy 
 + 0.0 T_REMOTE_IMAGE         Message contains an external image 
 +</code>
  
 <code> <code>
Line 1069: Line 1102:
 I rewrote the mail server tutorial for the presentation [[https://tech.haacksnetworking.org/2025/06/10/your-email-your-rules-self-hosting-simplified/|Your Email, Your Rules: Self-Hosting Simplified]]. The SeaGL presentation can be found [[https://pretalx.seagl.org/2025/talk/VLM7AS/|on their calendar]]. I rewrote the mail server tutorial for the presentation [[https://tech.haacksnetworking.org/2025/06/10/your-email-your-rules-self-hosting-simplified/|Your Email, Your Rules: Self-Hosting Simplified]]. The SeaGL presentation can be found [[https://pretalx.seagl.org/2025/talk/VLM7AS/|on their calendar]].
  
- --- //[[alerts@haacksnetworking.org|oemb1905]] 2026/05/31 03:32//+ --- //[[alerts@haacksnetworking.org|oemb1905]] 2026/05/31 05:13//
computing/mailserver-trixie.1780202789.txt.gz · Last modified: by oemb1905