MagicSpam keeps stopping on Plesk 12

This is the area for a general support questions, discussions and information that you can read and share. Post your experiences, stats and tricks and tips that are not covered elsewhere. Remember, for questions please search the FAQ first, as your question may already be answered.

Moderators: wizard, magicspam

Post Reply
lifeboat
Posts: 1
Joined: Mon Jul 28, 2014 7:17 am

MagicSpam keeps stopping on Plesk 12

Post by lifeboat » Mon Jul 28, 2014 7:24 am

Since upgrading to Plesk 12 I have been having problems with MagicSpam stopping working. I am on the newest version of MagicSpam v1.0.6-1.4. It will work for 3 or 4 days and then stop recording emails to the log and blocking SPAM. If I disable MagicSpam and re-enable it, it starts working again and will last for another 3 or 4 days. Any ideas on how to fix this?

magicspam
Posts: 1553
Joined: Tue Oct 28, 2008 2:27 pm

Re: MagicSpam keeps stopping on Plesk 12

Post by magicspam » Mon Jul 28, 2014 3:37 pm

Hello,

Thank you for your post and we are sorry to hear about this difficulty. If you could, please respond with the output of the following commands:

Code: Select all

ls -laRtr /var/log/magicspam

Code: Select all

ls -laRtr /etc/magicspam
(there should be no sensitive information in the output, but feel free to remove the username and hostname from your prompt)

We are concerned that the permissions may not be correct in your installation.

Thanks!
-- MagicSpam Support Team --

qiubits
Posts: 3
Joined: Thu Sep 25, 2014 12:04 am

Re: MagicSpam keeps stopping on Plesk 12

Post by qiubits » Thu Sep 25, 2014 12:10 am

Hi,

it seems that we have the same problem with logging since upgrade to 1.0.8-1. The last Recent Log Entries are from 22nd september when we have made the upgrade.

Server config: CentOS 5.6 (64-bit)
Plesk: 12.0.18 with Postfix
Upgrade file: magicspam-plesk-1.0.8-1-rhel564-postfix.x86_64.rpm

Here are the outputs:

*********************
ls -laRtr /var/log/magicspam

-rw-r--r-- 1 10086 2523 351804 Apr 22 2011 mslog.31
-rw-r--r-- 1 10086 2523 500 Oct 31 2013 .counter.dat.10
-rw-r--r-- 1 10086 2523 500 Nov 30 2013 .counter.dat.11
-rw-r--r-- 1 10086 2523 500 Dec 31 2013 .counter.dat.12
-rw-r--r-- 1 10086 2523 500 Jan 31 2014 .counter.dat.01
-rw-r--r-- 1 10086 2523 500 Feb 28 2014 .counter.dat.02
-rw-r--r-- 1 10086 2523 500 Mar 31 23:58 .counter.dat.03
-rw-r--r-- 1 10086 2523 500 Apr 30 23:59 .counter.dat.04
-rw-r--r-- 1 10086 2523 500 May 31 23:58 .counter.dat.05
-rw-r--r-- 1 10086 2523 500 Jun 30 23:59 .counter.dat.06
-rw-r--r-- 1 10086 2523 500 Jul 31 23:58 .counter.dat.07
-rw-r--r-- 1 10086 2523 237113 Aug 23 23:56 mslog.30
-rw-r--r-- 1 10086 2523 239794 Aug 24 23:59 mslog.29
-rw-r--r-- 1 10086 2523 592614 Aug 25 23:57 mslog.28
-rw-r--r-- 1 10086 2523 730615 Aug 26 23:59 mslog.27
-rw-r--r-- 1 10086 2523 694704 Aug 27 23:58 mslog.26
-rw-r--r-- 1 10086 2523 742578 Aug 28 23:58 mslog.25
-rw-r--r-- 1 10086 2523 1886679 Aug 30 00:00 mslog.24
-rw-r--r-- 1 10086 2523 313674 Aug 30 23:59 mslog.23
-rw-r--r-- 1 10086 2523 240105 Aug 31 23:55 mslog.22
-rw-r--r-- 1 10086 2523 500 Aug 31 23:55 .counter.dat.08
-rw-r--r-- 1 10086 2523 662580 Sep 1 23:58 mslog.21
-rw-r--r-- 1 10086 2523 817948 Sep 2 23:56 mslog.20
-rw-r--r-- 1 10086 2523 826808 Sep 3 23:59 mslog.19
-rw-r--r-- 1 10086 2523 809890 Sep 4 23:59 mslog.18
-rw-r--r-- 1 10086 2523 859630 Sep 5 23:59 mslog.17
-rw-r--r-- 1 10086 2523 424377 Sep 7 00:00 mslog.16
-rw-r--r-- 1 10086 2523 327976 Sep 7 23:59 mslog.15
-rw-r--r-- 1 10086 2523 774441 Sep 8 23:59 mslog.14
-rw-r--r-- 1 10086 2523 796946 Sep 9 23:59 mslog.13
-rw-r--r-- 1 10086 2523 875312 Sep 10 23:59 mslog.12
-rw-r--r-- 1 10086 2523 883240 Sep 11 23:57 mslog.11
-rw-r--r-- 1 10086 2523 862251 Sep 12 23:57 mslog.10
-rw-r--r-- 1 10086 2523 340357 Sep 13 23:58 mslog.9
-rw-r--r-- 1 10086 2523 280711 Sep 14 23:59 mslog.8
-rw-r--r-- 1 10086 2523 773615 Sep 15 23:59 mslog.7
-rw-r--r-- 1 10086 2523 500 Sep 16 07:55 .counter.dat.09
-rw-r--r-- 1 10086 2523 956796 Sep 16 23:59 mslog.6
drwxr-xr-x 2 root root 4096 Sep 17 19:43 .
-rw-r--r-- 1 10086 2523 1124132 Sep 17 23:59 mslog.5
-rw-r--r-- 1 10086 2523 1395044 Sep 18 23:59 mslog.4
-rw-r--r-- 1 10086 2523 1296409 Sep 19 23:59 mslog.3
-rw-r--r-- 1 10086 2523 626246 Sep 20 23:59 mslog.2
-rw-r--r-- 1 10086 2523 498918 Sep 21 23:57 mslog.1
-rw-r--r-- 1 10086 2523 631628 Sep 22 16:31 mslog
drwxr-xr-x 31 root root 4096 Sep 25 06:06 ..
-rw-r--r-- 1 10086 2523 749 Sep 25 08:51 .counter2.dat.09
*********************
ls -laRtr /etc/magicspam
-rw-r--r-- 1 psaadm psaadm 130 Mar 7 2012 rules.enabled
-rw-r--r-- 1 psaadm psaadm 42 Mar 7 2012 rules.disabled
-rw-r--r-- 1 psaadm psaadm 10 Aug 21 2012 1.read
-rw-r--r-- 1 psaadm psaadm 3 Sep 16 07:56 ra_flag_timeout
-rw-r--r-- 1 psaadm psaadm 3 Sep 16 07:56 ra_count_limit
-rw-r--r-- 1 psaadm psaadm 5 Sep 16 07:56 ra_block_timeout
-rw-r--r-- 1 psaadm psaadm 15686 Sep 22 23:49 valid_domain_ips
-rw-r--r-- 1 psaadm psaadm 10 Sep 25 08:40 1.last
-rw-r--r-- 1 psaadm psaadm 10 Sep 25 08:40 5.last
-rw-r--r-- 1 psaadm psaadm 1636 Sep 25 08:40 1.cache
-rw-r--r-- 1 psaadm psaadm 6 Sep 25 08:40 5.cache
-rw-r--r-- 1 psaadm psaadm 3 Sep 25 08:50 rl_flag_timeout
-rw-r--r-- 1 psaadm psaadm 3 Sep 25 08:50 rl_count_limit
-rw-r--r-- 1 psaadm psaadm 5 Sep 25 08:50 rl_block_timeout
-rw-r--r-- 1 psaadm psaadm 2 Sep 25 08:50 logdays
-rw-r--r-- 1 psaadm psaadm 17 Sep 25 08:50 admin_email
-rw-r--r-- 1 psaadm psaadm 14 Sep 25 08:51 bms.enabled
-rw-r--r-- 1 psaadm psaadm 2 Sep 25 08:52 enabled
*************************

Thanks for any help.

qiubits
Posts: 3
Joined: Thu Sep 25, 2014 12:04 am

Re: MagicSpam keeps stopping on Plesk 12

Post by qiubits » Thu Sep 25, 2014 12:41 am

A following note to my last post. The expiry date of the license is wrong.

Expires: June 5, 2025.

But we have a yearly subscription.

magicspam
Posts: 1553
Joined: Tue Oct 28, 2008 2:27 pm

Re: MagicSpam keeps stopping on Plesk 12

Post by magicspam » Thu Sep 25, 2014 3:21 pm

Hello Quibits,

Thank you for your email. Another log rotation issue has been reported lately and our developement team is currently (as I type this!) working on final testing of a 1.0.8-1.1 package. Please contact us via email at support@magicspam.com with your license key, platform/MTA, OS and archetecture. We would like to give you an early copy of this package so that your pain point can be addressed right away.

Also, the file owernships in /var/log/magicspam/ aren't correct, we will provide you with some instructions for that as well.

Regarding the expiry, that is quite odd! We can also address this issue, luckily we have plenty of time to deal with that! :)


Thanks Quibits,
-- MagicSpam Support Team --

magicspam
Posts: 1553
Joined: Tue Oct 28, 2008 2:27 pm

Re: MagicSpam keeps stopping on Plesk 12

Post by magicspam » Tue Sep 30, 2014 3:09 pm

Hello

The new version of MagicSpam addressed this issue.

Please make sure you are using the latest version of MagicSpam that is
currently 1.0.8-1.1 and can be downloaded on the following link.

http://www.magicspam.com/download


If you still have issues after the upgrade, please also make sure that
the file permission on /var/log/magicspam is correct.

cd /var/log
chown magicspam:magicspam magicspam

qiubits
Posts: 3
Joined: Thu Sep 25, 2014 12:04 am

Re: MagicSpam keeps stopping on Plesk 12

Post by qiubits » Tue Dec 02, 2014 5:07 am

Hi there,

after upgrade from 1.0.8-1.1 to 1.0.8-1.3 we have the same problem as with with the upgrade from 1.0.6 to 1.0.8-1. Magicspam keeps stopping with no creation of new logs or log files. Can't downgrade back to 1.0.8-1 because we don't have the old rpm anymore.

Thank you in advance for your help

With best regards

Gilles

magicspam
Posts: 1553
Joined: Tue Oct 28, 2008 2:27 pm

Re: MagicSpam keeps stopping on Plesk 12

Post by magicspam » Thu Dec 04, 2014 4:01 pm

Hello Qiubits,

Looking at the support history, the last time this occurred, it had been found that the permissions of files located
in /var/log/magicspam were incorrect. If you could please check this again by running:

ls -al /var/log/magicspam

All files there (as well as the directory itself) should be displayed as owned by user magicspam and group magicspam. If they are not, this can be corrected by running:

chown -R magicspam:magicspam /var/log/magicspam

(NOTE: looking at the last message sent to you regarding this, we note the command previously supplied to you was incomplete - missing the -R flag so it is possible that there might be lingering issues from that)


If you could also please verify that the cron job for 'rotate_logs' is set:

cat /etc/cron.d/magicspam-update

there should be a single line (NOTE: my email client will likely wrap this...) :

0 0 * * * magicspam /usr/share/magicspam/bin/rotate_logs /var/log/magicspam/mslog


If this is a case of 'magicspam stops logging', then when this event occurs (magicspam stops logging), can you confirm if the milter is still active by running the following command:

pidof magicspam-milter

It should print out a number if the process is running - otherwise it will do nothing. In the event that there is a blank line (eg: its not running_, if you could check to see if there are any log lines in /var/log/maillog related to magicspam-milter - this could help us to determine if there is a deeper issue.

We look forward to hearing back from you!

-- MagicSpam Support Team --

blazman
Posts: 1
Joined: Thu Feb 18, 2016 9:02 am

Re: MagicSpam keeps stopping on Plesk 12

Post by blazman » Thu Feb 18, 2016 12:53 pm

I have the same issue and this just stopped on the 15th. I changed nothing. The permissions were not correct but are correct now. when I run pidof magicspam-milter I do not get the number. I started and stopped magicspam and still no number when I run the command.

magicspam
Posts: 1553
Joined: Tue Oct 28, 2008 2:27 pm

Re: MagicSpam keeps stopping on Plesk 12

Post by magicspam » Thu Feb 18, 2016 3:45 pm

Hello blazman,

Just so everyone else can be informed, you emailed to inform us that after removing the MagicSpam extension and re-installing it, MagicSpam started working properly in your Plesk system.

As also mentioned in our email, the original issue could be caused by an update or modification by Plesk to the Postfix service in your server.

Please let us know if you have any further questions.


-- MagicSpam Support Team --
-- MagicSpam Support Team --

Post Reply

Return to “General Discussions and Support Questions”

Who is online

Users browsing this forum: No registered users and 4 guests