Mailinglist Archive: opensuse (3996 mails)
| < Previous | Next > |
Re: [SLE] Procmail + postfix
- From: "David Bottrill" <david@xxxxxxxxxxxx>
- Date: Wed, 8 Sep 2004 15:05:57 +0100 (BST)
- Message-id: <5894.194.203.215.254.1094652357.squirrel@xxxxxxxxxxxxxxx>
Jan West said:
> Hello
> I have changed my MTA from sendmail to postfix and now i am not able to
> use procmail with postfix. I think it is the rights problem. I log
> procmail to a file /tmp/procmail.log and i keep all incoming mails in
> /var/spool/mail/postall and if you look at the file privileges, after
> sending mail for the first time, you see:
> -rw------- 1 john users 656 Sep 8 15:06 /tmp/procmail.log and
> the same for /var/spool/mail/postall. That is the state of the files
> after i sent mail from a user to user john. And then when I am trying to
> send mail to different user, the log says error while writting
> /tmp/procmail.log. Obviously considering the rights of the file. That
> means procmail always start its processes as user $LOGNAME (maybe not
> all of them)
> So is there any other way how to fix it than just change the rights of
> the file /tmp/procmail.log for group -w- and all the files in
> /var/spool/mail/... and /var/spool/mail/postall and so on
> I think this solution is not very secure, all the mailboxes of the users
> with rights for group "users" writable. All my users are in the group
> "users"
>
> I am starting procmail as user nobody in the file master.cf and in the
> file main.cf using mailbox_command = /usr/bin/procmail
>
> Jan West
Have you changed the local MDA setting in postfix?
Have a look at /etc/sysconfif/postfix
make sure you have:
POSTFIX_MDA=procmail
by default this will be local, hence procmail won't be invoked.
Once you have made the change run SuSEconfig and restart postfix
David
--
David Bottrill
david@xxxxxxxxxxxx
www.bottrill.org
Registered Linux user number 330730
Internet SIP Phone: 1-747-244-2699
| < Previous | Next > |