David Bottrill wrote:
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
thanks for your answer I have changed POSTFIX_MDA=procmail but it is still the same here is the log Sep 8 16:44:51 mail postfix/qmgr[23988]: 2BBCF6CF34: removed Sep 8 16:44:59 mail postfix/pickup[23987]: 1540D6CF34: uid=1001 from=<west> Sep 8 16:44:59 mail postfix/cleanup[23999]: 1540D6CF34: message-id=<413F1AEA.mailIJ211VENP@mail.kravare.cz> Sep 8 16:44:59 mail postfix/qmgr[23988]: 1540D6CF34: from=<west@kravare.cz>, size=869, nrcpt=1 (queue active) Sep 8 16:44:59 mail procmail[24019]: Error while writing to "/tmp/log-procmail.log" Sep 8 16:44:59 mail postfix/local[24001]: 1540D6CF34: to=<hahnm@kravare.cz>, orig_to=<hahnm>, relay=local, delay=1, status=sent (delivered to command: /usr/bin/procmail) Sep 8 16:44:59 mail postfix/qmgr[23988]: 1540D6CF34: removed