testing dovecot LMTP with postfix/spamassassin

2019-03-16 Thread Marek Kozlowski via dovecot
:-) My postfix configuration is quite complex with a lot of special cases and rules. However I'd like to make an anti-spam configuration as simple and lightweight as possible (KISS). /etc/postfix/master.cf smtp inet

Re: testing dovecot LMTP with postfix/spamassassin

2019-03-17 Thread Marek Kozlowski via dovecot
:-) On 3/17/19 10:22 AM, Yassine Chaouche via dovecot wrote: On 3/16/19 3:49 PM, Marek Kozlowski via dovecot wrote: Can I test local mail delivery by dovecot LMTP manually? I mean: to simulate "I'm the Postfix" and produce for some testing e-mail the same effect as postfix

LMTP: Undelivered Mail Returned to Sender: User doesn't exist! :-(

2019-03-17 Thread Marek Kozlowski via dovecot
:-) I'm using postfix for mail delivery and dovecot for mailbox access imaps pop3s. Postfix resolves, verifies and overwrites users' addresses by numerous subtle LDAP queries. However users are visible as local ones (openldap, pam, nss) in the sense I can run `id' or `finger' queries and rec

Re: LMTP: Undelivered Mail Returned to Sender: User doesn't exist! :-(

2019-03-17 Thread Marek Kozlowski via dovecot
:-) I think that id dovecot handles mailboxes correctly over imap/pop it can easily find the users and their mailboxes so it doesn't need any additional configuration for LDAP. Unfortunately it doesn't work and results in: Undelivered Mail Returned to Sender: User doesn't exist! :-( What's the

`Spam' folder creation for multiple users

2019-03-17 Thread Marek Kozlowski via dovecot
:-) I've just added pigeonhole and a simple sieve script: - require "fileinto"; if header :contains "X-Spam-Flag" "YES" { fileinto "Spam"; } - If a user has this folder (`Spam') it works fine. If th