[Dovecot] Second user problems
I have dovecot (0.99.14 under FC4) set up and working beautifully for my mail, handing on to procmail, and handling many subfolders. Today I needed to set up a second user. I added his account in kmail and created a sub-folder, but no sent-mail, trash etc. were created. I have sent test messages and /var/log/maillog says they have been processed, but they are not arriving in his inbox. /var/log/mail.info shows that he has logged in to dovecot. He has a simple .procmailrc to handle the one subdirectory.
I'm sure that it must be something I've missed in dovecot.conf, but I can't see anything there that shouldn't work just as well for him as it does for me. Any pointers?
Anne
Anne Wilson wrote:
I have dovecot (0.99.14 under FC4) set up and working beautifully for my mail, handing on to procmail, and handling many subfolders. Today I needed to set up a second user. I added his account in kmail and created a sub-folder, but no sent-mail, trash etc. were created. I have sent test messages and /var/log/maillog says they have been processed, but they are not arriving in his inbox. /var/log/mail.info shows that he has logged in to dovecot. He has a simple .procmailrc to handle the one subdirectory.
Where does your MTA say the message was delivered to? Are you sure it is going to the same place as dovecot is looking?
I'm sure that it must be something I've missed in dovecot.conf, but I can't see anything there that shouldn't work just as well for him as it does for me. Any pointers?
Anne
-- Dominic
On Thursday 16 February 2006 23:31, Dominic Marks wrote:
Anne Wilson wrote:
I have dovecot (0.99.14 under FC4) set up and working beautifully for my mail, handing on to procmail, and handling many subfolders. Today I needed to set up a second user. I added his account in kmail and created a sub-folder, but no sent-mail, trash etc. were created. I have sent test messages and /var/log/maillog says they have been processed, but they are not arriving in his inbox. /var/log/mail.info shows that he has logged in to dovecot. He has a simple .procmailrc to handle the one subdirectory.
Where does your MTA say the message was delivered to? Are you sure it is going to the same place as dovecot is looking?
My suspicion was that it's not. This is as much info as I have gathered so far -
Feb 17 09:20:16 packbell postfix/smtp[3137]: 87B7BAE0A3: to=davidwilson@lydgate.org.uk, relay=smtp.mailbox.co.uk[212.85.249.130], delay=1, status=sent (250 OK id=1FA1sn-0002L6-Q3) Feb 17 09:20:16 packbell postfix/qmgr[1852]: 87B7BAE0A3: removed .... 57982AE0A3: message-id=200602170923.25143.cannewilson@tiscali.co.uk Feb 17 09:21:19 packbell postfix/qmgr[1852]: 57982AE0A3: from=cannewilson@tiscali.co.uk, size=1816, nrcpt=1 (queue active) Feb 17 09:21:19 packbell procmail[3149]: Suspicious rcfile "/home/david/.procmailrc" Feb 17 09:21:19 packbell postfix/local[3131]: 57982AE0A3: to=david@localhost.lydgate.net, orig_to=david@localhost, relay=local, delay=0, status=sent (delivered to command: /usr/bin/procmail) Feb 17 09:21:19 packbell postfix/qmgr[1852]: 57982AE0A3: removed
Suspicious procmailrc - I added new/ to the path today, as someone suggested elsewhere. Maybe that's what is being questioned. Here is the .procmailrc
SHELL=/bin/sh PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
#Set user variable
USER=david
#Set user Inbox directory MAILDIR=/home/david/Maildir/ DEFAULT=$MAILDIR
#Set logfile LOGFILE=/home/david/pm.log MAILDIR=$HOME/Maildir/
VERBOSE=YES LOGABSTRACT=YES
LOG=" "
###For maildir, ensure that all recipe commands end with '/'###
:0
- ^To: .*\@lydgate.org.uk ${MAILDIR}.INBOX.Mailbox/new/ .......
/home/david/pm.log is empty.
Anything else I can trace that may help? Thanks for replying
Anne
On 17 Feb 2006, at 12:17, Anne Wilson wrote:
Where does your MTA say the message was delivered to? Are you sure
it is going to the same place as dovecot is looking?My suspicion was that it's not. This is as much info as I have
gathered so far -... Feb 17 09:21:19 packbell procmail[3149]: Suspicious rcfile "/home/david/.procmailrc" ... Suspicious procmailrc - I added new/ to the path today, as someone
suggested elsewhere. Maybe that's what is being questioned. Here is
the .procmailrc
I don't use procmail, but I think maildrop shits out if the
permissions on its equivalent (".mailfilter") file are too liberal.
Can you post ls -l ~david/.procmailrc ~anne/.procmailrc
, please?
Stroller.
On Saturday 18 February 2006 08:42, Stroller wrote:
On 17 Feb 2006, at 12:17, Anne Wilson wrote:
Where does your MTA say the message was delivered to? Are you sure it is going to the same place as dovecot is looking?
My suspicion was that it's not. This is as much info as I have gathered so far -
... Feb 17 09:21:19 packbell procmail[3149]: Suspicious rcfile "/home/david/.procmailrc" ... Suspicious procmailrc - I added new/ to the path today, as someone suggested elsewhere. Maybe that's what is being questioned. Here is the .procmailrc
I don't use procmail, but I think maildrop shits out if the permissions on its equivalent (".mailfilter") file are too liberal. Can you post
ls -l ~david/.procmailrc ~anne/.procmailrc
, please?
-rw-r--r-- 1 anne users 2433 Feb 15 11:28 /home/anne/.procmailrc -rw-r--r-- 1 anne users 467 Feb 17 09:14 /home/david/.procmailrc
Anne
Somebody more knowledgeable than me will probably correct this, but...
I believe that the .procmailrc must be owned by the correct user's account. I recall reading something once about delivery errors for procmail if the rc file is not owned and/or permissioned correctly.
Anne Wilson wrote:
-rw-r--r-- 1 anne users 2433 Feb 15 11:28 /home/anne/.procmailrc -rw-r--r-- 1 anne users 467 Feb 17 09:14 /home/david/.procmailrc
Anne
On Saturday 18 February 2006 15:08, dovecot@dovecot.org wrote:
Somebody more knowledgeable than me will probably correct this, but...
I believe that the .procmailrc must be owned by the correct user's account. I recall reading something once about delivery errors for procmail if the rc file is not owned and/or permissioned correctly.
Anne Wilson wrote:
-rw-r--r-- 1 anne users 2433 Feb 15 11:28 /home/anne/.procmailrc -rw-r--r-- 1 anne users 467 Feb 17 09:14 /home/david/.procmailrc
Anne
Thanks - as Amy pointed out, that is exactly what was wrong.
Anne
You're right, it has to be owned by the person who its for... It also can't be world writable either...either one of these settings being incorrect will cause procmail to stop. It's a security issue... Will L G
-----Original Message----- From: dovecot-bounces@dovecot.org [mailto:dovecot-bounces@dovecot.org] On Behalf Of dovecot@dovecot.org Sent: Saturday, February 18, 2006 9:09 AM Cc: dovecot@dovecot.org Subject: Re: [Dovecot] Second user problems
Somebody more knowledgeable than me will probably correct this, but...
I believe that the .procmailrc must be owned by the correct user's account. I recall reading something once about delivery errors for procmail if the rc file is not owned and/or permissioned correctly.
Anne Wilson wrote:
-rw-r--r-- 1 anne users 2433 Feb 15 11:28 /home/anne/.procmailrc -rw-r--r-- 1 anne users 467 Feb 17 09:14 /home/david/.procmailrc
Anne
On Saturday 18 February 2006 17:01, DiskMan wrote:
You're right, it has to be owned by the person who its for... It also can't be world writable either...either one of these settings being incorrect will cause procmail to stop. It's a security issue... Will L G
Of course, and I should have spotted it, but I didn't. I expect it's a case of seeing what you expect to see :-(
That's the last step on the temporary server. Now I have to do it all over again on the rebuild server.
Anne
On 2006-02-18 05:00:11 -0500 Anne Wilson cannewilson@tiscali.co.uk wrote:
On Saturday 18 February 2006 08:42, Stroller wrote:
On 17 Feb 2006, at 12:17, Anne Wilson wrote:
Feb 17 09:21:19 packbell procmail[3149]: Suspicious rcfile "/home/david/.procmailrc" ... Suspicious procmailrc - I added new/ to the path today, as someone
Err. No.
I don't use procmail, but I think maildrop shits out if the permissions on its equivalent (".mailfilter") file are too liberal. Can you post
ls -l ~david/.procmailrc ~anne/.procmailrc
, please? -rw-r--r-- 1 anne users 2433 Feb 15 11:28 /home/anne/.procmailrc -rw-r--r-- 1 anne users 467 Feb 17 09:14 /home/david/.procmailrc
Bingo. David's .procmailrc is "suspicious" because Anne owns it. procmail executing as David has permission to read, though.
Amy!
Amelia A. Lewis amyzing {at} talsever.com So what is love then? Is it dictated or chosen? Does it sing like the hymns of a thousand years or is it just pop emotion? And if it ever was here and it left does it mean it was never true? -- Emily Saliers
On Saturday 18 February 2006 15:37, Amelia A Lewis wrote:
On 2006-02-18 05:00:11 -0500 Anne Wilson cannewilson@tiscali.co.uk wrote:
On Saturday 18 February 2006 08:42, Stroller wrote:
On 17 Feb 2006, at 12:17, Anne Wilson wrote:
Feb 17 09:21:19 packbell procmail[3149]: Suspicious rcfile "/home/david/.procmailrc" ... Suspicious procmailrc - I added new/ to the path today, as someone
Err. No.
I don't use procmail, but I think maildrop shits out if the permissions on its equivalent (".mailfilter") file are too liberal. Can you post
ls -l ~david/.procmailrc ~anne/.procmailrc
, please?-rw-r--r-- 1 anne users 2433 Feb 15 11:28 /home/anne/.procmailrc -rw-r--r-- 1 anne users 467 Feb 17 09:14 /home/david/.procmailrc
Bingo. David's .procmailrc is "suspicious" because Anne owns it. procmail executing as David has permission to read, though.
Amy, you're a star, and I'm blind as a bat!
Thanks - he can now receive his mail, and my life will be considerably less harassed :-)
Anne
participants (6)
-
Amelia A Lewis
-
Anne Wilson
-
DiskMan
-
Dominic Marks
-
dovecot@dovecot.org
-
Stroller