linux_server_manuals:dovecot_ldap_rspamd
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux_server_manuals:dovecot_ldap_rspamd [2018/01/15 17:48] – [rspamd] ronney | linux_server_manuals:dovecot_ldap_rspamd [2018/01/28 18:49] (current) – [Clamav integration] ronney | ||
|---|---|---|---|
| Line 153: | Line 153: | ||
| </ | </ | ||
| - | ====== Fail2ban for dovecot | + | ==== Fail2ban for dovecot ==== |
| use fail2ban with dovecot to ban ips which try several times to authenticate unsuccessful, | use fail2ban with dovecot to ban ips which try several times to authenticate unsuccessful, | ||
| Line 163: | Line 163: | ||
| - | ====== Postfix | + | ===== Postfix ===== |
| Install postfix | Install postfix | ||
| Line 211: | Line 211: | ||
| #map with aliases | #map with aliases | ||
| virtual_alias_maps = hash:/ | virtual_alias_maps = hash:/ | ||
| + | # If you have some docker containers or similar stuff, we need to add the | ||
| + | # 172.17.0.0/ | ||
| + | # If you don't use that subnet, you can leave that directive on it's default setting. | ||
| + | mynetworks = 127.0.0.0/8 [:: | ||
| </ | </ | ||
| Line 233: | Line 237: | ||
| </ | </ | ||
| - | ====== rspamd ====== | + | ===== rspamd |
| + | |||
| + | The documentation about the functionality and configuration of rspamd | ||
| + | The one here is working, but no garantees, that it is perfect.... | ||
| + | |||
| + | ==== Configuration | ||
| Install rspamd and redis. | Install rspamd and redis. | ||
| Line 245: | Line 254: | ||
| aptitude install rspamd redis-server | aptitude install rspamd redis-server | ||
| </ | </ | ||
| - | |||
| edit / | edit / | ||
| Line 252: | Line 260: | ||
| maxmemory-policy volatile-lru | maxmemory-policy volatile-lru | ||
| </ | </ | ||
| - | |||
| Config files in / | Config files in / | ||
| Line 267: | Line 274: | ||
| Then enter that hash in the file / | Then enter that hash in the file / | ||
| < | < | ||
| + | #password for read access | ||
| password = " | password = " | ||
| + | #password for write access. you need to set both. I know, it's stupid ;-) | ||
| + | enable_password = " | ||
| </ | </ | ||
| Line 310: | Line 320: | ||
| </ | </ | ||
| - | ===== Access to Rspamd Webinterface | + | ==== Access to Rspamd Webinterface ==== |
| To be able to access the rspamd webinterface we need to add a config file to apache. | To be able to access the rspamd webinterface we need to add a config file to apache. | ||
| Line 330: | Line 340: | ||
| </ | </ | ||
| - | ===== Postfix integration | + | ==== Postfix integration ==== |
| Make postfix use rspamd, therefore add following lines to | Make postfix use rspamd, therefore add following lines to | ||
| Line 345: | Line 355: | ||
| </ | </ | ||
| - | ===== Dovecot integration | + | ==== Dovecot integration ==== |
| We want Dovecot to automatically move new mails to spam folder when they were recognized as spam mail. Additionally, | We want Dovecot to automatically move new mails to spam folder when they were recognized as spam mail. Additionally, | ||
| Line 426: | Line 436: | ||
| } | } | ||
| </ | </ | ||
| - | ---- | ||
| - | let rspamd | + | ==== dkim and arc mail signing ==== |
| + | To let Rspamd dkim sign outgoing mails, following is needed: | ||
| + | |||
| + | < | ||
| mkdir / | mkdir / | ||
| rspamadm dkim_keygen -b 2048 -s 2018 -k 2018.key > 2018.txt | rspamadm dkim_keygen -b 2048 -s 2018 -k 2018.key > 2018.txt | ||
| - | chown _rspamd: | + | chown _rspamd: |
| chmod 440 / | chmod 440 / | ||
| + | </ | ||
| - | look at 2018.txt to see how dns entry should look like. | + | Look at 2018.txt to see how your dns entry should look like. and then make that DNS-entry. |
| edit file dkim_signing.conf | edit file dkim_signing.conf | ||
| + | < | ||
| path = "/ | path = "/ | ||
| selector = " | selector = " | ||
| + | # I need that, since in my case, usernames are without the domain. | ||
| + | # Otherwise he won't do any dkim signing. | ||
| + | allow_username_mismatch = true; | ||
| + | </ | ||
| - | cp -R / | + | If you provide mailinglists, |
| + | < | ||
| + | ln -s / | ||
| + | </ | ||
| - | --------------- | + | ==== Clamav integration ==== |
| setup clamav for use with rspamd | setup clamav for use with rspamd | ||
| Line 489: | Line 509: | ||
| --------- | --------- | ||
| + | apache reverse proxy for web interface | ||
| + | ----- | ||
| + | |||
| more fail2ban | more fail2ban | ||
linux_server_manuals/dovecot_ldap_rspamd.1516038486.txt.gz · Last modified: 2018/01/15 17:48 by ronney
