This is surely an RTFM, but I was not able to locate it in the FAQs.
KMail uses a lock file (or fcntl) to lock a local mailbox when
incorporating email. Procmail(1) uses /var/spool/mail/$LOGNAME.lock.
However, since Postfix does not use procmail I was wondering if it
followed the same convention that procmail does?
Also, AFAIK, fetchmail simply pipes its output into postfix via the
sendmail interface, so the only guys updating /var/spool/mail/$LOGNAME are
postfix and kmail.
--
Jerry Feldman
On Monday 01 November 2004 20:58, Jerry Feldman wrote:
This is surely an RTFM, but I was not able to locate it in the FAQs. KMail uses a lock file (or fcntl) to lock a local mailbox when incorporating email. Procmail(1) uses /var/spool/mail/$LOGNAME.lock. However, since Postfix does not use procmail I was wondering if it followed the same convention that procmail does?
I am not sure, I have never bothered to see if Postfix uses a lock file because I use Maildir but I could offer you one observation. You can have postfix deliver through procmail. The relevant section in your /etc/postfix/main.cf file is: # IF YOU USE THIS TO DELIVER MAIL SYSTEM-WIDE, YOU MUST SET UP AN # ALIAS THAT FORWARDS MAIL FOR ROOT TO A REAL USER. # #mailbox_command = /some/where/procmail #mailbox_command = /some/where/procmail -a "$EXTENSION" -- Kind regards Hans du Plooy Newington Consulting Services hansdp at newingtoncs dot co dot za
* Jerry Feldman
This is surely an RTFM, but I was not able to locate it in the FAQs. KMail uses a lock file (or fcntl) to lock a local mailbox when incorporating email. Procmail(1) uses /var/spool/mail/$LOGNAME.lock. However, since Postfix does not use procmail I was wondering if it followed the same convention that procmail does?
IF you use procmail as the lda, postfix *does* use procmail. Postfix default delivers to /var/mail/$USER. If you set postfix to use procmail, procmail accepts mail from postfix (before delivery to $USER) and delivers mail according to your recipies, and utilizes locks *only* where you have placed them in your recipies.
Also, AFAIK, fetchmail simply pipes its output into postfix via the sendmail interface, so the only guys updating /var/spool/mail/$LOGNAME are postfix and kmail.
If I used kmail, I would turn off kmail's fetching (both local and externall) and allow procmail to deliver. Remember to set locks when writing to mbox files (the trailing ':' as :0:), not necessary to maildir files. Kmail and procmail should each honor the locks of the other and not cause any problem other than a delay. But why utilize two lda's? Pick one or the other and do not make a potential problem. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
participants (3)
-
Hans du Plooy
-
Jerry Feldman
-
Patrick Shanahan