Learn about Centmin Mod LEMP Stack today
Become a Member

[Solved] CSF CSF load.sh mail

Discussion in 'Bug Reports' started by Mr. Jinx, May 2, 2021.

  1. Mr. Jinx

    Mr. Jinx New Member

    27
    8
    3
    Apr 18, 2021
    Ratings:
    +15
    Local Time:
    6:00 AM
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    I received the "Centmin Mod Extended Load Report" from /etc/csf/load.sh, but noticed that the recipients are not correct.

    The report was sent to: alert@mydomain.com;-r@hostname;alert@mydomain.com


    The following mail command is executed:
    Code:
    mail -s "lfd test" "alert@mydomain.com" -r "alert@mydomain.com" < /etc/csf/csf.report
    Seems correct, but when I manual fire this, I get the exact same result.
    Swapping the -r to the front seems to correct this problem. Not sure if this is by design or some weird behavior of mail(x).

    Code:
    mail -s "lfd test" -r "alert@mydomain.com" "alert@mydomain.com" < /etc/csf/csf.report
     
  2. eva2000

    eva2000 Administrator Staff Member

    47,514
    10,783
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,763
    Local Time:
    3:00 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Thanks for the heads up, will fix this is next 123.09beta01 update by end of day :)
     
  3. eva2000

    eva2000 Administrator Staff Member

    47,514
    10,783
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,763
    Local Time:
    3:00 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x