• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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