Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-05-14, 18:44:57

Author Topic: qmail badsendmailfrom  (Read 3434 times)

0 Members and 1 Guest are viewing this topic.

Offline spereira

  • Valuable Member
  • *
  • Posts: 92
  • Karma: +0/-0
  • Gender: Male
    • View Profile
qmail badsendmailfrom
« on: 2016-08-11, 14:55:00 »
Hi,

I have update from Kloxo 6.1 to 6.5 and not i see that sendmail is not blocking emails..

Aug 11 14:12:14 cheetah logger: sendmail: CALLER="" PWD="/home/client/...." BAN="no"

And /home/client is listed on badsendmailfrom

How can i fix this ?

Thanks,

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: qmail badsendmailfrom
« Reply #1 on: 2016-08-11, 15:27:13 »
Add 'document root' (example: '/home/admin/domain.com') to '/var/qmail/control/badsendmailfrom'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline spereira

  • Valuable Member
  • *
  • Posts: 92
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: qmail badsendmailfrom
« Reply #2 on: 2016-08-11, 16:02:00 »
I have add all homes... is the script that have an error...

I fix this way...

## MR -- listing of the document root of website to banned
bfile="/var/qmail/control/badsendmailfrom"
bfileall=` cat $bfile`

if [ -f $bfile ] ; then
        for j in $bfileall ; do
   #for j in $(cat $bfile|tr '\n' ' ') ; do
      ## choose /home/admin also ban for their subdirs
      if [[ "${pwded}" ==  "${j}"* ]] ; then
         banned="yes"
      fi
   done
fi

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: qmail badsendmailfrom
« Reply #3 on: 2016-08-11, 16:04:51 »
If you want ban for all, just add '/home' in '/var/qmail/control/badsendmailfrom'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline spereira

  • Valuable Member
  • *
  • Posts: 92
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: qmail badsendmailfrom
« Reply #4 on: 2016-08-11, 16:08:50 »
Ok!

Thanks


 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.07 seconds with 22 queries.

web stats analysis