Koozali.org: home of the SME Server

Problème spamassassin sous SME 9.2

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Problème spamassassin sous SME 9.2
« on: February 07, 2018, 07:00:57 AM »
Bonjour à tous,
Je suis passé récemment de SME 7 à SME 9.2 ! J'essaie d'activer spamassassin via le server manager. Mais aucun spam n'est filtré. Les e-mails ne contiennent pas d'entête "X-spam-status".
J'utilise la contrib fetchmail pour récupérer mes e-mails via POP3. Est-ce que ça peut venir de là ?
Avez-vous une idée de l'origine du problème ? Une technique pour diagnostiquer ça ?
Je ne trouve rien dans la documentation SME...
Merci,
Fred
« Last Edit: February 07, 2018, 07:05:49 AM by Fredchou »
Fred Chou

Offline mmccarn

  • *
  • 2,626
  • +10/-0
Re: Problème spamassassin sous SME 9.2
« Reply #1 on: February 07, 2018, 01:37:11 PM »
There is an open bug about spamassassin not working with fetchmail:
https://bugs.contribs.org/show_bug.cgi?id=10290

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #2 on: February 07, 2018, 10:54:03 PM »
Thanks. The workaround given in the bug sheet seems to work for me. :-)
Fred Chou

Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problème spamassassin sous SME 9.2
« Reply #3 on: February 16, 2018, 06:33:54 PM »
celui que j'ai posté récemment ?

si oui, peux tu répondre sur le bug que je puisse l'implémenter?

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #4 on: February 16, 2018, 09:40:10 PM »
J’ai essayé d’ajouter l’adresse 127.0.0.200 dans le fichier norelayclients. Au début j’ai cru que ça fonctionnait mais finalement ça ne fonctionne pas... :-(
Je vais essayer d’autres pistes et je vous tiens au courant.
Fred Chou

Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problème spamassassin sous SME 9.2
« Reply #5 on: February 16, 2018, 11:01:15 PM »
J’ai essayé d’ajouter l’adresse 127.0.0.200 dans le fichier norelayclients. Au début j’ai cru que ça fonctionnait mais finalement ça ne fonctionne pas... :-(
Je vais essayer d’autres pistes et je vous tiens au courant.
c'est deja expliqué que cela ne marche pas ;)

par contre la derniere solution proposées est celle-ci https://bugs.contribs.org/show_bug.cgi?id=10290#c15
patcher un fichier et en ajouter un autre en résumé

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #6 on: February 17, 2018, 09:23:16 PM »
Désolé, je n'ai pas trop l'habitude du format des bugs : je n'avais pas compris que les commentaires les plus récents se situaient en haut de la page ! :D

J'ai appliqué le patch sur /usr/share/qpsmtpd/plugins/spamassassin et j'ai créé le fichier /var/service/qpsmtpd/config/forcespamcheck

Le service qpsmtpd appelle bien spamassassin quand fetchmail récupère des messages sur le serveur de mon fournisseur de messagerie (je le vois dans les logs). Par contre, plus aucun message n'apparaît dans ma boîte SME ! (ni ceux qui ont été considérés comme spam ni les autres). J'ai pourtant désactivé la fonction de mise à la corbeille des spams (j'ai seulement laissé le marquage x-spam). Comment savoir ce que sont devenus ces messages ? Je ne vois rien dans les logs de qpsmtpd et de spamd.

Merci de votre aide !
Fred Chou

Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problème spamassassin sous SME 9.2
« Reply #7 on: February 17, 2018, 11:08:39 PM »
poste un log complet de qpstmpd pendant une transaction.

idealement dans le bug, au pire ici.

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #8 on: February 22, 2018, 10:27:49 PM »
Voici ce que je trouve dans le log de qpsmtpd :

Code: [Select]
2018-02-22 22:15:28.318218500 17021 dispatching MAIL FROM:<interflora-mkt-prod1@infonews.cadeaux.com> SIZE=134277
2018-02-22 22:15:28.318964500 17021 (mail) resolvable_fromhost: skip, relay client
2018-02-22 22:15:28.319096500 17021 (mail) rhsbl: skip, relay client
2018-02-22 22:15:28.319214500 17021 (mail) sender_permitted_from: skip, relay client
2018-02-22 22:15:28.319353500 17021 (mail) naughty: pass
2018-02-22 22:15:28.319467500 17021 (mail) badmailfrom: skip, relay client
2018-02-22 22:15:28.319630500 17021 250 <interflora-mkt-prod1@infonews.cadeaux.com>, sender OK - how exciting to get mail from you!
2018-02-22 22:15:28.320150500 17021 dispatching RCPT TO:<fred@carofred.net>
2018-02-22 22:15:28.320686500 17021 (rcpt) badrcptto: skip, relay client
2018-02-22 22:15:28.320873500 17021 (rcpt) rcpt_ok: skip, relay client
2018-02-22 22:15:28.321043500 17021 250 <fred@carofred.net>, recipient ok
2018-02-22 22:15:28.321534500 17021 dispatching DATA
2018-02-22 22:15:28.321900500 17021 354 go ahead
2018-02-22 22:15:28.322498500 17021 spooling message to disk
2018-02-22 22:15:28.437066500 17021 (data_post_headers) dkim: skip, DKIM not configured for infonews.cadeaux.com
2018-02-22 22:15:28.437185500 17021 (data_post_headers) dmarc: skip, relay client
2018-02-22 22:15:28.438686500 17021 (data_post) bogus_bounce: pass, not a null sender
2018-02-22 22:15:28.439264500 17021 (data_post) headers: skip, relay client
2018-02-22 22:15:28.439441500 17021 (data_post) naughty: pass
2018-02-22 22:15:28.507274500 17021 (data_post) spamassassin: skip, relay client
2018-02-22 22:15:28.507507500 17021 (data_post) spamassassin: 127.0.0.200 in force spam check
2018-02-22 22:15:37.825399500 17021 (data_post) spamassassin: error, reject disabled (Ham, -0.1, learn=disabled)
2018-02-22 22:15:37.943933500 17021 (data_post) virus::clamdscan: pass, clean
2018-02-22 22:15:37.944821500 17021 (queue) logging::logterse: ` 127.0.0.200 Unknown serveur-sme.carofred.net <interflora-mkt-prod1@infonews.cadeaux.com> <fred@carofred.net> queued <NM609BCD6B80C0F9678interfl_mkt_prod1@infonews.cadeaux.com> No, score=-0.1 required=4.0 autolearn=disable
2018-02-22 22:15:37.947354500 17068 (queue) queue::qmail_2dqueue: (for 17021) Queuing to /var/qmail/bin/qmail-queue
2018-02-22 22:15:38.160559500 17021 250 Queued! 1519334138 qp 17068 <NM609BCD6B80C0F9678interfl_mkt_prod1@infonews.cadeaux.com>
2018-02-22 22:15:38.446134500 17021 dispatching QUIT
2018-02-22 22:15:38.446460500 17021 221 carofred.net closing connection. Have a wonderful day.
2018-02-22 22:15:38.449929500 17021 click, disconnecting
2018-02-22 22:15:39.078210500 2106 cleaning up after 17021

Et voici ma config SME :
https://www.cjoint.com/c/HBwvBfjPffg

Je ne retrouve ce message nulle part dans ma boîte SME...
« Last Edit: February 22, 2018, 10:30:52 PM by Fredchou »
Fred Chou

Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problème spamassassin sous SME 9.2
« Reply #9 on: February 26, 2018, 01:03:00 AM »
ceci nous dit qu'il detecte que c'est un relay, mais qu'il force le passage
il y 'a cependant une erreur qui empêche le rejet.

Code: [Select]
2018-02-22 22:15:28.507274500 17021 (data_post) spamassassin: skip, relay client
2018-02-22 22:15:28.507507500 17021 (data_post) spamassassin: 127.0.0.200 in force spam check
2018-02-22 22:15:37.825399500 17021 (data_post) spamassassin: error, reject disabled (Ham, -0.1, learn=disabled)


ici cela dit que cela a été livré dans ta boite fred@carofred.net
aurais tu thunderbird ou un autre client qui aurait deplacé cela dans spam même si sme est configuré pour ne pas le faire ?

Code: [Select]
2018-02-22 22:15:37.944821500 17021 (queue) logging::logterse: ` 127.0.0.200 Unknown serveur-sme.carofred.net <interflora-mkt-prod1@infonews.cadeaux.com> <fred@carofred.net> queued <NM609BCD6B80C0F9678interfl_mkt_prod1@infonews.cadeaux.com> No, score=-0.1 required=4.0 autolearn=disable

Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problème spamassassin sous SME 9.2
« Reply #10 on: February 26, 2018, 02:01:21 PM »
que donne :
Code: [Select]
ll /var/service/qpsmtpd/config/peers/127*
et
Code: [Select]
cat /var/service/qpsmtpd/config/peers/local
et
Code: [Select]
cat /var/service/qpsmtpd/config/peers/0

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #11 on: February 26, 2018, 09:47:00 PM »
ceci nous dit qu'il detecte que c'est un relay, mais qu'il force le passage
il y 'a cependant une erreur qui empêche le rejet.

Code: [Select]
2018-02-22 22:15:28.507274500 17021 (data_post) spamassassin: skip, relay client
2018-02-22 22:15:28.507507500 17021 (data_post) spamassassin: 127.0.0.200 in force spam check
2018-02-22 22:15:37.825399500 17021 (data_post) spamassassin: error, reject disabled (Ham, -0.1, learn=disabled)

ici cela dit que cela a été livré dans ta boite fred@carofred.net
aurais tu thunderbird ou un autre client qui aurait deplacé cela dans spam même si sme est configuré pour ne pas le faire ?

Code: [Select]
2018-02-22 22:15:37.944821500 17021 (queue) logging::logterse: ` 127.0.0.200 Unknown serveur-sme.carofred.net <interflora-mkt-prod1@infonews.cadeaux.com> <fred@carofred.net> queued <NM609BCD6B80C0F9678interfl_mkt_prod1@infonews.cadeaux.com> No, score=-0.1 required=4.0 autolearn=disable
Oui, j'ai bien Thunderbird mais j'ai désactivé les filtres d'antispam (dont celui de SpamAssassin). Et, de toute façon, je ne trouve pas le message dans le répertoire "junkmail" de ma boîte SME...
Fred Chou

Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problème spamassassin sous SME 9.2
« Reply #12 on: February 26, 2018, 09:50:56 PM »
Oui, j'ai bien Thunderbird mais j'ai désactivé les filtres d'antispam (dont celui de SpamAssassin). Et, de toute façon, je ne trouve pas le message dans le répertoire "junkmail" de ma boîte SME...

alors c'est qu'il est coincé dans la queue qmail et qu'il arrive pas à livrer le message.

que donne le log de qmail si tu recherche ce message par destinataire / envoyeur.

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #13 on: February 26, 2018, 09:56:01 PM »
que donne :
ll /var/service/qpsmtpd/config/peers/127*

Code: [Select]
lrwxrwxrwx 1 root root 5 30 déc.  16:57 /var/service/qpsmtpd/config/peers/127.0.0.1 -> local
Quote from: Jean-Philippe Pialasse
et
cat /var/service/qpsmtpd/config/peers/local

Code: [Select]
logging/logterse
tls ssl/cert.pem ssl/cert.pem ssl/cert.pem ssl/dhparam.pem
auth/auth_cvm_unix_local cvm_socket /var/lib/cvm/cvm-unix-local.socket enable_smtp yes enable_ssmtp yes
# 09karma disabled for local connections
# 10earlytalker disabled for local connections
bogus_bounce
# 12count_unrecognized_commands disabled for local connections
# bcc disabled
relay
# 15helo disabled for local connections
# 16resolvable_fromhost disabled for local connections
headers
# 19loadcheck disabled for local connections
# 20rhsbl disabled for local connections
# 221spf disabled for local connections
dkim reject 0
# 223dmarc disabled for local connections
# 22dnsbl disabled for local connections
naughty reject mail
# uribl disabled
badmailfrom
badrcptto
# 34badrcptto_ext disabled for local connections
# check_smtp_forward not required
check_goodrcptto extn -

rcpt_ok
virus/pattern_filter check=patterns action=deny

tnef2mime

# disclaimer disabled

# 70spamassassin disabled for local connections
virus/clamdscan scan_all yes clamd_socket /var/clamav/clamd.socket defer_on_error yes max_size 25000
queue/qmail-queue

Quote from: Jean-Philippe Pialasse
et
cat /var/service/qpsmtpd/config/peers/0

Code: [Select]
logging/logterse
tls ssl/cert.pem ssl/cert.pem ssl/cert.pem ssl/dhparam.pem
auth/auth_cvm_unix_local cvm_socket /var/lib/cvm/cvm-unix-local.socket enable_smtp yes enable_ssmtp yes
# Karma plugin is disabled
earlytalker
bogus_bounce
count_unrecognized_commands 4
# bcc disabled
relay
helo policy lenient reject naughty
resolvable_fromhost
headers
loadcheck max_load 7
rhsbl
sender_permitted_from reject 1 no_dmarc_policy 0
dkim reject 0
dmarc reject 0 reporting 1
dnsbl reject naughty
naughty reject mail
# uribl disabled
badmailfrom
# 34badrcptto disabled for external connections
badrcptto more_badrcptto badrcptto_ext
# check_smtp_forward not required
check_goodrcptto extn -

rcpt_ok
virus/pattern_filter check=patterns action=deny

tnef2mime

# 65disclaimer disabled for external connections
spamassassin
virus/clamdscan scan_all yes clamd_socket /var/clamav/clamd.socket defer_on_error yes max_size 25000
queue/qmail-queue
Fred Chou

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #14 on: February 26, 2018, 10:03:59 PM »
alors c'est qu'il est coincé dans la queue qmail et qu'il arrive pas à livrer le message.

que donne le log de qmail si tu recherche ce message par destinataire / envoyeur.
Quelle andouille je suis ! J'ai copié un spam dans ma boîte distante (chez Free) pour faire un test. Et qmail me dit ça :
Code: [Select]
2018-02-26 21:45:13.289614500 new msg 2754364
2018-02-26 21:45:13.289616500 info msg 2754364: bytes 105045 from <p-853f47e2bsjfbdjrvnjmwjh7x2knkwphzwrd23gek2628rnctd4vf8z-A8C8C@news.oferting.es> qp 19086 uid 453
2018-02-26 21:45:13.416367500 starting delivery 1145: msg 2754364 to local alias-localdelivery-fred@carofred.net
2018-02-26 21:45:13.416374500 status: local 1/5 remote 0/2
2018-02-26 21:45:13.430073500 delivery 1145: failure: This_message_is_looping:_it_already_has_my_Delivered-To_line._(#5.4.6)/
2018-02-26 21:45:13.430199500 status: local 0/5 remote 0/2
2018-02-26 21:45:13.534883500 bounce msg 2754364 qp 19088
2018-02-26 21:45:13.534885500 end msg 2754364
J'ai donc essayé de forwarder un spam à mon adresse distante. Mais le score de SpamAssassin n'est pas assez élevé ! Je vais donc attendre de recevoir un vrai spam...
Fred Chou

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #15 on: February 27, 2018, 10:10:03 PM »
C'est bon. Tout a l'air de fonctionner.  :-)
Jean-Philippe, tu veux que je mette quoi sur la page du bug ?
Fred Chou

Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problème spamassassin sous SME 9.2
« Reply #16 on: February 28, 2018, 07:11:24 AM »
je pense que c'Est bon Giere a posté suffisament de retour de tests concluant, je vais mettre en place le patch

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #17 on: October 10, 2021, 09:01:13 PM »
Bonjour à tous,
J'ai migré récemment vers SME 10 et j'ai à nouveau le problème...  :-(
Je vois que le bug https://bugs.koozali.org/show_bug.cgi?id=10289 est toujours ouvert. Je me demande si mon problème est dû au fait que j'avais patché SME 9 et que les templates sont restés sur mon serveur ou si le problème est réapparu dans SME 10...
Quelqu'un pour m'éclairer ?
Merci,
Fred
Fred Chou

Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problème spamassassin sous SME 9.2
« Reply #18 on: October 10, 2021, 09:18:12 PM »
le travail a ete fait a l’envers et tu vies donc une regression.
le patch a ete appliqué a la version ancienne avant que quelque chose soit fait sur la version en développement. et rien n’a ete fait sur la versione n développement. 
heureusement tu l’as vu et heureusement un bug etait toujours ouvert. 
on va appliquer le patch dans les prochains jours des que quelqu’un est disponible.

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #19 on: October 10, 2021, 09:23:08 PM »
Super, merci ! C'est ce que je craignais...
Y a-t-il besoin d'ajouter un commentaire sur le bug ?
Fred Chou

Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problème spamassassin sous SME 9.2
« Reply #20 on: October 10, 2021, 09:31:37 PM »
nop c’est fait.

c’est thanksgiving en Amerique du Nord, donc de mom coté acces limité au builder pour quelques jours.

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Problème spamassassin sous SME 9.2
« Reply #21 on: October 12, 2021, 01:05:18 PM »
sme 10 update of smeserver-fetchmail has been done see Bug 10538
--
qui scribit bis legit

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #22 on: October 14, 2021, 10:10:37 AM »
I have read https://bugs.koozali.org/show_bug.cgi?id=10538

But it seems that new package is not available in smedev nore in smecontribs :

Code: [Select]
Nom                 : smeserver-fetchmail
Architecture        : noarch
Version             : 1.6
Révision            : 19.el7.sme
Taille              : 494 k
Dépôt               : installed
Depuis le dépôt     : smecontribs
Résumé              : sme module to generate fetchmail poll
Licence             : GPL
Description         : sme server enhancement to make fetchmail more useable

Should I wait a little?
Fred Chou

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Problème spamassassin sous SME 9.2
« Reply #23 on: October 14, 2021, 11:55:12 AM »
I think it is in smetest. brand new/experimental packages go to dev. Existing packages that are patched got to test. IIRC....

Code: [Select]
yum --enablerepo=smetest install smeserver-fetchmail
smeserver-fetchmail-1.6-20.el7.sme.noarch.rpm
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #24 on: October 14, 2021, 01:37:23 PM »
Merci beaucoup ! J'ai pu récupéré le nouveau paquet sur le serveur smetest. Je vais vérifier si ça fonctionne.
Fred Chou

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Problème spamassassin sous SME 9.2
« Reply #25 on: October 14, 2021, 03:30:19 PM »
Merci beaucoup ! J'ai pu récupéré le nouveau paquet sur le serveur smetest. Je vais vérifier si ça fonctionne.

You can help us.

Use the template here:

https://wiki.koozali.org/Bugzilla_Help

VERIFICATION TEMPLATE

Then add it to the bug.

Thank you.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #26 on: October 14, 2021, 10:15:08 PM »
Fix does not work on my server...  :-(

/var/service/qpsmtpd/config/forcespamcheck stays empty after expand-template. What seems strange is that fetchmail status is "disabled" in config... Even if my e-mails are correctly retrieved from my external POP server.

Code: [Select]
config show fetchmail
fetchmail=service
    FreqOffice=every15min
    FreqOutside=every15min
    FreqWeekend=every15min
    Method=standard
    SecondaryMailAccount=popaccount
    SecondaryMailPassword=poppassword
    SecondaryMailServer=mail.myisp.xxx
    status=disabled
Fred Chou

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Problème spamassassin sous SME 9.2
« Reply #27 on: October 15, 2021, 02:26:18 AM »
Fix does not work on my server...  :-(

/var/service/qpsmtpd/config/forcespamcheck stays empty after expand-template. What seems strange is that fetchmail status is "disabled" in config... Even if my e-mails are correctly retrieved from my external POP server.

Code: [Select]
config show fetchmail
fetchmail=service
    FreqOffice=every15min
    FreqOutside=every15min
    FreqWeekend=every15min
    Method=standard
    SecondaryMailAccount=popaccount
    SecondaryMailPassword=poppassword
    SecondaryMailServer=mail.myisp.xxx
    status=disabled

For the template to create the config forcespamcheck fetchmail must be enabled - # config setprop fetchmail status enabled

--
qui scribit bis legit

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Problème spamassassin sous SME 9.2
« Reply #28 on: October 15, 2021, 02:26:54 AM »
and just adding this has only be done for SME10, NOT SME9
--
qui scribit bis legit

Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problème spamassassin sous SME 9.2
« Reply #29 on: October 15, 2021, 02:39:40 AM »
si tu as des messages rentrant en pop sans que fetchmail soit activé tu as aoit des templates custom bypassant la contrib, soit tu utilose autre chose que fetchmail.


que dit

/sbin/e-smith/audittools/templates

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #30 on: October 15, 2021, 10:13:06 AM »
Voici les templates modifiés sur mon serveur :

Code: [Select]
#/sbin/e-smith/audittools/templates
/etc/e-smith/templates-custom/90rsync: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/services/90rsync: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/mail/spamassassin/local.cf/85_LOCALS: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/openldap/slapd.conf/95logs: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/php.ini/30ErrorHandling: MANUALLY_ADDED, OVERRIDE
/etc/e-smith/templates-custom/etc/smb.conf/50printers: MANUALLY_ADDED, OVERRIDE
/etc/e-smith/templates-custom/etc/smb.conf/11winsServer: MANUALLY_ADDED, OVERRIDE
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/VirtualHosts40ACME: MANUALLY_ADDED, ADDITION

Ma config de sme-fetchmail a été "héritée" de mon serveur SME9. Comme toi, je soupçonne des templates qui auraient été modifiés avant la migration vers SME 10 pour corriger certains problèmes...

Par contre, je ne comprends pas pourquoi fetchmail est activé (dans le server manager + je reçois bien mes e-mails) et pourquoi le statut de fetchmail est "disabled" dans la base de configuration...  :-(

Merci encore pour votre aide ! :-)
Fred Chou

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Problème spamassassin sous SME 9.2
« Reply #31 on: October 15, 2021, 03:11:32 PM »
You really should attempt to understand these things before installing them.

There is a difference between the basic fetchmail built in to Koozali SME, and the smeserver-fetchmail contribution that gives enhanced functionality.

Please read the notes you pasted above:

Quote
Nom             : smeserver-fetchmail
Description    : sme server enhancement to make fetchmail more useable

Quote
Par contre, je ne comprends pas pourquoi fetchmail est activé (dans le server manager + je reçois bien mes e-mails) et pourquoi le statut de fetchmail est "disabled" dans la base de configuration...

On the other hand, I do not understand why fetchmail is activated (in the server manager + I receive my e-mails well)

Both of these things cannot be true.

Code: [Select]
cat /etc/fetchmail (without passwords etc)

Code: [Select]
cat /etc/startmail
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #32 on: October 20, 2021, 10:23:45 AM »
I think I understand the difference between fetchmail tool and smeserver-fetchmail contrib. But I thought the contrib would automatically activate the fetchmail program. That's why I find strange that fetchmail service is "disabled" in SME config and that e-mails downloading is activated in the server manager...

Code: [Select]
cat /etc/fetchmail
#   Mail N1 Account for : fred
/usr/bin/fetchmail -l40000000 -d0 --silent --syslog --fetchmailrc - <<EOF
set postmaster "postmaster@mydomain.net"
set bouncemail
set no softbounce
set properties ""
poll pop.free.fr with proto POP3 timeout 300 and options uidl no dns
  user '****' smtpaddress mydomain.net with password '****' is fred here fetchall
  smtphost 127.0.0.200/25
  antispam 550
EOF

Code: [Select]
cat /etc/startmail
# This service has been flagged as 'disabled'
# in the e-smith services database.

# FetchMails dedicated connection; just call fetchmail to get things started
/bin/su - qmailr -s /bin/bash -c \
        "FETCHMAILHOME=/var/lock/fetchmail /etc/fetchmail"

I will try to activate manually the fetchmail service in SME config.
Fred Chou

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #33 on: October 20, 2021, 12:13:31 PM »
I have set e-mail reception to "ETRN" in the server manager. Fetchmail is now "enabled" in SME config. IP adress 127.0.0.200 has been added to file /var/service/qpsmtpd/config/forcespamcheck. But my e-mails still aren't scanned by spamassin (no "X-spam" headers in my e-mails).
Fred Chou

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Problème spamassassin sous SME 9.2
« Reply #34 on: October 20, 2021, 01:01:21 PM »
So you better show your new fetchmail file - we can't tell much without seeing it.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #35 on: October 20, 2021, 02:55:18 PM »
Is that what you call "fetchmail file"?

Code: [Select]
cat /etc/fetchmail
# ETRN configuration; fetchmail sends ETRN command to flush mail from remote mail server:
/usr/bin/fetchmail --syslog --silent --protocol ETRN --fetchdomains mydomain.net mail.myisp.xxx > /dev/null 2>&1

#   Mail N1 Account for : fred
/usr/bin/fetchmail -l40000000 -d0 --silent --syslog --fetchmailrc - <<EOF
set postmaster "postmaster@mydomain.net"
set bouncemail
set no softbounce
set properties ""
poll pop.free.fr with proto POP3 timeout 300 and options uidl no dns
  user 'fredchou' smtpaddress mydomain.net with password '****' is fred here fetchall
  smtphost 127.0.0.200/25
  antispam 550
EOF
Fred Chou

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Problème spamassassin sous SME 9.2
« Reply #36 on: October 20, 2021, 11:03:50 PM »
please excuse my use of english here, its all I have :-)

Doing some more testing on the fetchmail contrib, suspect something is not quite right...will report back shortly, certainly the sme9 version is not behaving as it should sme9 version is not enabling/disabling from the server-manager panel

[root@sme9 ~]# config show FetchMails
FetchMails=service
Routing=YES
RoutingNNTP=YES
RoutingSMTP=YES
status=disabled
timeout=60
version=1.6-15.el6.sme

above is smeserver-fetchmail config,
status is not changing when panel is toggled..need to dig about the contrib and also look at sme10 version
« Last Edit: October 20, 2021, 11:08:12 PM by TerryF »
--
qui scribit bis legit

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Problème spamassassin sous SME 9.2
« Reply #37 on: October 20, 2021, 11:34:59 PM »
See https://bugs.koozali.org/show_bug.cgi?id=11058 this is the issue, you can do a manual enable

[root@sme10testvm2 ~]# config setprop FetchMails status enabled
[root@sme10testvm2 ~]# config show FetchMails
FetchMails=service
    Routing=YES
    RoutingNNTP=YES
    RoutingSMTP=YES
    status=enabled
    timeout=60
    version=1.6-20.el7.sme

and the deed is done..my bad for not looking further when doing another Bug

need to revert my patch, later today and fix the root issue


« Last Edit: October 21, 2021, 12:51:08 AM by TerryF »
--
qui scribit bis legit

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Problème spamassassin sous SME 9.2
« Reply #38 on: October 21, 2021, 01:40:19 AM »
new rpm in /smetest  smeserver-fetchmail-1_6-21_el7_sme

note the different Config dbs, fetchmail (stanard sme) and FetchMails (smeserver-fetchmail)

Issue is server-manager panel enable/disable is not working

You can set manually from the cli

[root@sme10testvm2 ~]# config setprop FetchMails status enabled
[root@sme10testvm2 ~]# config show FetchMails
FetchMails=service
    Routing=YES
    RoutingNNTP=YES
    RoutingSMTP=YES
    status=enabled
    timeout=60
    version=1.6-20.el7.sme

and do a  # expand-template /var/service/qpsmtpd/config/forcespamcheck  /var/service/qpsmtpd/config/forcespamcheck will be populated as expected


--
qui scribit bis legit

Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problème spamassassin sous SME 9.2
« Reply #39 on: October 21, 2021, 05:24:56 AM »
after the fix,
contribs should allow filtering of fetched mails but core fetched mails will not be filtered. 

i am wondering if we should make the /var/service/qpsmtpd/config/forcespamcheck always with 127.0.0.200 or at least a core fragment that will display it wether fetchmail or FetchMails are enabled. 


Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Problème spamassassin sous SME 9.2
« Reply #40 on: October 21, 2021, 05:34:05 AM »
i am wondering if we should make the /var/service/qpsmtpd/config/forcespamcheck always with 127.0.0.200 or at least a core fragment that will display it wether fetchmail or FetchMails are enabled.

yes to this, I was confused as to the different DBs whether enabled or disabled..
--
qui scribit bis legit

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #41 on: October 29, 2021, 10:08:13 AM »
Sorry for answering late, I was busy during the last days...

Regarding bug https://bugs.koozali.org/show_bug.cgi?id=11058:

- I have applied the new patch (1.6 - 21.e17.sme).
- I have set the "SMTP retrieving mode" in the "e-mail" panel of the server manager.
- Fragment "127.0.0.200" is present in file "cat /var/service/qpsmtpd/config/forcespamcheck".
- I got "smtphost 127.0.0.200/25" & "antispam 550" in my "/etc/fetchmail" file.
- I got status "disabled" in my fecthmail config.
- I got status "enabled" in my FetchMails config.
- I have activated the "debug" mode in fetchmail pannel.
- I got this in "/var/log/maillog":
Code: [Select]
Oct 29 10:30:05 serveur-sme fetchmail[9384]: 1 message pour *** dans pop.free.fr (1863 octets).
Oct 29 10:30:05 serveur-sme fetchmail[9384]: POP3> LIST 1
Oct 29 10:30:05 serveur-sme fetchmail[9384]: POP3< +OK 1 1863
Oct 29 10:30:05 serveur-sme fetchmail[9384]: POP3> RETR 1
Oct 29 10:30:05 serveur-sme fetchmail[9384]: POP3< +OK message follows
Oct 29 10:30:05 serveur-sme fetchmail[9384]: lecture du message ***@pop.free.fr:1 parmi 1 (1863 octets)Essai de connexion avec 127.0.0.200/25...connecté.
Oct 29 10:30:05 serveur-sme fetchmail[9384]: SMTP< 220 ***.net ESMTP
Oct 29 10:30:05 serveur-sme fetchmail[9384]: SMTP> EHLO ***.net
Oct 29 10:30:05 serveur-sme fetchmail[9384]: SMTP< 250-***.net Hi localhost [127.0.0.1]
Oct 29 10:30:05 serveur-sme fetchmail[9384]: SMTP< 250-PIPELINING
Oct 29 10:30:05 serveur-sme fetchmail[9384]: SMTP< 250-8BITMIME
Oct 29 10:30:05 serveur-sme fetchmail[9384]: SMTP< 250-SIZE 40000000
Oct 29 10:30:05 serveur-sme fetchmail[9384]: SMTP< 250 STARTTLS
Oct 29 10:30:05 serveur-sme fetchmail[9384]: SMTP> MAIL FROM:<***@free.fr> BODY=8BITMIME SIZE=1863
Oct 29 10:30:05 serveur-sme fetchmail[9384]: SMTP< 250 <***@free.fr>, sender OK - how exciting to get mail from you!
Oct 29 10:30:05 serveur-sme fetchmail[9384]: SMTP> RCPT TO:<***@***.net>
Oct 29 10:30:05 serveur-sme fetchmail[9384]: SMTP< 250 <***@***.net>, recipient ok
Oct 29 10:30:05 serveur-sme fetchmail[9384]: SMTP> DATA
Oct 29 10:30:05 serveur-sme fetchmail[9384]: SMTP< 354 go ahead
Oct 29 10:30:05 serveur-sme fetchmail[9384]: SMTP>. (EOM)
Oct 29 10:30:05 serveur-sme fetchmail[9384]: SMTP< 250 Queued! 1635496205 qp 9386 <2e511c7a-facc-fef6-1c6a-b9e62a053c3d@free.fr>
Oct 29 10:30:05 serveur-sme fetchmail[9384]:  éliminé
Oct 29 10:30:05 serveur-sme fetchmail[9384]: POP3> DELE 1
Oct 29 10:30:06 serveur-sme fetchmail[9384]: POP3< +OK message 1 marked for deletion
Oct 29 10:30:06 serveur-sme fetchmail[9384]: POP3> QUIT
Oct 29 10:30:06 serveur-sme fetchmail[9384]: POP3< +OK deleted 1 message(s)
Oct 29 10:30:06 serveur-sme fetchmail[9384]: SMTP> QUIT
Oct 29 10:30:06 serveur-sme fetchmail[9384]: SMTP< 221 ***.net closing connection. Have a wonderful day.
- Got this in "/var/log/qpsmtpd/current":
Code: [Select]
2021-10-29 10:30:05.302225500 9385 Accepted connection 0/40 from 127.0.0.1 / localhost
2021-10-29 10:30:05.310007500 9385 Connection from localhost [127.0.0.1]
2021-10-29 10:30:05.607607500 9385 (connect) relay: pass, octet match in relayclients (127.0.0.)
2021-10-29 10:30:05.608047500 9385 220 ***.net ESMTP
2021-10-29 10:30:05.608818500 9385 dispatching EHLO ***.net
2021-10-29 10:30:05.610271500 9385 250-***.net Hi localhost [127.0.0.1]
2021-10-29 10:30:05.610298500 9385 250-PIPELINING
2021-10-29 10:30:05.610320500 9385 250-8BITMIME
2021-10-29 10:30:05.610348500 9385 250-SIZE 40000000
2021-10-29 10:30:05.610374500 9385 250 STARTTLS
2021-10-29 10:30:05.610997500 9385 dispatching MAIL FROM:<***@free.fr> BODY=8BITMIME SIZE=1863
2021-10-29 10:30:05.611979500 9385 (mail) badmailfrom: skip, relay client
2021-10-29 10:30:05.612156500 9385 250 <***@free.fr>, sender OK - how exciting to get mail from you!
2021-10-29 10:30:05.612688500 9385 dispatching RCPT TO:<***@***.net>
2021-10-29 10:30:05.613175500 9385 (rcpt) badrcptto: skip, relay client
2021-10-29 10:30:05.613366500 9385 (rcpt) rcpt_ok: skip, relay client
2021-10-29 10:30:05.613548500 9385 250 <***@***.net>, recipient ok
2021-10-29 10:30:05.614037500 9385 dispatching DATA
2021-10-29 10:30:05.614368500 9385 354 go ahead
2021-10-29 10:30:05.615344500 9385 spooling message to disk
2021-10-29 10:30:05.657479500 9385 (data_post_headers) dkim: skip, DKIM not configured for free.fr
2021-10-29 10:30:05.680216500 9385 (data_post) bogus_bounce: pass, not a null sender
2021-10-29 10:30:05.680401500 9385 (data_post) headers: skip, relay client
2021-10-29 10:30:05.699440500 9385 (data_post) virus::clamdscan: pass, clean
2021-10-29 10:30:05.700380500 9385 (queue) logging::logterse: ` 127.0.0.1 localhost ***.net <***@***.fr> <***@***.net> queued <2e511c7a-facc-fef6-1c6a-b9e62a053c3d@free.fr>
2021-10-29 10:30:05.703427500 9386 (queue) queue::qmail_2dqueue: (for 9385) Queuing to /var/qmail/bin/qmail-queue
2021-10-29 10:30:05.933411500 9385 250 Queued! 1635496205 qp 9386 <2e511c7a-facc-fef6-1c6a-b9e62a053c3d@***.fr>
2021-10-29 10:30:06.155378500 9385 dispatching QUIT
2021-10-29 10:30:06.155950500 9385 221 carofred.net closing connection. Have a wonderful day.
2021-10-29 10:30:06.157464500 9385 click, disconnecting
2021-10-29 10:30:06.235492500 8167 cleaning up after 9385

My e-mails received directly with SMTP are scanned by spamassassin.
My e-mails received with fetchmail from external POP server are still not scanned by spamassassin !  :sad: (no headers)

In which log should I look to understand what happens wrong?

Thanks again for your help!
« Last Edit: October 29, 2021, 12:36:19 PM by Fredchou »
Fred Chou

Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problème spamassassin sous SME 9.2
« Reply #42 on: October 29, 2021, 12:40:17 PM »
something wrong.
the connection is detected from 127.0.0.1 not 127.0.0.200

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Problème spamassassin sous SME 9.2
« Reply #43 on: October 29, 2021, 12:57:08 PM »
seen, I will patch and roll a update if needed, looking back at old patches, the ip  $OUT  = "\n127.0.0.200\n"  goes back to 2018 in sme9

« Last Edit: October 29, 2021, 01:00:34 PM by TerryF »
--
qui scribit bis legit

Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problème spamassassin sous SME 9.2
« Reply #44 on: October 29, 2021, 01:10:51 PM »
ok will not work


because in spamassassin the test is on remote_ip.  however the option in fetchmail does not specify from where it tries to send but to where. 


there is no way i see to set fetchmail to send from a dedicated ip. so we must find a way in qpsmtpd to check on what ip it recieve the connexion.


Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problème spamassassin sous SME 9.2
« Reply #45 on: October 29, 2021, 01:17:38 PM »
ok in

/usr/share/qpsmtpd/plugins/spamassassin

should replace remote_ip with local_ip

Code: [Select]
sub is_in_forcespamcheck {
    my $self = shift;

    my %forcespamcheck = map { $_ => 1 } $self->qp->config('forcespamcheck');

    my $ip = $self->qp->connection->remote_ip;

    while ($ip) {
        if (exists $forcespamcheck{$ip}) {
            $self->log(LOGINFO, "$ip in force spam check");
            return 1;
        }
        $ip =~ s/(\d|\w)+(:|\.)?$// or last;    # strip off another octet
    }

    $self->log(LOGDEBUG, "no match in forcespamcheck");
    return;
}

« Last Edit: October 29, 2021, 01:38:07 PM by Jean-Philippe Pialasse »

Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problème spamassassin sous SME 9.2
« Reply #46 on: October 29, 2021, 01:41:00 PM »
this has to be tested. i am not sure local_ip contain only the current transaction local ip or all the ip qpsmtpd is listening to. 

also thinking more, i am not sure if we do not want to force check also on 127.0.0.1 anyway. 

do we trust that much email from php script ?

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Problème spamassassin sous SME 9.2
« Reply #47 on: October 29, 2021, 01:46:24 PM »
do we trust that much email from php script ?

A very good question..... I'd be reluctant to see that.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #48 on: November 05, 2021, 09:35:54 AM »
I have added "127.0.0.1" to /var/service/qpsmtpd/config/forcespamcheck but my e-mails still aren't scanned.  :sad:
Fred Chou

Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problème spamassassin sous SME 9.2
« Reply #49 on: November 05, 2021, 12:07:32 PM »
on a pas de boule de cristal, donc sans log cel n’avance à rien ;)

Offline mmccarn

  • *
  • 2,626
  • +10/-0
Re: Problème spamassassin sous SME 9.2
« Reply #50 on: November 05, 2021, 12:12:49 PM »
The IP address for fetchmail-retrieved emails is 127.0.0.200, not 127.0.0.1.

From logs on my SME 9 server, spamassassin is ignoring the fetchmail emails because '127.0.0.200' is a 'relayclient' according to the default contents of /etc/e-smith/templates/var/service/qpsmtpd/config/relayclients/10localhost ("127.0.0")

You might get fetchmail emails scanned by spamassassin if you customize .../relayclients/10localhost -

Code: [Select]
# create the custom template folder
mkdir -p /etc/e-smith/templates-custom/var/service/qpsmtpd/config/relayclients/

# change into it
cd /etc/e-smith/templates-custom/var/service/qpsmtpd/config/relayclients/

# copy the original 10localhost, omitting the line that includes '127.0.0.*'
grep -v '127.0.0.\\n' /etc/e-smith/templates/var/service/qpsmtpd/config/relayclients/10localhost > 10localhost

# activate changes
signal-event email-update

Revert these changes if there are problems:
Code: [Select]
'rm' /etc/e-smith/templates-custom/var/service/qpsmtpd/config/relayclients/10localhost
signal-event email-update


I have verified that the steps above successfully modify /var/service/qpsmtpd/config/relayclients/10localhost.  My SME server is no longer receiving email so I can't verify that anything works after making the change...


Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problème spamassassin sous SME 9.2
« Reply #51 on: November 05, 2021, 01:45:13 PM »
@mccarn

Thing is the current setting makes fetchmail connect as 127.0.0.1 to 127.0.0.200:25 to deliver email.

but current code looks at remote ip not local ip.
if you see a log you see helo 127.0.0.1 for email from fetchmail, not helo 127.0.0.200.

so 127.0.0.1 should work and 127.0.0.200 not currently.  but accordingly Fredchou adding 127.0.0.1 does not help. 

127.0.0. would just be a similar situation removing the exclusion from all localhost.

but before doing any changes (whitelist 127.0.0. or 127.0.0.1 or altering the plugin code to test on local ip instead of remote ip) we should answer the question :
- de we really want to exclude from spam check emails from localhost?
- what is currently exclude from spam check and do we really want anything to be immune from that so the fix should be simply to remove the is immune call.

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #52 on: November 08, 2021, 09:15:01 PM »
Here is /var/log/qpsmtpd/current content:

Code: [Select]
2021-11-08 20:50:04.662354500 1408 Accepted connection 1/40 from 127.0.0.1 / localhost
2021-11-08 20:50:04.662714500 1408 Connection from localhost [127.0.0.1]
2021-11-08 20:50:04.975496500 1408 (connect) relay: pass, octet match in relayclients (127.0.0.)
2021-11-08 20:50:04.975950500 1408 220 ***.net ESMTP
2021-11-08 20:50:04.976640500 1408 dispatching EHLO ***.net
2021-11-08 20:50:04.978063500 1408 250-***.net Hi localhost [127.0.0.1]
2021-11-08 20:50:04.978089500 1408 250-PIPELINING
2021-11-08 20:50:04.978115500 1408 250-8BITMIME
2021-11-08 20:50:04.978141500 1408 250-SIZE 40000000
2021-11-08 20:50:04.978167500 1408 250 STARTTLS
2021-11-08 20:50:04.978642500 1408 dispatching MAIL FROM:<reply@bounces.actu-premium.fr> BODY=8BITMIME SIZE=102814
2021-11-08 20:50:04.979701500 1408 (mail) badmailfrom: skip, relay client
2021-11-08 20:50:04.979885500 1408 250 <reply@bounces.actu-premium.fr>, sender OK - how exciting to get mail from you!
2021-11-08 20:50:04.980331500 1408 dispatching RCPT TO:<***@***.net>
2021-11-08 20:50:04.980833500 1408 (rcpt) badrcptto: skip, relay client
2021-11-08 20:50:04.980989500 1408 (rcpt) rcpt_ok: skip, relay client
2021-11-08 20:50:04.981163500 1408 250 <***@***.net>, recipient ok
2021-11-08 20:50:04.981605500 1408 dispatching DATA
2021-11-08 20:50:04.981919500 1408 354 go ahead
2021-11-08 20:50:04.982864500 1408 spooling message to disk
2021-11-08 20:50:05.047722500 1408 (data_post_headers) dkim: skip, DKIM not configured for bounces.actu-premium.fr
2021-11-08 20:50:05.070324500 1408 (data_post) bogus_bounce: pass, not a null sender
2021-11-08 20:50:05.070479500 1408 (data_post) headers: skip, relay client
2021-11-08 20:50:05.206846500 1408 (data_post) virus::clamdscan: pass, clean
2021-11-08 20:50:05.207797500 1408 (queue) logging::logterse: ` 127.0.0.1 localhost ***.net <reply@bounces.actu-premium.fr> <***@***.net> queued <c18d32b7635358ad828ef0602f591210@manager.actu-premium.fr>
2021-11-08 20:50:05.210633500 1409 (queue) queue::qmail_2dqueue: (for 1408) Queuing to /var/qmail/bin/qmail-queue
2021-11-08 20:50:05.377806500 1408 250 Queued! 1636401005 qp 1409 <c18d32b7635358ad828ef0602f591210@manager.actu-premium.fr>
2021-11-08 20:50:05.468123500 1408 dispatching QUIT
2021-11-08 20:50:05.470681500 1408 221 ***.net closing connection. Have a wonderful day.
2021-11-08 20:50:05.470685500 1408 click, disconnecting
Fred Chou

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #53 on: November 17, 2021, 09:19:47 AM »
I still get dozens of spams every day. It's quite boring!

Could anyone suggest a "trick" to make my e-mails be scanned by spamassassin while waiting for the official patch?

Thanks!

Fred
Fred Chou

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Problème spamassassin sous SME 9.2
« Reply #54 on: November 17, 2021, 09:44:14 AM »
I still get dozens of spams every day. It's quite boring!

Things will get fixed faster if you help rather than complain.

https://wiki.koozali.org/SME_Server:Volunteering

We know it is an issue. Complaining won't fix it. Helping will.

Quote
Could anyone suggest a "trick" to make my e-mails be scanned by spamassassin while waiting for the official patch?

If you followed this thread and bugzilla you would be aware that this is tricky and not a simple fix. There is no trick.

I suggest you check bugs:

10289
10290
10538
11763

Rather than sit and wait for others, get involved and help.

Read these and look at how you can verify these bugs so they can be released, the community can benefit, and you can get the fixes faster.

https://wiki.koozali.org/SME_Server:Documentation:QA:Verification

https://wiki.koozali.org/Verification_Queue

You might even learn something on the way.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problème spamassassin sous SME 9.2
« Reply #55 on: November 17, 2021, 03:07:25 PM »
en fait au moment ou tu te plaignais aujourd’hui de la situation le bug est fixé depuis hier !

je n’utilise pas fetchmail, mais j’ai passé plusieurs heures sur ce problème comme d’autre avant bénévolement . 

alors il te reste plus qu’a tester le bug. verifier que rien d’autre casse et de preference pas sur un environnement en production.

tu as juste à regarder les derniers bugs mis à jour sur bugs.koozaali.org comcernant qpsmtpd et smeserver-qpsmtpd

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Problème spamassassin sous SME 9.2
« Reply #56 on: November 18, 2021, 10:13:22 AM »
Personally I find the sound of crickets quite boring.......
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #57 on: November 20, 2021, 06:13:59 PM »
Bonjour à tous,
Je suis vraiment désolé que mon message précédent ait vexé certains membres de l'équipe de développement. Je ne voulais absolument pas "relancer" l'équipe de développement sur ce bug. Je sais que tout le monde est bénévole et fait ça sur son temps libre.
La prochaine fois, je tournerai mon clavier 7 fois dans mes mains avant de poster mon message. ;-)
Merci pour la mise à jour. Je vais tester le nouveau package.
A bientôt !
Fred
Fred Chou

Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problème spamassassin sous SME 9.2
« Reply #58 on: November 20, 2021, 07:44:18 PM »
On a hâte d'entendre ton retour !

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Problème spamassassin sous SME 9.2
« Reply #59 on: November 20, 2021, 08:58:51 PM »
Bonjour à tous,
Je suis vraiment désolé que mon message précédent ait vexé certains membres de l'équipe de développement. Je ne voulais absolument pas "relancer" l'équipe de développement sur ce bug. Je sais que tout le monde est bénévole et fait ça sur son temps libre.
La prochaine fois, je tournerai mon clavier 7 fois dans mes mains avant de poster mon message. ;-)
Merci pour la mise à jour. Je vais tester le nouveau package.
A bientôt !
Fred

Please excuse my english in a french forum, I am but a descendant of convicts :-)

Finished turning keyboartd, :-) now fredchou your help is needed, see Bugs 10289 and Bug 11763 both have had patches applied to fix the problem you first raised, and rightly so. Please provide a little feedback and add to both that the fix is working or not.

Both packages are in /smeupdates-testing want a user in real world to confirm works or other issue..no need for a full verification just a comment in each bug that its doing what it is designed to do..when confirmed working the rpms will be moved to updates and will flow on to all..

thank you in advance,
--
qui scribit bis legit

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #60 on: November 21, 2021, 01:16:11 PM »
I am not sure I really understand what to do... Here is what I have done:

1. yum update smeserver-fetchmail --enablerepo=smedev

Result is:
Code: [Select]
Paquets installés
Nom                 : smeserver-fetchmail
Architecture        : noarch
Version             : 1.6
Révision            : 22.el7.sme
Taille              : 494 k
Dépôt               : installed
Depuis le dépôt     : smecontribs
Résumé              : sme module to generate fetchmail poll
Licence             : GPL
Description         : sme server enhancement to make fetchmail more useable

2. yum install smeserver-qpsmtpd --enablerepo=smedev

Result is :
Code: [Select]
Paquets installés
Nom                 : smeserver-qpsmtpd
Architecture        : noarch
Version             : 2.7.0
Révision            : 7.el7.sme
Taille              : 70 k
Dépôt               : installed
Depuis le dépôt     : smeupdates-testing
Résumé              : SME Server qpsmtpd module
Licence             : GPL
Description         : SME Server qpsmtpd smtpd module

3. Reconfiguration of the system

4. service qpsmtpd restart

Fecthmail is activated in the server manager. "SMTP mode" is set in the server manager for retrieving e-mails. Spam filter is activated in the server manager.

I don't get "127.0.0.200" in /var/service/qpsmtpd/config/norelayclients:
Code: [Select]
cat /var/service/qpsmtpd/config/norelayclients
#------------------------------------------------------------
#              !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------
# Format is IP, or IP part with trailing dot
# e.g. "127.0.0.1", or "192.168."
192.168.1.1

File qpsmtpd/config/peers/local seems OK:
 
Code: [Select]
cat /var/service/qpsmtpd/config/peers/local
#------------------------------------------------------------
#              !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://www.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------

logging/logterse
tls ssl/cert.pem ssl/cert.pem ssl/cert.pem ssl/dhparam.pem
auth/auth_cvm_unix_local cvm_socket /var/lib/cvm/cvm-unix-local.socket enable_smtp no enable_ssmtp yes
# 09karma disabled for local connections
# 10earlytalker disabled for local connections
bogus_bounce
# 12count_unrecognized_commands disabled for local connections
# bcc disabled
relay
# 15helo disabled for local connections
# 16resolvable_fromhost disabled for local connections
headers
# 19loadcheck disabled for local connections
# 20rhsbl disabled for local connections
# 221spf disabled for local connections
dkim reject 0
# 223dmarc disabled for local connections
# 22dnsbl disabled for local connections
# 23naughty disabled for local connections
# uribl disabled
badmailfrom
badrcptto
# 34badrcptto_ext disabled for local connections
# check_smtp_forward not required
check_goodrcptto extn -

rcpt_ok
virus/pattern_filter check=patterns action=deny

tnef2mime

# disclaimer disabled

# 70spamassassin disabled for local connections
forcespamcheck reject 12
virus/clamdscan scan_all yes clamd_socket /run/clamd/clamd.socket defer_on_error yes max_size 25000
queue/qmail-queue

But my entering e-mails still aren't scanned (no X-Spam headers). :-(

Here is a maillog example:
Code: [Select]
Nov 21 13:00:04 serveur-sme fetchmail[5155]: 6.3.24 interroge pop.free.fr (protocole POP3) à dim. 21 nov. 2021 13:00:04 CET : récupération en cours
Nov 21 13:00:04 *** fetchmail[5155]: Essai de connexion avec 212.27.48.3/110...connecté.
Nov 21 13:00:04 *** fetchmail[5155]: POP3< +OK POP3 ready <1809266577.1637496004@pop2.priv.proxad.net>
Nov 21 13:00:04 *** fetchmail[5155]: POP3> CAPA
Nov 21 13:00:04 *** fetchmail[5155]: POP3< +OK Capability list follows
Nov 21 13:00:04 *** fetchmail[5155]: POP3< TOP
Nov 21 13:00:04 *** fetchmail[5155]: POP3< USER
Nov 21 13:00:04 *** fetchmail[5155]: POP3< UIDL
Nov 21 13:00:04 *** fetchmail[5155]: POP3< SASL PLAIN LOGIN
Nov 21 13:00:04 *** fetchmail[5155]: POP3< .
Nov 21 13:00:04 *** fetchmail[5155]: POP3> USER ***
Nov 21 13:00:04 *** fetchmail[5155]: POP3< +OK
Nov 21 13:00:04 *** fetchmail[5155]: POP3> PASS *
Nov 21 13:00:05 *** fetchmail[5155]: POP3< +OK server ready
Nov 21 13:00:05 *** fetchmail[5155]: POP3> STAT
Nov 21 13:00:05 *** fetchmail[5155]: POP3< +OK 1 35906
Nov 21 13:00:05 *** fetchmail[5155]: POP3> UIDL
Nov 21 13:00:05 *** fetchmail[5155]: POP3< +OK 1 messages
Nov 21 13:00:05 *** fetchmail[5155]: POP3< 1 7049.ByRmFRI1t,5SSIjoiCrFHsRSASgoYFVwy3WH7a,NmB8=
Nov 21 13:00:05 *** fetchmail[5155]: POP3< .
Nov 21 13:00:05 *** fetchmail[5155]: 1 message pour *** dans pop.free.fr (35906 octets).
Nov 21 13:00:05 *** fetchmail[5155]: POP3> LIST 1
Nov 21 13:00:05 *** fetchmail[5155]: POP3< +OK 1 35906
Nov 21 13:00:05 *** fetchmail[5155]: POP3> RETR 1
Nov 21 13:00:05 *** fetchmail[5155]: POP3< +OK message follows
Nov 21 13:00:05 *** fetchmail[5155]: lecture du message ***@pop.free.fr:1 parmi 1 (35906 octets)Essai de connexion avec 127.0.0.200/25...connecté.
Nov 21 13:00:05 *** fetchmail[5155]: SMTP< 220 ***.***.net ESMTP
Nov 21 13:00:05 *** fetchmail[5155]: SMTP> EHLO ***.***.net
Nov 21 13:00:05 *** fetchmail[5155]: SMTP< 250-***.net Hi localhost [127.0.0.1]
Nov 21 13:00:05 *** fetchmail[5155]: SMTP< 250-PIPELINING
Nov 21 13:00:05 *** fetchmail[5155]: SMTP< 250-8BITMIME
Nov 21 13:00:05 *** fetchmail[5155]: SMTP< 250-SIZE 40000000
Nov 21 13:00:05 *** fetchmail[5155]: SMTP< 250 STARTTLS
Nov 21 13:00:05 *** fetchmail[5155]: SMTP> MAIL FROM:<noreply@bounces.kwizdoo.com> BODY=8BITMIME SIZE=35906
Nov 21 13:00:05 *** fetchmail[5155]: SMTP< 250 <noreply@bounces.kwizdoo.com>, sender OK - how exciting to get mail from you!
Nov 21 13:00:05 *** fetchmail[5155]: SMTP> RCPT TO:<***@***.net>
Nov 21 13:00:05 *** fetchmail[5155]: SMTP< 250 <***@***.net>, recipient ok
Nov 21 13:00:05 *** fetchmail[5155]: SMTP> DATA
Nov 21 13:00:05 *** fetchmail[5155]: SMTP< 354 go ahead
Nov 21 13:00:05 *** fetchmail[5155]: SMTP>. (EOM)
Nov 21 13:00:05 *** fetchmail[5155]: SMTP< 250 Queued! 1637496005 qp 5157 <769010ebfc2bc9e832d4fdd25f12c537@manager.myprettymail.fr>
Nov 21 13:00:05 *** fetchmail[5155]:  éliminé
Nov 21 13:00:05 *** fetchmail[5155]: POP3> DELE 1
Nov 21 13:00:05 *** fetchmail[5155]: POP3< +OK message 1 marked for deletion
Nov 21 13:00:05 *** fetchmail[5155]: POP3> QUIT
Nov 21 13:00:05 *** fetchmail[5155]: POP3< +OK deleted 1 message(s)
Nov 21 13:00:05 *** fetchmail[5155]: SMTP> QUIT
Nov 21 13:00:05 **** fetchmail[5155]: SMTP< 221 ***.net closing connection. Have a wonderful day.

And here is an example of qpsmtpd log:

Code: [Select]
2021-11-21 13:00:03.113778500 5144 Accepted connection 0/40 from 127.0.0.1 / localhost
2021-11-21 13:00:03.114087500 5144 Connection from localhost [127.0.0.1]
2021-11-21 13:00:03.262530500 5144 (connect) relay: pass, octet match in relayclients (127.0.0.)
2021-11-21 13:00:03.263005500 5144 220 serveur-sme.carofred.net ESMTP
2021-11-21 13:00:03.263642500 5144 dispatching EHLO ***.carofred.net
2021-11-21 13:00:03.265162500 5144 250-***.net Hi localhost [127.0.0.1]
2021-11-21 13:00:03.265192500 5144 250-PIPELINING
2021-11-21 13:00:03.265212500 5144 250-8BITMIME
2021-11-21 13:00:03.265240500 5144 250-SIZE 40000000
2021-11-21 13:00:03.265266500 5144 250 STARTTLS
2021-11-21 13:00:03.265718500 5144 dispatching MAIL FROM:<noreply@bounces.happy-promos.com> BODY=8BITMIME SIZE=100227
2021-11-21 13:00:03.266775500 5144 (mail) badmailfrom: skip, relay client
2021-11-21 13:00:03.266974500 5144 250 <noreply@bounces.happy-promos.com>, sender OK - how exciting to get mail from you!
2021-11-21 13:00:03.267393500 5144 dispatching RCPT TO:<***@***.net>
2021-11-21 13:00:03.267912500 5144 (rcpt) badrcptto: skip, relay client
2021-11-21 13:00:03.268100500 5144 (rcpt) rcpt_ok: skip, relay client
2021-11-21 13:00:03.268269500 5144 250 <***@***.net>, recipient ok
2021-11-21 13:00:03.268692500 5144 dispatching DATA
2021-11-21 13:00:03.268961500 5144 (data) forcespamcheck: forcing spamassassin check for connection on 127.0.0.200
2021-11-21 13:00:03.269147500 5144 354 go ahead
2021-11-21 13:00:03.270064500 5144 spooling message to disk
2021-11-21 13:00:03.334259500 5144 (data_post_headers) dkim: skip, DKIM not configured for bounces.happy-promos.com
2021-11-21 13:00:03.360818500 5144 (data_post) bogus_bounce: pass, not a null sender
2021-11-21 13:00:03.361042500 5144 (data_post) headers: skip, relay client
2021-11-21 13:00:03.495827500 5144 (data_post) spamassassin: skip, relay client
2021-11-21 13:00:03.722819500 5144 (data_post) virus::clamdscan: pass, clean
2021-11-21 13:00:03.724792500 5144 (queue) logging::logterse: ` 127.0.0.1 localhost ***.***.net <noreply@bounces.happy-promos.com> <***@***.net> queued <813ad444481246f00be9a9762346e5a9@manager.happy-promo.fr>
2021-11-21 13:00:03.727936500 5146 (queue) queue::qmail_2dqueue: (for 5144) Queuing to /var/qmail/bin/qmail-queue
2021-11-21 13:00:03.937616500 5144 250 Queued! 1637496003 qp 5146 <813ad444481246f00be9a9762346e5a9@manager.happy-promo.fr>
2021-11-21 13:00:04.355182500 5144 dispatching QUIT
2021-11-21 13:00:04.355593500 5144 221 ***.net closing connection. Have a wonderful day.
2021-11-21 13:00:04.357286500 5144 click, disconnecting
2021-11-21 13:00:05.098564500 4434 cleaning up after 5144

Which additional information would you need to help?
« Last Edit: November 21, 2021, 01:22:32 PM by Fredchou »
Fred Chou

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Problème spamassassin sous SME 9.2
« Reply #61 on: November 21, 2021, 01:43:53 PM »
I am not sure I really understand what to do...


First up just a straight, there will be more than a few updates
# yum update

Then

The two updates are in /smeupdates-testing

# yum update smeserver-qpsmtpd qpsmtpd --enablerepo=smeupdates-testing

then add any comments to the bugs. thats it

and thanks for your input, much appreciated
--
qui scribit bis legit

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Problème spamassassin sous SME 9.2
« Reply #62 on: November 21, 2021, 02:30:21 PM »
Code: [Select]
yum update smeserver-qpsmtpd qpsmtpd --enablerepo=smeupdates-testing
Might be safer to use install Terry?

Code: [Select]
yum install smeserver-qpsmtpd qpsmtpd --enablerepo=smeupdates-testing

And Fredchou please read the bugs carefully and use the verification templates I previously gave links for to guide you in testing this. You need to be be careful & methodical about it for everybodys benefit.

Please ask if you need more help.

Thanks.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problème spamassassin sous SME 9.2
« Reply #63 on: November 21, 2021, 04:07:10 PM »
I am not sure I really understand what to do... Here is what I have done:

1. yum update smeserver-fetchmail --enablerepo=smedev

….

2. yum install smeserver-qpsmtpd --enablerepo=smedev


est-ce que quelqu’un t’avais parlé d’activer smedev???
non je ne vois pas cela dans oa conversation.  Tu as eu la chance de nommer des paquets spécifiques en meme temps et sauvé ton serveur d’une petite catastrophe.
smedev est le repo pour les paquets expérimentaux uniquement pour les développeurs.
les choses à tester qui sont sans trop de risque mais nécessitent des connaissances sont dans smetest

le repo qu’on te demande d’activer est smeupdates-testing où se trouvent les paquets jugés sécuritaires mais nécessitant une validation que le changement escompté est bien obtenu. 


donc comme suggéré

Code: [Select]
yum update
puis

Code: [Select]
yum install smeserver-qpsmtpd qpsmtpd --enablerepo=smeupdates-testing

PS le resultats des mises a jour obtenues est plus liées aux paquets deja mis à jour dans smecontribs et smeupdates pour d’autres bugs. et tu as smecontribs d’activé

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #64 on: November 21, 2021, 06:17:17 PM »
Je suis désolé de ne pas avoir suivi la bonne procédure. Mais tout cela est encore un peu obscur pour moi... J'ai lu les pages "Verification" et "Verification Queue" indiquées par ReetP. Ca m'a un peu éclairé ! Mais il y a encore des choses que je ne comprends pas, par exemple : "or if you need several repositories : yum --enablerepo=smetest,smeupdates-testing,smedev update e-smith-ldap".

J'ai donc fait ce que Jean-Philippe a écrit :
Code: [Select]
yum update
Modules complémentaires chargés : fastestmirror, post-transaction-actions, priorities, smeserver
Loading mirror speeds from cached hostfile
 * base: distrib-coffee.ipsl.jussieu.fr
 * smeaddons: ftp.nluug.nl
 * smeextras: ftp.nluug.nl
 * smeos: ftp.nluug.nl
 * smeupdates: ftp.nluug.nl
 * updates: fr2.rpmfind.net
No packages marked for update

Code: [Select]
yum install smeserver-qpsmtpd qpsmtpd --enablerepo=smeupdates-testing
Modules complémentaires chargés : fastestmirror, post-transaction-actions, priorities, smeserver
Loading mirror speeds from cached hostfile
 * base: mir01.syntis.net
 * smeaddons: ftp.nluug.nl
 * smeextras: ftp.nluug.nl
 * smeos: ftp.nluug.nl
 * smeupdates: ftp.nluug.nl
 * smeupdates-testing: ftp.nluug.nl
 * updates: fr2.rpmfind.net
Le paquet smeserver-qpsmtpd-2.7.0-7.el7.sme.noarch est déjà installé dans sa dernière version
Résolution des dépendances
--> Lancement de la transaction de test
---> Le paquet qpsmtpd.noarch 0:0.96-20.el7.sme sera mis à jour
---> Le paquet qpsmtpd.noarch 0:0.96-21.el7.sme sera utilisé
--> Résolution des dépendances terminée

Dépendances résolues

=================================================================================================
 Package           Architecture     Version                   Dépôt                        Taille
=================================================================================================
Mise à jour :
 qpsmtpd           noarch           0.96-21.el7.sme           smeupdates-testing           279 k

Résumé de la transaction
=================================================================================================
Mettre à jour  1 Paquet

Taille totale des téléchargements : 279 k
Is this ok [y/d/N]: y
Downloading packages:
qpsmtpd-0.96-21.el7.sme.noarch.rpm                                        | 279 kB  00:00:03
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Mise à jour  : qpsmtpd-0.96-21.el7.sme.noarch                                              1/2
  Nettoyage    : qpsmtpd-0.96-20.el7.sme.noarch                                              2/2
Creating temporary event 'temp' and populating it...
 Adding actions to execute
 Adding services to adjust
Executing signal-event temp ...........
Reload yum db for server-manager
  Vérification : qpsmtpd-0.96-21.el7.sme.noarch                                              1/2
  Vérification : qpsmtpd-0.96-20.el7.sme.noarch                                              2/2

Mis à jour :
  qpsmtpd.noarch 0:0.96-21.el7.sme

Terminé !

Suite à ça, mes e-mails ne sont toujours pas scannés.

J'ai donc fait :
Code: [Select]
signal-event console-save
Suite à ça, mes e-mails ne sont toujours pas scannés.

J'ai donc fait un "reconfigurer" depuis le server manager. Mes messages sont maintenant scannés par spamassassin ! :-)

Cependant, les spams ne sont pas tagués ou envoyés dans la corbeille comme ils devraient l'être. Ils "disparaissent" purement et simplement. Je suppose que c'est dû à l'erreur suivante : "Use of uninitialized value $domain in concatenation (.) or string at /usr/share/qpsmtpd/plugins/dkim line 407, <STDIN> line 71." (cf. contenu de /var/log/qpsmtpd/current ci-dessous).

Code: [Select]
2021-11-21 18:05:26.287748500 5233 Accepted connection 1/40 from 127.0.0.1 / localhost
2021-11-21 18:05:26.288144500 5233 Connection from localhost [127.0.0.1]
2021-11-21 18:05:26.512301500 5233 (connect) relay: pass, octet match in relayclients (127.0.0.)
2021-11-21 18:05:26.512883500 5233 220 serveur-sme.carofred.net ESMTP
2021-11-21 18:05:26.513853500 5233 dispatching HELO serveur-sme.carofred.net
2021-11-21 18:05:26.514777500 5233 250 carofred.net Hi localhost [127.0.0.1]; I am so happy to meet you.
2021-11-21 18:05:26.515389500 5233 dispatching MAIL FROM:<>
2021-11-21 18:05:26.516691500 5233 (mail) badmailfrom: skip, relay client
2021-11-21 18:05:26.516938500 5233 250 <>, sender OK - how exciting to get mail from you!
2021-11-21 18:05:26.517637500 5233 dispatching RCPT TO:<noreply@premium-mister.com>
2021-11-21 18:05:26.518428500 5233 (rcpt) badrcptto: skip, relay client
2021-11-21 18:05:26.518662500 5233 (rcpt) rcpt_ok: skip, relay client
2021-11-21 18:05:26.518902500 5233 250 <noreply@premium-mister.com>, recipient ok
2021-11-21 18:05:26.519572500 5233 dispatching DATA
2021-11-21 18:05:26.519988500 5233 354 go ahead
2021-11-21 18:05:26.558128500 5233 spooling message to disk
2021-11-21 18:05:26.584120500 Use of uninitialized value $domain in concatenation (.) or string at /usr/share/qpsmtpd/plugins/dkim line 407, <STDIN> line 71.
2021-11-21 18:05:26.584240500 5233 (data_post_headers) dkim: error, unable to read dkim key from config/dkim//private
2021-11-21 18:05:26.620022500 5233 (data_post) bogus_bounce: pass, single recipient, empty Return-Path
2021-11-21 18:05:26.620266500 5233 (data_post) headers: skip, relay client
2021-11-21 18:05:26.793122500 5233 (data_post) virus::clamdscan: pass, clean
2021-11-21 18:05:26.812298500 5233 (queue) logging::logterse: ` 127.0.0.1 localhost serveur-sme.carofred.net <> <noreply@premium-mister.com> queued <>
2021-11-21 18:05:26.816735500 5235 (queue) queue::qmail_2dqueue: (for 5233) Queuing to /var/qmail/bin/qmail-queue
2021-11-21 18:05:27.071039500 5233 250 Queued! 1637514327 qp 5235 <>
2021-11-21 18:05:27.072559500 5233 dispatching QUIT
2021-11-21 18:05:27.115259500 5233 221 carofred.net closing connection. Have a wonderful day.
2021-11-21 18:05:27.115827500 5233 click, disconnecting
2021-11-21 18:05:27.116145500 5218 dispatching RSET
2021-11-21 18:05:27.116435500 5218 250 OK
2021-11-21 18:05:27.200178500 5218 dispatching QUIT
2021-11-21 18:05:27.200610500 5218 221 carofred.net closing connection. Have a wonderful day.
2021-11-21 18:05:27.201835500 5218 click, disconnecting
2021-11-21 18:05:29.267068500 1737 cleaning up after 5218
2021-11-21 18:05:29.267140500 1737 cleaning up after 5233

PS : Je n'ose pas utiliser le template et mettre à jour les bugs dans Bugzilla car je ne suis pas suffisamment à l'aise dans l'application des patches. J'ai peur de logger de fausses informations...
Fred Chou

Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problème spamassassin sous SME 9.2
« Reply #65 on: November 21, 2021, 08:54:56 PM »
Quote
"Use of uninitialized value $domain in concatenation (.) or string at /usr/share/qpsmtpd/plugins/dkim line 407, <STDIN> line 71." (cf. contenu de /var/log/qpsmtpd/current ci-dessous).

non aucun rapport c'Est just ele plugin pour signer les messages avec dkim qui ne trouve pas de valeur de domaine pour signer

en fait tu as mis a jour smeserver-qpsmtpd avant qpsmtpd donc le signal event smeserver-qpsmtpd-update a été lancé avant que le plugin soit disponible
un reconfigure reboot a fait la meme chose (et bien plus) que smeserver-qpsmtpd-update

le console-save suggéré par Reetp n'a aucune influence sur les services courriels....

la transaction que tu montre n'a aucun rapport avec fetchmail et il n'y a pas de scan spamassassin non pluys dedans. normal par defaut 127.0.0.1 est exclus des détection spam

cela provient soit du webmail, mais il y aurait une adresse d'envoi et pas eu d'Erreur qu'il n'y a pas de domaine d’expéditeur, soit d'un script php ou un autre service configuré pour envoyer des email mais ne respectant pas les RFC
donc a investiguer


pour ce qui est du
Quote
Mes messages sont maintenant scannés par spamassassin ! :-)

Cependant, les spams ne sont pas tagués ou envoyés dans la corbeille comme ils devraient l'être. Ils "disparaissent" purement et simplement.
- il faudrait un résumé de transaction d'un de ces mails "disparus" pour en dire plus pour les mails "disparus" (score spam si égal ou supérieur au score de rejet etc)
- comment tu sais qu'ils sont scanné ?
- as tu regardé sur la boite pop s'ils sont juste marqué vu et plsu retelechargés ou supprimés ?




Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #66 on: November 21, 2021, 10:14:17 PM »
Désolé pour le log qpsmtpd qui n'avait rien à voir avec le problème... :-(

Après investigation, les mails qui "disparaissaient" étaient ceux qui avaient un score supérieur au niveau de rejet ! On dirait que tout fonctionne donc correctement. J'attends un peu et je renseigne les bugs sur Bugzilla. :-)
Fred Chou

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Problème spamassassin sous SME 9.2
« Reply #67 on: November 21, 2021, 10:59:37 PM »
heeeeehaaa, looks like the long road may have finally reached its destinmation, thanks for being patient..
--
qui scribit bis legit

Offline Fredchou

  • *
  • 52
  • +0/-0
  • Use SME server at home
Re: Problème spamassassin sous SME 9.2
« Reply #68 on: November 24, 2021, 12:13:31 PM »
Bonjour à tous,
Suite à mes tests, j'ai mis à jour le bug n°10289 (https://bugs.koozali.org/show_bug.cgi?id=10289#c20). Merci de vérifier que tout est OK et de fermer le bug.
Je ne comprends pas bien la différence entre le bug n°10289 et le bug n°11763 (https://bugs.koozali.org/show_bug.cgi?id=11763). Dois-je copier mon commentaire du premier bug sur le deuxième ?

Par ailleurs, je crois que je viens de détecter un nouveau bug : si le mail téléchargé par fetchmail contient déjà une entête "X-Spam-Status:" mise par un autre serveur, le mail n'est pas scanné par spamassasin. Ce fonctionnement ne me semble pas normal. Mais je ne suis pas un spécialiste. Dois-je créer un nouveau bug ? Est-ce un problème interne à spamassassin et qui ne concerne pas SME ?

Merci de votre aide !

Fred Chou

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: Problème spamassassin sous SME 9.2
« Reply #69 on: November 24, 2021, 12:42:55 PM »
good job, thanks..the two bugs coverd the two packages invloved, but essentially same issue

re X-Spam-Status looks like may be by design, dunno, rnothing wrong with raising a bug if think it shoulkd be looked at
--
qui scribit bis legit

Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Problème spamassassin sous SME 9.2
« Reply #70 on: November 24, 2021, 07:48:27 PM »
c’est connu et par defaut. aussi si un tag spam est deja en place meme si desactivé le message est. mis dans le dossier spam.

ppur ce deuxieme element y’a un bug d’ouvert.

Offline ReetP

  • *
  • 3,722
  • +5/-0
Re: Problème spamassassin sous SME 9.2
« Reply #71 on: November 24, 2021, 09:53:42 PM »
A quick note from me to Fredchou.

I am not going to apologise for being harsh, but I do want to thank you for accepting the criticism, and doing something about it.

Chapeaux.

You are one of the few. I really appreciate it, as do the rest of the small team here, and hope that you will continue to help us. Your verification was excellent.

We have a channel for French speakers on Rocket.Chat so do please ask me for a login and come and talk to us and see how else you can help (and learn). Those who help tend to get things fixed faster and can help direct the development path :-)

So please come along and join us.

B. Rgds
John
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation