Hey folks, here's a question. I want to enable procmail for the users so that they can have their incoming messages sorted info various folders and such regardless of MUA access or web access. I know I can set procmail to deliver to a maildir, but wouldn't that screw up dovecot's indexes? If it would, what can I do to ensure that the indexes stay correct? Thanks! -- Dan Egli On my Test server -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20201013/b69d695f/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_0xF8A7B3F2AAB08F9D.asc Type: application/pgp-keys Size: 1753 bytes Desc: not available URL: <https://dovecot.org/pipermail/dovecot/attachments/20201013/b69d695f/attachment.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 495 bytes Desc: OpenPGP digital signature URL: <https://dovecot.org/pipermail/dovecot/attachments/20201013/b69d695f/attachment.sig>
On 13/10/2020 10:08, Dan Egli wrote:> Hey folks, here's a question. I want to enable procmail for the users so > that they can have their incoming messages sorted info various folders > and such regardless of MUA access or web access. I know I can set > procmail to deliver to a maildir, but wouldn't that screw up dovecot's > indexes? If it would, what can I do to ensure that the indexes stay correct? > > Thanks! >Hi, I am using procamil rules like this: ============================================================ DELIVER="/usr/local/libexec/dovecot/deliver" :0 * From:.*schneier.com.* | $DELIVER -d <mailbox> -m <Folder> ============================================================ Works a treat. Thanks and regards Goetz R. Schultz ---------------------------->8------------------------------ /"\ \ / ASCII Ribbon Campaign X against HTML e-mail / \ This message is transmitted on 100% recycled electrons. ---------------------------->8------------------------------ Please support these causes: https://you.38degrees.org.uk/petitions/rescue-lanes-on-multi-lane-roads https://www.justgiving.com/crowdfunding/fylde-cfr-team ----------------------------8<------------------------------ Unsigned message - no responsibillity that content is not altered
On 13.10.20 11:08, Dan Egli wrote:> Hey folks, here's a question. I want to enable procmail for the users so > that they can have their incoming messages sorted info various folders > and such regardless of MUA access or web access. I know I can set > procmail to deliver to a maildir, but wouldn't that screw up dovecot's > indexes? If it would, what can I do to ensure that the indexes stay correct?Wouldn't it be better if you enabled Sieve and use that instead? procmail needs shell access (or a very sophisticated web-upload thingy to weed out any shell escapes from procmail) to work and a user can easily create loops or break their mail reception completely. Sieve at least makes sure the syntax is correct before installing a ruleset. Gr??e, Sven. -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: <https://dovecot.org/pipermail/dovecot/attachments/20201013/e124e8ce/attachment.sig>
No need for user shell access. Before switching to sieve, I made some email interface where users could turn on 'services' by sending an email to themselves. -----Original Message----- To: dovecot at dovecot.org Subject: Re: Procmail with Dovecot On 13.10.20 11:08, Dan Egli wrote:> Hey folks, here's a question. I want to enable procmail for the users > so that they can have their incoming messages sorted info various > folders and such regardless of MUA access or web access. I know I can > set procmail to deliver to a maildir, but wouldn't that screw up > dovecot's indexes? If it would, what can I do to ensure that theindexes stay correct? Wouldn't it be better if you enabled Sieve and use that instead? procmail needs shell access (or a very sophisticated web-upload thingy to weed out any shell escapes from procmail) to work and a user can easily create loops or break their mail reception completely. Sieve at least makes sure the syntax is correct before installing a ruleset. Gr??e, Sven.