Debian 4.86.1 beta

Jerry Benton jerry.benton at mailborder.com
Thu Jan 28 21:46:00 UTC 2016


Ok, two fixes:

— one

	# remove old link if present
	if [[ -d '/etc/spamassassin' && -L '/etc/spamassassin/mailscanner.cf' ]]; then
		rm -f /etc/spamassassin/mailscanner.cf
	fi
	
	if [[ -L '/etc/spamassassin/MailScanner.cf' ]]; then
		rm -f /etc/spamassassin/MailScanner.cf
	fi
	
	# create symlink for spamasassin
	if [[ -d '/etc/spamassassin' && ! -L '/etc/spamassassin/mailscanner.cf' && -f '/etc/MailScanner/spam.assassin.prefs.conf' ]]; then
		ln -s /etc/MailScanner/spam.assassin.prefs.conf /etc/spamassassin/mailscanner.cf 
	fi


— two

# softlink for custom functions
if [[ -d '/usr/share/MailScanner/perl/custom' && ! -L '/etc/MailScanner/custom' ]]; then
	ln -s /usr/share/MailScanner/perl/custom/ /etc/MailScanner/custom
fi


— note
It already checks during preinst for /etc/MailScanner/custom and moves the contents and deletes the directory or link.


-
Jerry Benton
www.mailborder.com



> On Jan 28, 2016, at 4:35 PM, Mark Sapiro <mark at msapiro.net> wrote:
> 
> /etc/spamassassin/mailscanner.cf



More information about the MailScanner mailing list