I'm having trouble putting the last piece in the jigsaw, and the piece is
procmail shaped.
I'm setting up the following.
ISP Mail Server --> fetchmail --> procmail --> postfix --> vm-pop3d -->
workstation email clients.
The postfix/vm-pop3d end is already configured, using a browser based GUI
called tequila http://www.holgilein.de/coolprox/tequila/tequila_en.html. The
postfix queue directory is /var/spool/mail/localdomain and this is where I'd
like my fetchmail/procmail combination to put the mail after they've
finished with it.
Seems simple enough so the .fetchmailrc is :-
---------------------------------------
poll <pop3 isp server info>
keep
fetchall
mda "/usr/bin/procmail -t -m my.pmrc"
---------------------------------------
The file my.pmrc is :-
---------------------------------------
MAILDIR=/var/spool/mail
DEFAULT=$MAILDIR/procmail/localdomain
LOGFILE=$MAILDIR/procmail/delivery-log
LOCKFILE=$MAILDIR/procmail/.default.lock
:0 fhw
|formail
#
# Any other rules the user wishes to either include with INCLUDERC,
# or hardcode into this file, would go here.
# --------------------------------------------------------------------------
# If we're here, the mail didn't match any other rules, so deliver
normally.
:0:
$DEFAULT
# If that fails, report an error and throw the mail away.
EXITCODE=75
:0
/dev/null
----------------------------------------
The problems occur because a lock file cannot be created. This is obviously
down to permissions. The directory /var/spool/mail is owned by root:root and
/var/spool/mail/localdomain is owned by tequila:tequila. I don't want to
change this because I'm not very clever and the GUI makes my life easier.
How can I give procmail the appropriate permissions to create the lockfile
and logs and ultimately pass on my mail to postfix?
Thanks and Regards,
Marcus.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail