• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Plesk 11.5: /etc/init.d/psa-spamassassin: not found

igraf

Regular Pleskian
Hello
I have problems with updates from Spamassassin

under "/var/log/sa-update.log" get the following error message
/etc/cron.daily/60sa-update: 9: /etc/init.d/psa-spamassassin: not found

psa-spamassassin does not exist, only spamassassin
http://kb.parallels.com/de/111283

how can i fix the error?

Debian 6.0.8
11.5.30 Update #25

igraf
 
Last edited:
What are the contents of your /etc/cron.daily/60sa-update?

Normally it should be:
Code:
#!/bin/sh
### Copyright 1999-2012. Parallels IP Holdings GmbH. All Rights Reserved.

sa_update()
{
        /usr/bin/sa-update
        local rc="$?"
        case $rc in
                # Only restart spamd if sa-update returns 0, meaning it updated the rules
                0) env PATH=/opt/psa/admin/sbin:/usr/local/psa/admin/sbin:$PATH spammng --condrestart ;;
                # If sa-update returns 1 then there are no updates
                1) exit 0 ;;
        esac
        return $rc
}

sa_update >> /var/log/sa-update.log 2>&1
 
hi
I have two files
can i delete "60SA-update" and "60SA-update.dpkg-dist" rename to "60SA-update"?

60sa-update
Code:
#!/bin/sh

/usr/bin/sa-update >> /var/log/sa-update.log 2>&1
ERR=$?

# Only restart spamd if sa-update returns 0, meaning it updated the rules
if [ $ERR -eq 0 ]; then
	/etc/init.d/psa-spamassassin restart >> /var/log/sa-update.log 2>&1
fi

# if sa-update returns 1 when there are no updates
if [ $ERR -eq 1 ]; then
	exit 0;
fi

exit $ERR


60sa-update.dpkg-dist
Code:
#!/bin/sh
### Copyright 1999-2012. Parallels IP Holdings GmbH. All Rights Reserved.

sa_update()
{
	/usr/bin/sa-update
	local rc="$?"
	case $rc in
		# Only restart spamd if sa-update returns 0, meaning it updated the rules
		0) env PATH=/opt/psa/admin/sbin:/usr/local/psa/admin/sbin:$PATH spammng --condrestart ;;
		# If sa-update returns 1 then there are no updates
		1) exit 0 ;;
	esac
	return $rc
}

sa_update >> /var/log/sa-update.log 2>&1
 
Last edited:
Back
Top