[GH-ISSUE #1049] spam headers / filtering not working out of box #882

Closed
opened 2026-02-27 11:14:04 +03:00 by kerem · 6 comments
Owner

Originally created by @mzummo on GitHub (Feb 27, 2017).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1049

  • Modoboa: master
  • installer used: Yes/No ? Yes
  • Webserver: Nginx/Apache Nginx

Steps to reproduce

 Install on clean debian 8.7 system
 install postwhite to get email(s) past postscreen - (postscreen config needs fixing)
 send message from gmail to system 

Current behavior

 (no X-SPAM headers)

Expected behavior

 X-SPAM headers for email filtering
Originally created by @mzummo on GitHub (Feb 27, 2017). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1049 * Modoboa: master * installer used: Yes/No ? Yes * Webserver: Nginx/Apache Nginx # Steps to reproduce Install on clean debian 8.7 system install postwhite to get email(s) past postscreen - (postscreen config needs fixing) send message from gmail to system # Current behavior (no X-SPAM headers) # Expected behavior X-SPAM headers for email filtering
kerem 2026-02-27 11:14:04 +03:00
Author
Owner

@tonioo commented on GitHub (Feb 27, 2017):

I'm not sure to understand your issue, could you please explain it a bit more?

<!-- gh-comment-id:282656512 --> @tonioo commented on GitHub (Feb 27, 2017): I'm not sure to understand your issue, could you please explain it a bit more?
Author
Owner

@mzummo commented on GitHub (Feb 27, 2017):

@tonioo basically the spam filtering doesn't seem to be working ... I would expect X-SPAM-STATUS filters to be placed in the headers of the incoming email and then those are used to mark spam and filter into the spam folder (instead of just instant reject) (and perhaps sent to quarentene which i didnt see happening either) ... also postscreen seems to be set a bit to high and almost no email can come in without a whitelist. (gmail example) ... I can be reached on gchat mzummo@gmail.com to discuss the issue further. I really like your application and this is the only thing stopping me from using it.

Matt Z

<!-- gh-comment-id:282766219 --> @mzummo commented on GitHub (Feb 27, 2017): @tonioo basically the spam filtering doesn't seem to be working ... I would expect X-SPAM-STATUS filters to be placed in the headers of the incoming email and then those are used to mark spam and filter into the spam folder (instead of just instant reject) (and perhaps sent to quarentene which i didnt see happening either) ... also postscreen seems to be set a bit to high and almost no email can come in without a whitelist. (gmail example) ... I can be reached on gchat mzummo@gmail.com to discuss the issue further. I really like your application and this is the only thing stopping me from using it. Matt Z
Author
Owner

@tonioo commented on GitHub (Feb 28, 2017):

The X-SPAM header is not added to every message processed by the filter.
Only messages with a score greater than a first limit will be tagged and
messages with a score even greater will be rejected or quarantined
according to amavis configuration.

About postscreen, gmail and outlook indeed cause troubles these days and
get rejected by postscreen. postwhite looks like a good fix but I'd like
more feedback about its use.

On 27/02/2017 17:13, mlzummo wrote:

@tonioo https://github.com/tonioo basically the spam filtering
doesn't seem to be working ... I would expect X-SPAM-STATUS filters to
be placed in the headers and then those are used to mark spam and
filter into the spam folder (instead of just instant reject) (and
perhaps sent to quarentene which i didnt see happening either) ...
also postscreen seems to be set a bit to high and almost no email can
come in without a whitelist. (gmail example) ... I can be reached on
gchat mzummo@gmail.com mailto:mzummo@gmail.com to discuss the issue
further. I really like your application and this is the only thing
stopping me from using it.

Matt Z


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/modoboa/modoboa/issues/1049#issuecomment-282766219,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAgc7lp1DJNoRxdHtpfW_txg8votO7jtks5rgvYqgaJpZM4MMukp.

<!-- gh-comment-id:282970217 --> @tonioo commented on GitHub (Feb 28, 2017): The X-SPAM header is not added to every message processed by the filter. Only messages with a score greater than a first limit will be tagged and messages with a score even greater will be rejected or quarantined according to amavis configuration. About postscreen, gmail and outlook indeed cause troubles these days and get rejected by postscreen. postwhite looks like a good fix but I'd like more feedback about its use. On 27/02/2017 17:13, mlzummo wrote: > > @tonioo <https://github.com/tonioo> basically the spam filtering > doesn't seem to be working ... I would expect X-SPAM-STATUS filters to > be placed in the headers and then those are used to mark spam and > filter into the spam folder (instead of just instant reject) (and > perhaps sent to quarentene which i didnt see happening either) ... > also postscreen seems to be set a bit to high and almost no email can > come in without a whitelist. (gmail example) ... I can be reached on > gchat mzummo@gmail.com <mailto:mzummo@gmail.com> to discuss the issue > further. I really like your application and this is the only thing > stopping me from using it. > > Matt Z > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/modoboa/modoboa/issues/1049#issuecomment-282766219>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AAgc7lp1DJNoRxdHtpfW_txg8votO7jtks5rgvYqgaJpZM4MMukp>. >
Author
Owner
<!-- gh-comment-id:283088598 --> @mzummo commented on GitHub (Feb 28, 2017): http://blog.dmitryleskov.com/small-hacks/forcing-spamassassin-to-add-the-x-spam-status-header-to-ham-for-debugging/ $final_spam_destiny = D_PASS; http://www.dataparadis.net/osp/gnu-linux-server/mail-server/securing-mail-server-with-spamassassin-amavis-postgrey-and-clam-av/
Author
Owner

@mzummo commented on GitHub (Feb 28, 2017):

@tonioo postscreen blocks gmail as well. i think what im going to do here is do a pull request with some suggested out of box changes and some configs from mailcow

<!-- gh-comment-id:283088906 --> @mzummo commented on GitHub (Feb 28, 2017): @tonioo postscreen blocks gmail as well. i think what im going to do here is do a pull request with some suggested out of box changes and some configs from mailcow
Author
Owner

@tonioo commented on GitHub (Feb 28, 2017):

@mlzummo Would be nice but you're not on right repository, please check https://github.com/modoboa/modoboa-installer.

<!-- gh-comment-id:283089432 --> @tonioo commented on GitHub (Feb 28, 2017): @mlzummo Would be nice but you're not on right repository, please check https://github.com/modoboa/modoboa-installer.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#882
No description provided.