procmail
[Top] [All Lists]

Re: "mailbox as soft link" problem

2008-07-14 02:03:18
Now back to procmail related problems ;-)

Am 11.07.08 16:11 schrieb "Michelle Konzack" unter
<linux4michelle(_at_)tamay-dogan(_dot_)net>:

2) is there a way to prevent procmail from checking if the default mailbox
is "bogus"? 

best and uncomplicated one would be creating a unix account per $USER and
set "SHELL=/bin/false" and then use Maildir

Hmm, all users on the mail server are refused to login directly, /etc/passwd
is similar to:

  rztest:asdfasdfasdf:111:111:Test-Account:/home/mail/rztest:/bin/false

A typical .procmailrc looks like:
--- .procmailrc
SENDMAIL=`which sendmail`
SHELL=/bin/sh

##### SPAM #####
:0
* ^Subject:.*\*\*\*SPAM\*\*\*
SPAM

:0
* ^Subject:.*test
test
--- end of .procmailrc

The first two lines are necessary for vacation to work, i could not find
another solution for this (also posted quite a while ago on this list).
But changing to "SHELL=/bin/false" also leads to following entry in the mail
logfile:

--- part of /var/log/mail
Jul 14 10:45:31 test-mail02 amavis[13685]: (13685-04) Passed CLEAN,
<root(_at_)dd(_dot_)de> -> <test(_at_)dd(_dot_)de>, Message-ID: 
<487B1226(_dot_)mailB981Z9522(_at_)dd(_dot_)de>,
mail_id: GMGQDx3m0XGF, Hits: -, 4894 ms
Jul 14 08:45:31 test-mail02 postfix/smtp[14238]: 1CB99337787:
to=<rztest(_at_)dd(_dot_)de>, orig_to=<rztest>, relay=127.0.0.1[127.0.0.1], 
delay=5,
status=sent (250 2.6.0 Ok, id=13685-04, from MTA([127.0.0.1]:10025): 250 Ok:
queued as ECC133376CD)
Jul 14 10:45:47 test-mail02 procmail[14593]: Couldn't rename bogus
"/var/spool/mail/test" into "/var/spool/mail/BOGUS.test.8uGN"
Jul 14 10:45:47 test-mail02 postfix/local[14196]: ECC133376CD:
to=<rztest(_at_)dd(_dot_)de>, relay=local, delay=17, status=sent (delivered to 
command:
IFS=' ' && exec /usr/bin/procmail -f- || exit 75 )
--- end of part of /var/log/mail

This happens when the permissions on /var/spool/mail are set to 755 (and the
actuall delivery seems to work) otherwise procmail would remove the symbolic
link and create a new "real" file as inbox file.
Is there no way to prevent this? Where does procmail get the information
that the inbox has to be /var/spool/mail/$USER?
Does this behaviour change when using maildir instead of mbox? (i will be
moving as soon as possible but i really need a workaround for this for some
time ...)

Thanks in advance for any hints! (and sorry for my stubborness in
understanding this ...)

regards
   markus




____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail