procmail
[Top] [All Lists]

/var/spool/mail/user ownership

2001-01-08 04:22:56
Hello,

I have a problem with the ownership of the mail spool files.

intention:
   receive e-mails from one mailbox,
   distribute to different spool files (for different users)
   depending on the recipient (i.e. "To: User_x(_at_)(_dot_)(_dot_)(_dot_)")

configuration:
   SuSE Linux 6.3, sendmail, fetchmail, procmail
   5 different email adresses to one mailbox at my ISP.
   user_x dials up the ISP and executes fetchmail, procmail to retrieve the 
mailbox
   /etc/procmailrc contains
        :0:
        * ^TOUser_1
        /var/spool/mail/user_1

        :0:
        * ^TOUser_2
        /var/spool/mail/user_2

        ...

        :0:
        * ^TOUser_5
        /var/spool/mail/user_5

   .forward available in each home directory with following contents:
        $HOME/.forward
        "|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #user_x"

   $HOME/.procmailrc not present (not necessary)

faulty behaviour:
   1. /var/spool/mail/user_x not present (e.g. all mail read)
      if user_y dials up all e-mail is retrieved and delivered to
      following spool files:
        e-mails with header "To: User_x(_at_)(_dot_)(_dot_)(_dot_)" to 
/var/spool/mail/user_x owned by user_y
        (this file is created with 'wrong' ownership, user_x will not be able 
to read)
        e-mails with header "To: User_y(_at_)(_dot_)(_dot_)(_dot_)" to 
/var/spool/mail/user_y

   2. /var/spool/mail/user_x already present with ownership user_x (e.g. not 
all mail read)
      if user_y dials up all e-mail is retrieved and delivered to
      following spool files:
        e-mails with header To: User_x(_at_)(_dot_)(_dot_)(_dot_) can't be 
delivered properly
        (put to default, because of ownership mismatch of 
/var/spool/mail/user_x and dial-up user)
        e-mails with header To: User_y(_at_)(_dot_)(_dot_)(_dot_) to 
/var/spool/mail/user_y

Is this a procmail task or is it something else? What to do?

Many thanks in advance
-- 
Harald Lichtenstein
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>