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-04-16, 07:14:29

Author Topic: STOP spam mail to server  (Read 2223 times)

0 Members and 1 Guest are viewing this topic.

Offline labpros

  • Valuable Member
  • *
  • Posts: 62
  • Karma: +0/-0
    • View Profile
STOP spam mail to server
« on: 2015-04-14, 19:06:57 »
Is there any reliable way to stop the spammers? This is a serious problem because its difficult to understand when spammers connect to your server and send thousands or million of mails from your server and finally the providers stops your mail services or at least the big mail providers doesn't deliver your mail server messages.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: STOP spam mail to server
« Reply #1 on: 2015-04-14, 19:24:49 »
Find out with command 'cat /var/log/maillog|grep PWD|tail -10' (change 10 to 100 if want more) and you will see like:
Code: [Select]
> cat /var/log/maillog|grep PWD|tail -10
Apr 14 12:54:49 oln3 root: sendmail: CALLER="php-fpm: pool devel" PWD="/home/devel/forum.mratwork.com" BAN="no"
Apr 14 13:05:37 oln3 root: sendmail: CALLER="php-fpm: pool devel" PWD="/home/devel/forum.mratwork.com" BAN="no"
Apr 14 13:10:01 oln3 root: sendmail: CALLER="php-fpm: pool devel" PWD="/home/devel/forum.mratwork.com" BAN="no"
Apr 14 13:11:25 oln3 root: sendmail: CALLER="php-fpm: pool devel" PWD="/home/devel/forum.mratwork.com" BAN="no"
Apr 14 13:20:08 oln3 root: sendmail: CALLER="php-fpm: pool devel" PWD="/home/devel/forum.mratwork.com" BAN="no"
Apr 14 14:00:49 oln3 root: sendmail: CALLER="php-fpm: pool devel" PWD="/home/devel/forum.mratwork.com" BAN="no"
Apr 14 14:07:37 oln3 root: sendmail: CALLER="php-fpm: pool devel" PWD="/home/devel/forum.mratwork.com" BAN="no"
Apr 14 14:46:10 oln3 root: sendmail: CALLER="php-fpm: pool devel" PWD="/home/devel/forum.mratwork.com" BAN="no"
Apr 14 15:59:23 oln3 root: sendmail: CALLER="php-fpm: pool devel" PWD="/home/devel/forum.mratwork.com" BAN="no"
Apr 14 18:14:57 oln3 root: sendmail: CALLER="php-fpm: pool devel" PWD="/home/devel/mratwork.com/wp-admin" BAN="no"

With this example, if you think website with '/home/devel/forum.mratwork.com' as spammer, and then add '/home/devel/forum.mratwork.com' in '/var/qmail/control/badsendmailfrom' file.

NOTE: PWD = 'print working directory' and this context is where sendmail came from.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline labpros

  • Valuable Member
  • *
  • Posts: 62
  • Karma: +0/-0
    • View Profile
Re: STOP spam mail to server
« Reply #2 on: 2015-04-15, 13:37:57 »
Thanks Mustafa, But how can i automate a procedure for stop spamming? Does exists any tool?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: STOP spam mail to server
« Reply #3 on: 2015-04-15, 13:47:06 »
In your application, use 'php mail()' instead 'smtp' and then add PWD value in '/var/qmail/control/badsendmailfrom' where you think spam came from.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.075 seconds with 21 queries.

web stats analysis