View previous topic :: View next topic |
Author |
Message |
Gentoo-Ed Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 21 Apr 2005 Posts: 442 Location: the Netherlands
|
Posted: Fri Feb 23, 2007 7:13 pm Post subject: [SOLVED] Wrong permissions mail after procmail |
|
|
If I filter my mail with procmail the mail isn't readable for users. It is for root. Procmailrc is started via fetchmailrc.
I tried adding:
Code: | ETCRCS=/storage/mail/procmailrcs
INCLUDERC=/storage/mail/procmailrcs/ekoster
|
For the security issue, no luck
If I run "chmod -R 777 /home/ekoster/.maildir" after it is readable
What is wrong?
So how can I automate this rule after procmail is done (as a temporary solution)
UPDATE
I figured you can do something with dropprivs but I can't get that to work. I've the line dropprivs=yes but it still uses the root privileges. Does anyone know a solution how to get this right?
Last edited by Gentoo-Ed on Sat Mar 03, 2007 10:25 am; edited 5 times in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dspahn Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Space Quest/Space_Quest_-_Roger_Wilco.gif)
Joined: 22 Jun 2006 Posts: 392
|
Posted: Fri Feb 23, 2007 7:16 pm Post subject: Just a thought.... |
|
|
Has this system ever worked properly in the past, or is this a fesh install? Something to try is to look at the config- perhaps it is trying to run as root when it should be trying to run as a dedicated user? If it has worked in the past, have you recently done a package update or run etc-update or revdep-rebuild? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Gentoo-Ed Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 21 Apr 2005 Posts: 442 Location: the Netherlands
|
Posted: Fri Feb 23, 2007 7:43 pm Post subject: |
|
|
This is a fresh install. I'm starting fetchmail at startup. In my /etc/fetchmailrc is a addition to start procmail. It uses the procmailrc in /etc which is descibed as a global procmailrc file. I know it should be able to work for I read that on the net but never read how (yet).
Code: | ETCRCS=/storage/mail/procmailrcs
INCLUDERC=/storage/mail/procmailrcs/ekoster
# Use maildir-style mailbox in user's home directory
MAILDIR_ROOT=/root/.maildir/
#MAILDIR_EKOSTER=/home/ekoster/.maildir/
#
## Begin recipes
#
:0
* ^To:.*mobile\@ddfdf\.net
$MAILDIR_ROOT
#:0
#* ^To:.*edgar\@dfdfdf\.net
#$MAILDIR_EKOSTER
|
This is the procmail |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|