CyberPanel Community

MAILSCANNER

lo
localwork #1

Hello,

I just make the installation of MAILSCANNER inside of CyberPanel.

When I go and click ACCESS NOW after the installation it’s opening a tab to:

:8090/mailwatch/mailscanner/login.php

Anyone know this credentials to login? Also I try to change admin password at:

phpmyadmin > mailscanner > users > admin

I make it MD5 and try to login with the credentials admin and the password that I put and nothing done.

Also I tried and change the mailwatch database password for mailscanner but nothing happened.

Can anyone guide me how to access the panel OR to test that MailScanner and Mailwatch now run as should be?

Thank you!

23 replies
lo
localwork #2

** Problem Solved **

To all those that want after the installation to have access to :8090/mailwatch/mailscanner/login.php you must change from

/usr/local/CyberCP/public/mailwatch/mailscanner/conf.php

these:

define(‘DB_TYPE’, ‘mysql’);
define(‘DB_USER’,‘mailwatch’);
define(‘DB_PASS’, ‘YOUR_PASSWORD’);
define(‘DB_HOST’, ‘localhost’);
define(‘DB_NAME’, ‘mailscanner’);

:slight_smile:

Ni
NiiYankee #3

I am getting this error: Error: Database connection failed

It is possible that the database is overloaded or otherwise not running properly

Contact the system administrator if the problem persists

Any help?

uz
uzairjhandeer #4

how to reinstall mailscanner or remove

hi
hieu #5

The installation does everything for you. Login with the user/password you used to login to Cyberpanel admin

I tried my user/password you used to login to Cyberpanel admin but it doesn’t work.

hi
hieu #6

For some reason, it doesn’t work at my end. I tried MailScanner database login info. It doesn’t work too. Screenshot at MailScanner DB info: https://i.hido.tech/agaHwl

ch
chiareu #7

I confirm @hieu - Bad Username or Password
Also after Mailscanner install, Outlook was disconnected from the server - ERROR The connection to the server failed or was dropped.

ch
chiareu #8

Seems that postfix stopped to work :slight_smile:
warning: /usr/libexec/postfix/smtpd: bad command startup – throttling

ps. on CloudLinux server with 2.0.1 CP

ch
chiareu #9

Completely messed up a production server, I’m beginning to hate all of that.
A running server based on CloudLinux 7.8, with updated Cyperpanael from 2.0 to 2.0.1
Activated/Installed the Mailscanner from CP.

Can’t login to Mailscanner interface: Bad Username or Password with CP credentials.

Also, the mail server becomes unusable. I do not know what was changed but a connection to mail server it’s no more possible.

warning: SASL: Connect to private/auth failed: Connection refused
fatal: no SASL authentication mechanisms

tried to uninstall MailScanner, but this system receives updated only form CLN :slight_smile: and refused to uninstall; I think it may not have been fully installed first way.

great update and a no more hair on my head after this day :frowning:

ch
chiareu #10

On CloudLinux, Dovecot has problems with sieve plugin and failed to start, for that reason Postfix failed to start too.
I need to manually remove any sieve configuration from Dovecot in order to be able to start the mail service.
But emails still not working, everything remains to onhold in the queue.

ch
chiareu #11

MailScanner story on CloudLinux, part2:

  • I manually changed the password for user admin in MailScanner database and I can login to the web interface.

Now I’m running in exactly this issue:

ch
chiareu #12

Manual run upgrade CP, dovecot sieve settings are in place again.
I manage to start dovecot with siege after install dovecot-pigeonhole who was missing. I do not know why but was not installed before.

Mailscanner has the same issue

Hi
Hifihedgehog #13

The installation does everything for you. Login with the user/password you used to login to Cyberpanel admin

I just ran the install and while in theory this should be true, in practice, it is not. It could have something to do with my CyberPanel using two-factor authentication. All I know is when I try to enter my administrator username and password, it claims bad username or password.

Hi
Hifihedgehog #14

Respectfully, I provided the details above for your review. I realize I don’t expect a response, but you don’t really provide any follow up beyond terse comments and saying “but my setup works.” This is the CyberPanel community meaning it requires some engagement from your end. Respectfully, it comes off as dismissive and standoffish when you respond telling users “but it works on my setup.” This is a pattern I have noticed in various threads, and it is not the best approach for inspiring engagement from the userbase. Not all installations and environments are equal. In light of this, addressing real-world problems requires real-world approaches and not canned responses.

Hi
Hifihedgehog #15

I parsed the code for mailscannerinstaller.sh and the issue is down to this line:

cat /etc/cyberpanel/adminPass
cat: /etc/cyberpanel/adminPass: No such file or directory

I personally would never touch nor delete this. If memory serves me, was this file removed in any of the previous releases (maybe by mistake?) in response to one of the security audits? I know for a fact that keeping a password in plain text format is generally a big no-no, so that may be why it got removed in a past release. I know I certainly did not delete it, so it may have been a CyberPanel update that had removed it.

Hi
Hifihedgehog #16

Here is a fix for MailScanner. Add this at the end of your conf.php file and ClamAV and Postfix’s version information should now show up properly.

putenv(‘PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin’);

sn
saeed nemati #17

Hi

for

:8090/mailwatch/mailscanner/login.php

try this
user name:admin
Password:1234567

LT
Learning_Today #18

I shared a question about how to change the password for the login to mailwatch. For many i am sure it was easy but for me i did not see the solution at first. Since i was able to change it after some time i wanted to share it with others who might had the same question onserning it.

  1. Under mail settings in CP i installed the mailscanner
  2. After install i clicked the blue access now button
  3. i used user: admin Password: 1234567 to login to mailwatch
  4. Went to Tools and links on the mailwatch panel
  5. Under tools i chose - user management
  6. You find the admin user there- edit it
  7. Add a strong password and choose update
    8.Log out and in again to mailwatch
LT
Learning_Today #19

I shared a question about how to change the password for the login to mailwatch. For many i am sure it was easy but for me i did not see the solution at first. Since i was able to change it after some time i wanted to share it with others who might had the same question conserning it.

  1. Under mail settings in CP i installed the mailscanner
  2. After install i clicked the blue access now button
  3. i used user: admin Password: 1234567 to login to mailwatch
  4. Went to Tools and links on the mailwatch panel
  5. Under tools i chose - user management
  6. You find the admin user there- edit it
  7. Add a strong password and choose update
    8.Log out and in again to mailwatch
dg
dgswim #20

having all of these same issues. Can not remove MailScanner, can not check email, cant do anything. Our servers ability to do anything with email is fing dead. why is this fing mailscanner here if it IS going to f up people system?

dg
dgswim #21

Mar 12 14:07:29 server postfix/smtpd[5388]: warning: SASL: Connect to private/auth failed: Connection refused
Mar 12 14:07:29 server postfix/smtpd[5388]: fatal: no SASL authentication mechanisms
Mar 12 14:07:30 server postfix/master[3190]: warning: process /usr/libexec/postfix/smtpd pid 5388 exit status 1
Mar 12 14:07:30 server postfix/master[3190]: warning: /usr/libexec/postfix/smtpd: bad command startup – throttling

Dr
DrGkGyN #22

@saeed said:
Hi

for

:8090/mailwatch/mailscanner/login.php

try this
user name:admin
Password:1234567

This resolved the issue simply! Thanks.
Now, how to change this password?

No
Noor #23

this is not working for me. I have tried even after changing cyberpanel password and after deactivate 2 factor authentication

JM
Julio Marchi #24

I am testing CyberPanel in the hopes of replacing my current WHM/CPanel hosts, and I must say that I have been pretty let down by the community so far. I do not understand why there is not more involvement to help users, who will eventually be able to assist others (and such a chain is the core of any open-source community).

In any case, even though I am a new user, I will try to lead by example and offer a workable solution to lessen these issues with MailScanner access.

Although I was unable to find a workaround online, the workaround is actually fairly easy:

  1. Launch PHPMyAdmin and choose the “mailscanner” database.
  2. Locate and click on the “users” table. There is already a user named “admin,” but the password seems to be a simple MD5, while it should be a bcrypt hash of some sort.
  3. To fix it, using the SQL tool from the PHPMyAdmin, execute the following query:

INSERT INTO mailscanner.users SET username = 'admin2', password = MD5('<password>'), fullname = 'Admin Two', type = 'A';

Replace <password> with your CyberAdmin password (or any other of your choice), and then execute the query.

  1. Here’s the crazy step: Return to the users table and locate the newly added record (the admin2), then copy the password from the admin2 to the admin user as it appears in the password column. You can complete it directly from the table view. Simply double-click on the admin2 password, select and copy it, then double-click the other one (from admin), clean it up, and paste the copied value.
  1. That is all! Simply try logging in to MailWatch again, and your credentials should work!

Why is the fourth step so crazy? If you look back in the mailscanner database’s users table, you will notice that the admin password no longer is the same as the admin2 password you can see in the table row, despite the fact that you just copied the password from admin2 to admin. So, why is that? Among other script errors, I believe the developer used the function MD5('<password>') as I did in my query, but the password field in the database appears to be a password MD5 hashed with Bcrypt (and not the plain MD5), and the code didn’t set it right (neither the MD5 references your CyberPanel password, so it would fail even if the developer had used the right Bcrypt code).

In any case, give it a shot because it is obviously not working, right? After I have done exactly that, mine works fine.

Oh, yeah, you can delete the admin2 user now. It is no longer useful.

Good luck!

Sign in to reply