-
-
Notifications
You must be signed in to change notification settings - Fork 621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add mailscanner uninstall option #400
Comments
Will require testing but I believe this should accomplish the task.
Tested on Ubuntu and worked perfect for me. Could use someone testing on Centos but don't see why it wouldn't work.
File added: @usmannasir Can we add an Uninstall button if it is installed? and map it to this script to current dev so we can test this? :8090/emailPremium/MailScanner Also there should be a warning that this should be installed in Low Ram VPS due to the high overhead without large swap. This will ensure people who go to install it are aware of the possible performance impacts before enabling on production server with 1-2GB ram. Recommending like 3-4GB unless there going to manually extend the swap. |
Hi, you might want to restore the dovecot and postfix config's backup created during mailscanner installation too. |
@aonsyed That would break all the spamassassin dovecot/sieve stuff which is unrelated to uninstalling Mailscanner. In hindsight the spamassassin dovecot sieve code should probably be ported to that installer to make this clearer. |
Dovecot and postfix settings are backed up after Spamassasin is installed and before all the modification are made for mailscanner
|
@aonsyed I fixed this up so all the spamassassin piggybacked code is in its own script to prevent confusion going forward. once the spamassassin script is executed at the end of the current python installSpamassassin function then this below commit should be merged From then on the mailscanner installer/uninstaller will only contain mailscanner related install requirements |
I am using centos 7 and after installed mailscanner my postfix stopped to answer on 25 port. errors: Sep 25 23:28:47 centos-2gb-hel1-1 postfix/smtpd[144907]: warning: SASL: Connect to private/auth failed: Connection refused
Sep 25 23:28:47 centos-2gb-hel1-1 postfix/smtpd[144907]: fatal: no SASL authentication mechanisms |
O Centos 7 I did: yum remove -y MailScanner
sed -i '/\/^Received:\/ HOLD/d' /etc/postfix/header_checks
rm -rf /etc/MailScanner
rm -rf /usr/share/MailScanner
rm -rf /usr/local/CyberCP/public/mailwatch
systemctl restart postfix dovecot It seems to be removed, however I continuing gettin SASL errors. |
I tried to remove all "sieve" related configuration from dovecot.conf: #protocols = imap pop3 lmtp sieve
protocols = imap pop3 lmtp
#service managesieve-login {
# inet_listener sieve {
# port = 4190
# }
#}
#service managesieve {
#}
#protocol sieve {
# managesieve_max_line_length = 65536
# managesieve_implementation_string = dovecot
# log_path = /var/log/dovecot-sieve-errors.log
# info_log_path = /var/log/dovecot-sieve.log
#}
#plugin {
#sieve = /home/vmail/%d/%n/dovecot.sieve
#sieve_global_path = /etc/dovecot/sieve/default.sieve
#sieve_dir = /home/vmail/%d/%n/sieve
#sieve_global_dir = /etc/dovecot/sieve/global/
#}
protocol lda {
mail_plugins = quota
#mail_plugins = sieve quota
protocol lmtp {
mail_plugins = quota
#mail_plugins = sieve quota I am comparing with a server that never installed mailscanner service... Now I am receiving emails and rainloop started to login again. But customers that add their mail account in Gmail are getting: I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<[email protected]> (expanded from <[email protected]>): user unknown |
I found dovecot and postfix backups and I applied them: [root@centos-2gb-hel1-1 dovecot]# ls -l /etc/dovecot/ | egrep -i bak
-rw-r--r--. 1 root root 3053 Sep 25 19:20 dovecot.conf-bak_2020-09-25_17_20:41
-rw-r-----. 1 root root 272 Sep 25 19:20 dovecot-sql.conf.ext-bak_2020-09-25_17_20:41
[root@centos-2gb-hel1-1 dovecot]#
[root@centos-2gb-hel1-1 ~]# ls -l /etc/postfix/ | egrep -i bak
-rw-r--r--. 1 root root 3093 Sep 25 19:20 main.cf-bak_2020-09-25_17_20:41
-rw-r-----. 1 root root 6395 Sep 25 19:20 master.cf-bak_2020-09-25_17_20:41
[root@centos-2gb-hel1-1 ~]# |
https://forums.cyberpanel.net/discussion/4394/mailscanner-issue
56c8742
Need button and uninstall script
The text was updated successfully, but these errors were encountered: