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-03-28, 22:26:08

Author Topic: Mails not working after cleaning mail queue  (Read 5737 times)

0 Members and 1 Guest are viewing this topic.

Offline rsakhale

  • Valuable Member
  • *
  • Posts: 103
  • Karma: +1/-0
  • Gender: Male
  • Rohan Sakhale
    • View Profile
    • Rohan Rajan Sangita Sakhale
Mails not working after cleaning mail queue
« on: 2017-09-04, 12:20:37 »
After deleting mail queue mails have stopped working.

Our server was facing spamming, so below are the steps we did


System Information
Code: [Select]
A. Control Panel:
   - Kloxo-MR: 7.0.0.c-2017083001
   - Web: hiawatha-10.6.0-f.1.mr.el6.x86_64
   - PHP: php56s - 5.6.31-1.ius.centos6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.9 (Final) x86_64
   - Hostname: pharmaindigital.com
C. Services:
   1. MySQL: MariaDB-server-10.0.32-1.el6.x86_64
   2. PHP:
      - Installed:
        - Branch: php70w-cli-7.0.22-2.w6.x86_64
        - Multiple:
          * php56m - 5.6.31-1.ius.centos6
          * php70m - 7.0.21-1.ius.centos6
          * php71m - 7.1.7-1.ius.centos6
      - Used: php70m-fpm
      - Multiple: enable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.6.0-f.1.mr.el6.x86_64
     - Lighttpd: lighttpd-1.4.45-1.el6.x86_64
     - Nginx: nginx-1.13.4-1.el6.ngx.x86_64
     - Apache: httpd24u-2.4.27-1.ius.centos6.x86_64
       - PHP Type: php-fpm_worker
       - Secondary PHP: off
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: varnish-5.1.3-1.el6.x86_64
   5. Dns: bind
     - Bind: bind-9.9.9-1.mr.el6.x86_64
     - DJBDns: djbdns-1.05-17.4.mr.el6.x86_64
     - NSD: nsd-4.1.16-1.el6.x86_64
     - PowerDNS: pdns-4.0.3-1.el6.MIND.x86_64
     - Yadifa: yadifa-2.2.5-1.mr.el6.x86_64
   6. Mail: qmail-toaster-1.03-1.3.57.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
      - smtp: qmail-toaster-1.03-1.3.57.mr.el6.x86_64
      - spam: bogofilter-1.2.4-1.el6.x86_64
   7. FTP: pure-ftpd
      - pure-ftpd: pure-ftpd-1.0.37-1.mr.el6.x86_64
   8. Stats: webalizer
      - webalizer: webalizer-2.23_08-1.mr.el6.x86_64
D. Memory:
             total       used       free     shared    buffers     cached
Mem:          3831       2626       1205         23        142        973
-/+ buffers/cache:       1510       2321
Swap:         3967          0       3967
E. Disk Space:
Filesystem           Size  Used Avail Use% Mounted on
/dev/mapper/vg-root   54G   13G   39G  26% /


*** Process Time: 00:00:00:52.52446 (dd:hh:mm:ss:xxxxxx) ***

* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
        (importance after Kloxo-MR update)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Mails not working after cleaning mail queue
« Reply #1 on: 2017-09-04, 12:37:19 »
You delete  mailqueue with 'sh /script/mailqueue -D'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline rsakhale

  • Valuable Member
  • *
  • Posts: 103
  • Karma: +1/-0
  • Gender: Male
  • Rohan Sakhale
    • View Profile
    • Rohan Rajan Sangita Sakhale
Re: Mails not working after cleaning mail queue
« Reply #2 on: 2017-09-04, 12:42:19 »
Earlier I deleted this manually by removing all folders from the above specified folder. Will that affect mail delivery?

My emails are not working some how

Offline rsakhale

  • Valuable Member
  • *
  • Posts: 103
  • Karma: +1/-0
  • Gender: Male
  • Rohan Sakhale
    • View Profile
    • Rohan Rajan Sangita Sakhale
Re: Mails not working after cleaning mail queue
« Reply #3 on: 2017-09-04, 13:00:51 »
Emails are now working after reinstalling using below command

Code: [Select]
yum reinstall *-toaster; sh /script/fixmail-all; sh /script/restart-mail
Reference - https://forum.mratwork.com/kloxo-mr-technical-helps/how-to-clean-mail-queue/msg25810/#msg25810

Offline Helipodde

  • Junior Member
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
    • basta
Re: Mails not working after cleaning mail queue
« Reply #4 on: 2017-09-04, 16:16:50 »
Perfect just what I was looking for! Thank you!

Offline idove

  • Valuable Member
  • *
  • Posts: 142
  • Karma: +0/-0
    • View Profile
Re: Mails not working after cleaning mail queue
« Reply #5 on: 2017-09-07, 13:25:13 »
Install qmail-remove, and remove spam with calling:
qmail-remove -r -p 'your-keyword'


1. stop qmail service
systemctl stop qmail.service

2. check your queue with:
/var/qmail/bin/qmail-qstat

3. read I found out who is sending who, and what
/var/qmail/bin/qmail-qread

Then use qmail-remove with your selected keyword.


How to install qmail-remove?
# cd /tmp
# wget http://www.linuxmagic.com/opensource/qmail/qmail-remove/qmail-remove-0.95.tar.gz
# tar -zxvf qmail-remove-0.95.tar.gz
# cd qmail-remove-0.95
# make && make install
# ln -s /usr/local/sbin/qmail-remove /usr/bin/qmail-remove
# mkdir -p /var/qmail/queue/yanked/


Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Mails not working after cleaning mail queue
« Reply #6 on: 2017-09-07, 14:05:34 »
Did you know about 'sh /script/mailqueue --help'?. Try it.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline idove

  • Valuable Member
  • *
  • Posts: 142
  • Karma: +0/-0
    • View Profile
Re: Mails not working after cleaning mail queue
« Reply #7 on: 2017-09-07, 14:15:29 »
Did you know about 'sh /script/mailqueue --help'?. Try it.

Great, didn't know about it. I will now analyze /script/ folder with --help option ;).
Thank you for your suggestion.

Offline rsakhale

  • Valuable Member
  • *
  • Posts: 103
  • Karma: +1/-0
  • Gender: Male
  • Rohan Sakhale
    • View Profile
    • Rohan Rajan Sangita Sakhale
Re: Mails not working after cleaning mail queue
« Reply #8 on: 2017-09-08, 18:52:31 »
Yes, thanks for knowledging us on various commands. It's amazing and Kloxo-MR is best Web Hosting software  8)

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.053 seconds with 19 queries.

web stats analysis