doc:appunti:linux:sa:postfix_spamassassin_clamav_dovecot
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
doc:appunti:linux:sa:postfix_spamassassin_clamav_dovecot [2019/04/05 10:09] – [Sanitizer/ClamAV Filter] niccolo | doc:appunti:linux:sa:postfix_spamassassin_clamav_dovecot [2021/02/09 09:36] – [Postfix SASL over Dovecot Auth] niccolo | ||
---|---|---|---|
Line 39: | Line 39: | ||
We want a **single authentication mechanism** for SMTP, POP3 and IMAP, and we want to let the user to authenticate using the Unix **username** or the full **email address** and the password. Dovecot authentication is suitable for the task; the default Debian configuration provides authentication against the system usernames via the PAM module. The configuration file is **/ | We want a **single authentication mechanism** for SMTP, POP3 and IMAP, and we want to let the user to authenticate using the Unix **username** or the full **email address** and the password. Dovecot authentication is suitable for the task; the default Debian configuration provides authentication against the system usernames via the PAM module. The configuration file is **/ | ||
- | To let authentication using the email address, we provide a passwd-like file **/ | + | To let authentication using the email address, we provide a passwd-like file **/ |
< | < | ||
Line 50: | Line 50: | ||
passdb { | passdb { | ||
driver = passwd-file | driver = passwd-file | ||
- | args = scheme=CRYPT / | + | args = scheme=CRYPT |
} | } | ||
userdb { | userdb { | ||
driver = passwd-file | driver = passwd-file | ||
- | args = / | + | args = username_format=%u |
} | } | ||
</ | </ | ||
Line 85: | Line 85: | ||
</ | </ | ||
- | The file **/ | + | The file **/ |
< | < | ||
- | chmod 0640 / | + | chmod 0640 / |
- | chown root: | + | chown root: |
</ | </ | ||
Line 100: | Line 100: | ||
===== Postfix SASL over Dovecot Auth ===== | ===== Postfix SASL over Dovecot Auth ===== | ||
- | See **[[https:// | + | See **[[https:// |
First of all we need to activate the socket used by Posfix for authentication. In **/ | First of all we need to activate the socket used by Posfix for authentication. In **/ | ||
Line 154: | Line 154: | ||
* **dovecot-pop3d** | * **dovecot-pop3d** | ||
- | Once installed, the basic services **IMAP2** on port **TCP/143** and **POP3** on port **TCP/110** are already working, eventually with the **Dovecot Authentication on userdb** as seen above. | + | Once installed, the basic services **IMAP2** on port **TCP/143** and **POP3** on port **TCP/110** are already working, eventually with the **Dovecot Authentication on users** as seen above. |
==== Enable SSL, imaps and pop3s ==== | ==== Enable SSL, imaps and pop3s ==== |
doc/appunti/linux/sa/postfix_spamassassin_clamav_dovecot.txt · Last modified: 2023/10/30 11:09 by niccolo