Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Wrong permissions mail after procmail
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Gentoo-Ed
Guru
Guru


Joined: 21 Apr 2005
Posts: 442
Location: the Netherlands

PostPosted: Fri Feb 23, 2007 7:13 pm    Post subject: [SOLVED] Wrong permissions mail after procmail Reply with quote

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
View user's profile Send private message
dspahn
Guru
Guru


Joined: 22 Jun 2006
Posts: 392

PostPosted: Fri Feb 23, 2007 7:16 pm    Post subject: Just a thought.... Reply with quote

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
View user's profile Send private message
Gentoo-Ed
Guru
Guru


Joined: 21 Apr 2005
Posts: 442
Location: the Netherlands

PostPosted: Fri Feb 23, 2007 7:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum