Spam Info - PDS_NO_HELO_DNS

Discussion in 'Mail Gateway: Installation and configuration' started by gonza55, Jul 10, 2019.

  1. gonza55

    gonza55 New Member

    Joined:
    Jul 10, 2019
    Messages:
    4
    Likes Received:
    1
    Hello,
    I have Spam Level 3. I receive many emails from the Gmail Domain that exceed Spam Level 3. The label PDS_NO_HELO_DNS has a score of 1,327.
    Can I modify the PDS_NO_HELO_DNS tag so I don't have to increase the Spam Level to 4?
    Thanks
     
  2. heutger

    heutger Active Member

    Joined:
    Apr 25, 2018
    Messages:
    611
    Likes Received:
    154
    use the custom.cf as written in the documentation
     
  3. gonza55

    gonza55 New Member

    Joined:
    Jul 10, 2019
    Messages:
    4
    Likes Received:
    1
    Thank you heutger for your answer.

    I'm looking for examples to change the score or disable the pds_no_helo_dns tag.

    The documentation does not show examples.

    Thanks
     
  4. heutger

    heutger Active Member

    Joined:
    Apr 25, 2018
    Messages:
    611
    Likes Received:
    154
    Sure, for the settings you need to check SpamAssassin documentation. Should be /etc/mail/spamassassin/custom.cf containing score PDS_NO_HELO_DNS 0
     
    gonza55 likes this.
  5. gonza55

    gonza55 New Member

    Joined:
    Jul 10, 2019
    Messages:
    4
    Likes Received:
    1
    Hello heutger,

    I have written the file custom.cf with score PDS_NO_HELO_DNS 0 but the spamcore continue to rate the tag PDS_NO_HELO_DNS.

    File custom.cf
    root@mail:/etc/mail/spamassassin# cat custom.cf
    # No analizar Etiqueta PDS_NO_HELO_DNS
    score PDS_NO_HELO_DNS 0​

    I wrote the command below:
    # spamassassin -D --lint
    Thanks

    PD: It's correct. I have rebooted the PMG.
     
    #5 gonza55, Jul 11, 2019
    Last edited: Jul 11, 2019
  6. heutger

    heutger Active Member

    Joined:
    Apr 25, 2018
    Messages:
    611
    Likes Received:
    154
    @Stoiko Ivanov Any idea? I thought, custom.cf will overwrite this value? Or need it to be done in the template system via local.cf (as I found via Google to be able to adjust scores there) or does it need to be done via the init.pre template to load with highest priority?
     
  7. fluxX04

    fluxX04 Member

    Joined:
    Mar 14, 2018
    Messages:
    31
    Likes Received:
    7
    Try a pmg-smtp-filter service restart and test again:
    Code:
    systemctl restart pmg-smtp-filter.service
    Greetz
     
  8. heutger

    heutger Active Member

    Joined:
    Apr 25, 2018
    Messages:
    611
    Likes Received:
    154
    The debug call of SpamAssassin should work without restarting the service. For sure, the service will adopt the settings just once restarted.
     
  9. gonza55

    gonza55 New Member

    Joined:
    Jul 10, 2019
    Messages:
    4
    Likes Received:
    1
    I have restarted the server and now if the rule is applied.

    Thank you very much.
     
    heutger likes this.
  10. Kenny Huynh

    Kenny Huynh New Member

    Joined:
    Dec 26, 2018
    Messages:
    13
    Likes Received:
    1
    Hello heutger,

    I really want to change the score of DCC and Pyzor in /usr/share/spamassassin/50_scores.cf but It not updated the score, that I have changed.

    Please look at Image below:
    upload_2019-7-12_14-42-28.png

    Ps: I have also restart pmg-smtp-filter after changed the score
     
  11. heutger

    heutger Active Member

    Joined:
    Apr 25, 2018
    Messages:
    611
    Likes Received:
    154
    From https://spamassassin.apache.org/full/3.2.x/doc/spamassassin.txt the loading order of files is pre in alphabetical order before cf in alphabetical order and the paths from /usr to /etc.

    So it's no good idea to change 50_scores.conf as this file is provided by SpamAssassin rules and will be updated with SpamAssassin package. Use custom.cf as written in the manual or use the template system to change local.cf
     
    Kenny Huynh likes this.
  12. Kenny Huynh

    Kenny Huynh New Member

    Joined:
    Dec 26, 2018
    Messages:
    13
    Likes Received:
    1
    Hello Heutger,

    It works now, so amazing, I stuck in this 2 weeks

    You save my day.

    Thank you very much.
     
    #12 Kenny Huynh, Jul 15, 2019 at 05:30
    Last edited: Jul 15, 2019 at 05:39
    heutger likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice