• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Question How to show logs for webmail.DOMAIN.com subdomain? Log section shows only logs for main domain

jmar83

Regular Pleskian
Server operating system version
Debian 10.13
Plesk version and microupdate number
18.0.66 Update #1
How to show logs for webmail.DOMAIN.com subdomain? I have a problem with roundcube webmail (shows me a http 403 instead to list the mails in the web GUI)

Log section shows only logs for main domain, but not for subdomains so it seems...

Thank you very much for your feedback(s).

1736218519799.png
 
Hmmm... yes, now i disabled the OWASP Webapp firewall on global settings (which means webapp firewall generally disabled) and now it works.

So: How to exclude the problematic rules for webmail.domain.com but not for domain.com?

And: So it seems, i can't use custom domain settings (on URL https://my-server.com:8443/smb/web/web-server-settings/id/[WEBSITE_ID]) because the domain is locked (not "disabled", otherwise i would not be able to use the mail system anymore)
 
UPDATE:
now i saw that domin.com/roundcube is not present - and also not domain.com/webmail. my system uses webmail.domain.com
 
Where are you trying to add the rule, please? It should be under Custom directives in Tools & Settings > Web Application Firewall (ModSecurity) > Settings rather than the domain/subdomain itself.
 
Thank you very much for your feedback. So: What do i need to add here to exclude OWASP webapp firewall for webmail.domain-a.com, webmail.domain-b.com, webmail.domain-c.com, ...
1736310862185.png
 
so i already said, on my plesk server roundcube is NOT on domain.com/webmail - it's on webmail.domain.com. (and no, i changed nothing on default configuration. i don't know on which plesk version roundcube is on /webmail URL path?)
 
For this particular rule it does not matter what domain/subdomain you are using. The default webmail URI should start with /roundcube/, which is what the rule is aimed at. However, it looks like you are using NGINX-based ModSecurity rule set. So, let's try blocking the rule causing the issue. Please check /var/log/modsec_audit.log for any ModSecurity entries matching webmail.domain.com. If there are any matches you can locate the rule ID and disable it as per this guide.
 
ok so now i changed to apache based modsec ruleset, not the apache config intrustions was saved but they are red and it still does not work

1736435569288.png1736435598969.png
 
If the issue is ModSecurity related, it possible for the request to be blocked excluding 'roundcube' from the URI. This is something that you should be able to verify in the logs. Could you please check /var/log/modsec_audit.log for any entries matching webmail.domain.com?
 
There is a list somewhere in the WWW with all rule IDs i have to disable (but i don't have the URL yet, need to search it) - so please just explain me to to apply there rules for domain webmail.domain.com... (on the main domain page, these subdomain does not seems to apply when i configure it on apache "custom settings")
 
(The rule IDs are useless when i can't apply them in plesk GUI... so i firstly need to know how to apply them before i search for that rule IDs... otherwise, its a waste of time i.m.o...)
 
now i asked ChatGPT for the rules / config instructions... but when i apply them on custom domain settings, i just get an error message
 

Attachments

  • Unbenannt.png
    Unbenannt.png
    55.6 KB · Views: 2
Last edited by a moderator:
So you see, the domain is locked for some reasons (which means website is not available anymore, but mail system still works)

So i think, the apache custom settings will not match anymore when the domain is locked - right? And also because of that the instructions config will result on a error AH00526
 
Back
Top