What kind of locking does sendmail do on /var/spool/mail/*

What kind of locking does sendmail do on /var/spool/mail/*

Post by David M. Meyer 503/346-17 » Tue, 27 Apr 1993 20:17:24



        Does anyone know what kind of locking does sendmail
        (e.g., lockf, flock, other) do on /var/spool/mail/* ?

        Thanks,

        Dave

        David M. Meyer                  Voice:     503/346-1747
        Senior Network Engineer         Pager:     503/342-9458
        Office of University Computing  FAX:       503/346-4397

        University of Oregon
        1225 Kincaid
        Eugene, OR 97403        

 
 
 

What kind of locking does sendmail do on /var/spool/mail/*

Post by Richard M. Mathe » Sat, 01 May 1993 03:28:27



Quote:>    Does anyone know what kind of locking does sendmail
>    (e.g., lockf, flock, other) do on /var/spool/mail/* ?

Try looking at maillock(3X) and mailunlock(3X).

     Richard M. Mathews                 Lietuva laisva = Free Lithuania
                                        Brivu Latviju  = Free Latvia

                                                WE  DID  IT!!!

 
 
 

1. More mail file locking questions (lockf, NFS, /var/spool/mail/*.lock)

        Here's a problem I've run into:

        The problem I've seen relates to building mh-6.8 for SVR4
        (and correspondingly LOCKF). Now, it appears that while
        INC believes the mail file (NFS mounted) should be
        locked, it isn't (or it is lockf'ed and someone else
        [/bin/mail?] isn't honoring the lock; it says something
        like "New mail has arrived.."). It appears that /bin/mail
        (on 4.1.x and Solaris 2.x) uses lock files
        (/var/spool/mail/*.lock).  

        My question is, should mh ({l}emacs, popper,imap,...)
        use this style (and abandon lockf), or is there some
        other appropriate solution to this problem?

        Thanks,

        Dave    

        David M. Meyer                  Voice:     503/346-1747
        Senior Network Engineer         Pager:     503/342-9458
        Office of University Computing  FAX:       503/346-4397

        University of Oregon
        1225 Kincaid
        Eugene, OR 97403        

2. MS BusMouse recognized, but not activated (?)

3. Smbmount /var/spool/mail - can it be done?

4. malloc()/free() based on mmap()ed files

5. mail folder is in /var/mail or /var/spool/mail

6. Using ProxyPass to map secure site, performance problems

7. /var/spool/mail vs. /usr/spool/mail

8. Asus CUCS motherboard to linux????

9. SUMMARY: NFS mounting /var/spool/mail && file locking

10. Is there a mail program that can read mail (as root) from /var/spool/mail/xxx?

11. Sendmail/"/var/spool/mail/$USER" - question!

12. Mail to /var/spool/mail/a/auser

13. Mail problem because a perl script reads /var/spool/mail/login?