aboutsummaryrefslogtreecommitdiff
path: root/articles/2021/spamass-milter-error.html
blob: 8d162e387b4419dc8fdff2c8a4252fc60b0f9a91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!doctype html>
<html lang="EN">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="/style.css">
    <title>Bloggings</title>
  </head>
  <body>
    <header>
      <h1>Bloggings</h1>
      <a href="/index.php">Back</a>
      
    </header>
    
<main>
<article>
<h2>spamass-milter error</h2>
<h3>2021-04-15</h3>
<p>Lorsque j'a regardé si tout allait bien avec spamassasin,</p>
<code>systemctl status spamass-milter</code>
<p>m'affichait le message d'erreur suivant :</p>
<code>spamass-milter could not retrieve sendmail macro "_" !". </code>
<p>Cela n'a aucun effet sur la fonction de spamass_milter, mais je n'aime pas que les choses soient
d&eacute;sordonnées. Il s'av&egrave;re que spamass-milter a &eacute;t&eacute; construit pour sendmail, 
donc si vous utilisez Postfix, la macro <b>milter_connect_macro</b> doit &ecirc;tre modifi&eacute;e.</p>
<code>postconf -d milter_connect_macros</code> 
<p>renvoie</p>
<code>milter_connect_macros = j {nom_du_démon} {addr_du_démon} v</code>

<p>Le "_" etait bien manquant, ansi que la macro i.<br>
J'ai donc ajouté cette ligne au fichier /etc/postfix/main.cf</p>

<code>milter_connect_macros = "i j {daemon_name} v {if_name} _" </code>

<p>et voila, plus d'erreurs? Non. Une message d'erreur pour le macro "i" subsiste, mais c'est une bogue sans conséquence.</p>

<p><a href="http://www.postfix.org/MILTER_README.html">http://www.postfix.org/MILTER_README.html</a></p>
<i><pre>
Some Milter applications log a warning that looks like this:

    sid-filter[36540]: WARNING: sendmail symbol 'i' not available

And they may insert an ugly message header with "unknown-msgid" like this:

    X-SenderID: Sendmail Sender-ID Filter vx.y.z host.example.com <unknown-msgid>

The problem is that Milter applications expect that the queue ID is known before the MTA accepts the MAIL FROM
 (sender) command. Postfix does not choose a queue ID, which is used as the queue file name, until after it 
 accepts the first valid RCPT TO (recipient) command. 
</pre></i>
</article>
</main>
<footer>
<p>&nbsp;</p><p>§</p></footer>
</body></html>