How can i remove EMAIL POLICY SERVER, SPAM ASSASIN AND MAIL SCANNER from my cyberpanel server, it is eating up my ram and i dont even know how to use it anyway
Happy New Year @Xdigit
To remove mail scanner
chmod +x /usr/local/CyberCP/CPScripts/mailscanneruninstaller.sh
/usr/local/CyberCP/CPScripts/mailscanneruninstaller.sh
To remove spamassassin on ubuntu
apt-get -y autoremove --purge spamassassin
To remove spamassassin on centos/almalinux
Run the commands line by line for centos/almalinux/ubuntu
vi /etc/postfix/master.cf || nano /etc/postfix/master.cf
remove this line
smtp inet n - n - - smtpd -o content_filter=spamassassin
and replace it with
# add below line
smtp inet n - n - - smtpd
Remove the following code which is at the end of the file /etc/postfix/master.cf
:
spamassassin unix - n n - - pipe flags=R user=spamd argv=/usr/bin/spamc -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
Also serach for these lines in /etc/postfix/main.cf
and delete them
smtpd_milters = inet:127.0.0.1:8891
non_smtpd_milters = $smtpd_milters
milter_default_action = accept
Finally, restart Postfix:
service postfix restart
Step 1 worked, but the guide in following step 1 just game me a compounding headache. I am new to Linux and don’t understand a anything in that post
I couldn’t find
smtpd_milters = inet:127.0.0.1:8891
non_smtpd_milters = $smtpd_milters
milter_default_action = accept
also, I don’t know how to save the file after removing
spamassassin unix - n n - - pipe flags=R user=spamd argv=/usr/bin/spamc -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
If you are using nano
just press CTRL+X on your keyboard you will be prompted to choose an action. Press Y to allow saving the changes
On vim just enter command mode and key in :wq
instead of q!
this will save your changes
thanks. How can i locate this code
smtpd_milters = inet:127.0.0.1:8891
non_smtpd_milters = $smtpd_milters
milter_default_action = accept
Edit /etc/postfix/main.cf
when i delete this
i cant make anymore input even the control X doesnt work. I am using Putty
Does this code exist in /etc/postfix/master.cf
?
Which os does your server run on ?
yes it exits. Ubuntu22.04

yes it exits. Ubuntu22.04
Then delete it that line and save the file
I can delete the line. saving it is the problem

If you are using
nano
just press CTRL+X you will be prompted to choose an action. Press Y to allow saving the changes
Use these instructions. Use your keyboard
i did nothing worked. and if i close putty and login again i still see the line
@Xdigit you did not remove the lines on /etc/postfix/master.cf
Following the steps here How can i remove email policy server, spamassassin and mail scanner from my cyberpanel server - #2 by josephgodwinke fixed the issue
This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.