-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday, 2014-08-19 at 09:05 -0400, Charles Philip Chan wrote:
On 19 Aug 2014, robin.listas@telefonica.net wrote:
Hi Carlos:
I would have to replace the last line with:
| $DELIVER -m lists/os-en
Yes.
or...?
Would it end in the same mailbox format, in my case mbox?
It will deliver to what ever mailbox format you setup your Dovecot to
use.
However, I don't use mbox, so you should run a test to test the procmail
recipe first. If the message could not be saved to the mailbox for any
reason, it is delivered to INBOX instead. You will not loose any mail.
It is not working here... the problem is AppArmour, profiles have to be
adjusted.
In .procmailrc I did just some changes:
DELIVER="/usr/lib/dovecot/dovecot-lda"
And then I changed a pair or recipes, for testing:
:0f
* ^X-Mailinglist: opensuse-factory
| /usr/bin/formail -bfi 'Reply-To: "OS-fctry" '
{
VERBOSE=on
:0 ac:
$HOME/Mail/lists/os-factory
:0 aw:
| $DELIVER -m Mail/lists/D-os-factory
VERBOSE=off
}
# :0 a:
# $HOME/Mail/lists/os-factory
:0f
* ^X-Mailinglist: opensuse
| /usr/bin/formail -bfi 'Reply-To: "OS-en" '
{
VERBOSE=on
:0 ac:
$HOME/Mail/lists/os-en
:0 aw:
| $DELIVER -m lists/D-os-en
VERBOSE=off
}
You see, I'm testing two combinations to see which one works (I think the
second one is the correct one), and in each one I'm first delivering by my
old method, which works, so I get my mail in the right folder, and add a
new one to also send a copy via dovecot-lda, to another folder with the
prefix "D-" in the name.
Also I have now:
Telcontar:~ # doveconf -N
...
lda_mailbox_autocreate = yes ***
lda_mailbox_autosubscribe = yes ***
But only the traditional rule works. The problem is, as I said, apparmour
profiles.
<2.3> 2014-08-19 15:39:53 Telcontar dovecot - - - lda(cer): Error: open(/home/cer/Mail/lists/D-os-en, O_CREAT) failed: Permission denied
<2.3> 2014-08-19 15:39:53 Telcontar dovecot - - - lda(cer): Error: open(/home/cer/Mail/.imap/INBOX/dovecot.index.log) failed: Permission denied (euid=1000(cer) egid=100(users) UNIX perms appear ok (ACL/MAC wrong?))
So I have to run aa-logprof a few times...
...
Well, I'm starting to get email in a new mbox folder in "lists/D-os-en".
So far, so good :-)
Although pine takes some time to notice the new email :-?
- --
Cheers,
Carlos E. R.
(from 13.1 x86_64 "Bottle" at Telcontar)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
iEYEARECAAYFAlPzXRQACgkQtTMYHG2NR9W3kwCeM2/14Uxc4MxAIl0Vl7DPNT1a
nkMAnRETpmKH7m3rSFQ1zOKw6EioFall
=8quv
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org
To contact the owner, e-mail: opensuse+owner@opensuse.org