Mailinglist Archive: opensuse (3964 mails)
| < Previous | Next > |
Re: [SLE] Postfix, fetchmail and locks
- From: Patrick Shanahan <paka@xxxxxxxxxxxxxxx>
- Date: Tue, 2 Nov 2004 08:29:11 -0500
- Message-id: <20041102132910.GN5899@xxxxxxxxxxxxxxx>
* Jerry Feldman <gaf@xxxxxxx> [11-02-04 04:04]:
> 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
> 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
| < Previous | Next > |