web interface does not work

Support forum for MailWasher Enterprise Server
cwh168998
Travelling Tuatara
Posts: 38
Joined: Wed Oct 28, 2015 4:10 am

web interface does not work

Wed Nov 23, 2016 10:12 am

Our web interface stopped working and we can not get mail. I downloaded new version and follow the upgrade instruction. after upgrade, it still does not work.
But if I use /opt/mwes/mwes.run console, the filter works. but web interface still not work. here is part of the /var/log/mwes/mail.log file:

<mwes>
<VersionNumber>3.0.0.10</VersionNumber>
<VersionURL>http://www.firetrust.com/en/products/ma ... VersionURL>
</mwes>
2016-11-22 15:58:03 [4089718528] Error: ListenTCPSocketThread::ObjectThreadMethod - SocketException - Listen - bind :: failed with code 99: Cannot assign requested address
2016-11-22 15:58:03 [4089718528] Info: ListenTCPSocketThread::ObjectThreadMethod - stopped
User avatar
nick.bolton
The Big Cheese
Posts: 2468
Joined: Thu Aug 28, 2008 4:02 pm

Re: web interface does not work

Wed Nov 23, 2016 12:08 pm

Hi

Did you change something on your machine? This means a nonexistent interface was requested or the requested address was not local.

Can you go in to the mwes.db file in \opt\mwes (it's an SQLite database), configure table and change the web hostname to blank then it will bind to all interfaces.
cwh168998
Travelling Tuatara
Posts: 38
Joined: Wed Oct 28, 2015 4:10 am

Re: web interface does not work

Thu Nov 24, 2016 12:44 pm

Thank you very much.
After clear Web host name, the web interface works.
But in Tab "Emails" there are only "ALL EMAILS" and "QUARANTINED". There is no "Grey Listed Email". But it is empty in "ALL EMAILS" or "QUARANTINED".
Please help.
User avatar
nick.bolton
The Big Cheese
Posts: 2468
Joined: Thu Aug 28, 2008 4:02 pm

Re: web interface does not work

Thu Nov 24, 2016 1:48 pm

Can you do the system check and make sure everything is working - Go to Settings>>Setup>>Check
cwh168998
Travelling Tuatara
Posts: 38
Joined: Wed Oct 28, 2015 4:10 am

Re: web interface does not work

Tue Nov 29, 2016 3:43 am

SMTP Failed The check noticed you are not running MWES on 192.168.0.68 port 25. Possible reason.
Not enough privileges binding to this port. Please fix this then restart MWES

How to fix it?

Thanks for the help.
User avatar
nick.bolton
The Big Cheese
Posts: 2468
Joined: Thu Aug 28, 2008 4:02 pm

Re: web interface does not work

Tue Nov 29, 2016 6:11 am

That error means that MWES can't bind to 25 - in a Windows server, it’s either because something else is bound to it (i.e.: exchange hasn’t been removed/stopped from the interface), or you’re not running the MWES service as a privileged enough user (Administrator or Domain Administrator).

If MWES can't bind to port 25 - that either means permissions are not correct, or something else is binding to port 25, so MWES can't.

Start by checking the windows logs for permission errors, then look to see what services are running on port 25 currently.
cwh168998
Travelling Tuatara
Posts: 38
Joined: Wed Oct 28, 2015 4:10 am

Re: web interface does not work

Wed Nov 30, 2016 4:33 am

Thank you for responding.
The server is SUSE Linux Enterprise Server 12 (x86_64)
VERSION = 12
PATCHLEVEL = 0
Linux mwes 3.12.28-4-default #1 SMP Thu Sep 25 17:02:34 UTC 2014 (9879bd4) x86_64 x86_64 x86_64 GNU/Linux

mwes can receiving emails and filter them. But just show empty in "EMAILS"

Here is part of the log:
2016-11-29 10:31:14 [4202678016] Debug: Start Processing Email ID(9011)...
2016-11-29 10:31:14 [4202678016] Debug: MilterContext::ProcessEmail - Start Construct Email ID(9011), mail from:<sarwan.kumar@diverselynx.com>
2016-11-29 10:31:14 [4202678016] Debug: MilterContext::ProcessEmail - End Construct Email ID(9011)
2016-11-29 10:31:14 [4202678016] Info: LicenseManager::UserLicenseMax - email(kris@***.com) already exists
2016-11-29 10:31:14 [4202678016] Debug: Email ID(9011) Not in cfs cache...
2016-11-29 10:31:14 [4202678016] Debug: Email ID(9011) cfs ok...
2016-11-29 10:31:14 [4202678016] Debug: Successfully added Email ID(9011) to FilterManagerThread Queue for checking...
2016-11-29 10:31:14 [444581632] Warning: ListenTCPSocketThread::ObjectThreadMethod - max sockets reached, throttling
2016-11-29 10:31:14 [444581632] Debug: ListenTCPSocketThread::ObjectThreadMethod - Connected IP(103.252.245.85)
2016-11-29 10:31:14 [444581632] Debug: SMTPChannel::Create - new 5
2016-11-29 10:31:14 [427796224] Debug: SMTPChannel::PutClientLine: Email ID(9012) From Relay(192.168.0.28) To Client IP(103.252.245.85) 220 mail.***.com Mailwasher Enterprise Server (MWES) version 3.0.0.10 {U64}
2016-11-29 10:31:14 [419403520] Debug: Email ID(9010) Not found in RBL(multi.surbl.org) URL[gigzy.com] Response(0.0.0.0)...
2016-11-29 10:31:14 [419403520] Debug: RBL Check - End
2016-11-29 10:31:15 [427796224] Debug: SMTPChannel::GetClientLine: Email ID(9012) MAIL From:<prvs=114102239e=sumitt1@damcogroup.co> SIZE=19907
2016-11-29 10:31:15 [427796224] Debug: SMTPChannel::PutClientLine: Email ID(9012) From Relay(192.168.0.28) To Client IP(103.252.245.85) 250 2.1.0 Ok
2016-11-29 10:31:16 [427796224] Debug: SMTPChannel::GetClientLine: Email ID(9012) RCPT To:<kris@***.com>
2016-11-29 10:31:16 [427796224] Debug: SMTPChannel::PutClientLine: Email ID(9012) From Relay(192.168.0.28) To Client IP(103.252.245.85) 250 2.1.5 Ok
2016-11-29 10:31:16 [427796224] Debug: SMTPChannel::GetClientLine: Email ID(9012) DATA
2016-11-29 10:31:16 [427796224] Debug: SMTPChannel::PutClientLine: Email ID(9012) From Relay(192.168.0.28) To Client IP(103.252.245.85) 354 Enter mail, end with "." on a line by itself
2016-11-29 10:31:16 [444581632] Warning: ListenTCPSocketThread::ObjectThreadMethod - max sockets reached, throttling
2016-11-29 10:31:17 [427796224] Debug: Start Processing Email ID(9012)...
2016-11-29 10:31:17 [427796224] Debug: MilterContext::ProcessEmail - Start Construct Email ID(9012), mail from:<prvs=114102239e=sumitt1@damcogroup.co>
2016-11-29 10:31:17 [427796224] Debug: MilterContext::ProcessEmail - End Construct Email ID(9012)
2016-11-29 10:31:17 [427796224] Info: LicenseManager::UserLicenseMax - email(kris@***.com) already exists
2016-11-29 10:31:17 [427796224] Debug: Email ID(9012) Not in cfs cache...
2016-11-29 10:31:17 [427796224] Debug: Email ID(9012) cfs ok...
2016-11-29 10:31:17 [427796224] Debug: Successfully added Email ID(9012) to FilterManagerThread Queue for checking...

Here is the netstat result:

mwes:/opt/mwes # netstat -tapn
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 10 0 192.168.0.68:25 0.0.0.0:* LISTEN 29777/mwes.run
tcp 0 0 192.168.0.68:25 104.47.124.73:10716 SYN_RECV -
tcp 0 0 192.168.0.68:25 74.115.250.73:49479 SYN_RECV -
tcp 0 0 192.168.0.68:25 66.216.179.187:44796 SYN_RECV -
tcp 0 0 192.168.0.68:25 65.39.215.62:6273 SYN_RECV -
tcp 0 0 192.168.0.68:25 51.254.70.45:54958 SYN_RECV -
tcp 0 0 192.168.0.68:25 199.122.125.159:39985 SYN_RECV -
tcp 0 0 192.168.0.68:25 104.47.34.91:32022 SYN_RECV -
tcp 0 0 0.0.0.0:4044 0.0.0.0:* LISTEN 29777/mwes.run
tcp 0 0 192.168.0.68:25 209.85.192.175:34114 ESTABLISHED -
tcp 0 0 192.168.0.68:25 104.47.42.113:37536 ESTABLISHED 29777/mwes.run
tcp 0 0 192.168.0.68:43027 209.213.221.163:4051 TIME_WAIT -
tcp 0 0 192.168.0.68:25 192.99.26.24:27204 TIME_WAIT -
tcp 0 0 192.168.0.68:25 198.245.85.161:47186 ESTABLISHED -
tcp 0 0 192.168.0.68:25 122.112.65.159:63463 TIME_WAIT -
tcp 0 0 192.168.0.68:43037 209.213.221.163:4051 TIME_WAIT -
tcp 0 0 192.168.0.68:57473 209.213.221.164:4051 TIME_WAIT -
tcp 0 0 192.168.0.68:57468 209.213.221.164:4051 TIME_WAIT -
tcp 0 0 192.168.0.68:57457 209.213.221.164:4051 TIME_WAIT -
tcp 0 0 192.168.0.68:25 136.147.180.69:47908 ESTABLISHED -
tcp 0 0 192.168.0.68:57478 209.213.221.164:4051 TIME_WAIT -
tcp 0 0 192.168.0.68:25 216.82.243.197:14224 ESTABLISHED -
tcp 0 0 192.168.0.68:25 136.147.187.45:42994 ESTABLISHED 29777/mwes.run
tcp 0 0 192.168.0.68:25 74.201.30.40:47299 ESTABLISHED 29777/mwes.run
tcp 0 0 192.168.0.68:25 136.147.180.98:35908 ESTABLISHED 29777/mwes.run
tcp 0 0 192.168.0.68:25 104.47.42.136:28516 ESTABLISHED -
tcp 0 0 192.168.0.68:25 64.50.148.123:60522 ESTABLISHED -
tcp 0 0 192.168.0.68:25 216.82.243.203:41270 ESTABLISHED 29777/mwes.run
tcp 0 0 192.168.0.68:25 74.115.250.90:44051 ESTABLISHED -
tcp 0 0 192.168.0.68:25 178.248.184.193:34123 ESTABLISHED -
tcp 1 0 192.168.0.68:25 72.9.101.101:33945 CLOSE_WAIT -
tcp 0 0 192.168.0.68:25 68.232.194.199:50210 ESTABLISHED -
tcp 0 0 192.168.0.68:43032 209.213.221.163:4051 TIME_WAIT -
User avatar
nick.bolton
The Big Cheese
Posts: 2468
Joined: Thu Aug 28, 2008 4:02 pm

Re: web interface does not work

Wed Nov 30, 2016 6:06 am

Sorry, yes you are using Linux. Do you mean it's showing empty in the 'ALL EMAILS' screen?
Can you update to this version, it has quite a few fixes. http://cdn.firetrust.com/downloads/mwes ... 014.tar.gz although the empty screen is odd. If this doesn't fix it, can you send me the full logs to nick.bolton@firetrust.com
cwh168998
Travelling Tuatara
Posts: 38
Joined: Wed Oct 28, 2015 4:10 am

Re: web interface does not work

Wed Nov 30, 2016 7:04 am

Thank you.
The new version is better. It now passed all the "SYSTEM CHECK" after installed it. But the "ALL EMAIL" is still empty. Then I went back to do the "SYSTEM CHECK" , smtp failed again.
I noticed , even I start mwesd as root, but mwes still run as user "mwes" :

mwes:/home/eta/Downloads/mwes64-3014 # /etc/init.d/mwesd start
Starting Mailwasher Enterprise Server: mwes started...

done
mwes:/home/eta/Downloads/mwes64-3014 # ps -ef|grep mw
root 282 2 0 Nov22 ? 00:00:00 [btrfs-rmw-1]
mwes 58705 1 3 12:55 pts/0 00:00:14 /opt/mwes/mwes.run start
root 58889 2159 0 13:03 pts/0 00:00:00 grep --color=auto mw

I will send log file to your email. Please help.
User avatar
nick.bolton
The Big Cheese
Posts: 2468
Joined: Thu Aug 28, 2008 4:02 pm

Re: web interface does not work

Wed Nov 30, 2016 7:05 am

You also need to install MWES as root.
cwh168998
Travelling Tuatara
Posts: 38
Joined: Wed Oct 28, 2015 4:10 am

Re: web interface does not work

Wed Nov 30, 2016 8:07 am

Yes, I did install MWES as root.

This happened after the old version MWES' web interface not working. I then upgraded it to 3.0.0.10. and copied mwes.db to the new version. Does the database file compatible with each other? How to check the old MWES' version without running it?
User avatar
nick.bolton
The Big Cheese
Posts: 2468
Joined: Thu Aug 28, 2008 4:02 pm

Re: web interface does not work

Wed Nov 30, 2016 8:08 am

Here's the problem.

The mwes.db (database file) appears to be set to read only, this will cause problems..
mwes needs full access to this file, it stores all quarantine emails and stats.
See mwes.db in \opt\mwes

And yes, the database file is compatible, it upgrades itself.
cwh168998
Travelling Tuatara
Posts: 38
Joined: Wed Oct 28, 2015 4:10 am

Re: web interface does not work

Wed Nov 30, 2016 8:22 am

I changed its permission. and restarted MWES. But "ALL EMAIL" is still empty.

I sent the new log file to you. please check it.

Please help.
User avatar
nick.bolton
The Big Cheese
Posts: 2468
Joined: Thu Aug 28, 2008 4:02 pm

Re: web interface does not work

Wed Nov 30, 2016 8:31 am

Still the same problem with the readonly database as you can see in the logs

Return to “MailWasher Enterprise Server”