User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
email:mailscanner [2026/04/13 12:35] willyemail:mailscanner [2026/04/13 14:52] (current) – [Web interface] willy
Line 6: Line 6:
 ===== Installation ===== ===== Installation =====
  
-Simply emerge it:+My VPS is pretty ancient and the CPU does not support sse4_2, instructions, so i had to disable **hyperscan** use flag by writing the following **/etc/portage/package.use/rspamd** file: 
 +<file - rspamd> 
 +mail-filter/rspamd  -hyperscan 
 +</file> 
 + 
 +Now simply emerge it:
 <code bash> <code bash>
 emerge -vp rspamd dev-db/redis emerge -vp rspamd dev-db/redis
Line 86: Line 91:
 done done
 </code> </code>
 +
 +
 +===== Web interface =====
 +
 +By default rspamd web interface is exposed on **http://127.0.0.1:11334/** but of course, you must slap NGINX in front of it. I choose to expose it as **https://mail.mydomain.com/rspamd/** so add the following to your NGINX setup for **mail.mydomain.com**:
 +<code>
 +        location /rspamd/ {
 +                proxy_pass http://127.0.0.1:11334/;
 +                proxy_redirect    default;
 +                proxy_set_header  Host $host;
 +                proxy_set_header  X-Real-IP $remote_addr;
 +                proxy_set_header  X-Forwarded-For $proxy_add_x_forwarded_for;
 +                proxy_set_header  X-Forwarded-Host $server_name;
 +                proxy_set_header  X-Forwarded-Proto $scheme;
 +        }
 +</code>
 +