Question regarding FLOCK or POSIX with Sendmail 8.13.x and MailScanner.

Duncan, Brian M. brian.duncan at kattenlaw.com
Fri Nov 3 13:52:51 GMT 2006



> #  ifndef HASFLOCK
> #   if LINUX_VERSION_CODE < 66399
> #    define HASFLOCK    0       /* flock(2) is broken after 0.99.13 */
> #   else /* LINUX_VERSION_CODE < 66399 */
> #    define HASFLOCK    1       /* flock(2) fixed after 1.3.95 */
> #   endif /* LINUX_VERSION_CODE < 66399 */
> #  endif /* ! HASFLOCK */
>
> A quick grep reveals that HASFLOCK is not defined anywhere
> outside of include/sm/conf.h so I take it this means flock is
> the default for Linux in sendmail 8.12.11.
> Also grep -i flock on /usr/lib/sendmail gives a match.
> This type of default define is apparently not added to the Compiled
> with: output.
>
> I've run MailScanner on RHEL 2.1 for a long time, first with sendmail
> 8.11 and now with 8.12 (from RH errata). I've always used
> flock and I haven't seen any issues with it.
> It's not that I get all that much mail but my primary mx do
> process about 10-14K mails a day.
>
> -tgc

I looked and my 8.12.x box DOES NOT show hasflock in the compiled
options but in the binary for sendmail it is indeed present (flock,
cannot flock, HASFLOCK strings were all there) .  The 8.13.x boxes DO
NOT have flock anywhere in the binary.  I also checked another 8.12 box
and it also does not show in the compiled options but all the flock
strings I listed above are present in the Sendmail ELF binary.

Thanks for the info, it's great to be able to confirm without a doubt
which of my boxes I should have posix set on.





===========================================================
CIRCULAR 230 DISCLOSURE: Pursuant to Regulations Governing Practice Before the Internal Revenue Service, any tax advice contained herein is not intended or written to be used and cannot be used by a taxpayer for the purpose of avoiding tax penalties that may be imposed on the taxpayer.
===========================================================
CONFIDENTIALITY NOTICE:
This electronic mail message and any attached files contain information intended for the exclusive use of the individual or entity to whom it is addressed and may contain information that is proprietary, privileged, confidential and/or exempt from disclosure under applicable law.  If you are not the intended recipient, you are hereby notified that any viewing, copying, disclosure or distribution of this information may be subject to legal restriction or sanction.  Please notify the sender, by electronic mail or telephone, of any unintended recipients and delete the original message without making any copies.
===========================================================
NOTIFICATION:  Katten Muchin Rosenman LLP is an Illinois limited liability partnership that has elected to be governed by the Illinois Uniform Partnership Act (1997).
===========================================================


More information about the MailScanner mailing list