The Gentoo way of doing this is: CFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE" emerge procmail
HTH
Wendall
That helps a bunch, thanks. I got it going previously by modifying the ebuild file in /usr/portage/mail-filter/procmail - I will go back and rebuild it using your method...
For archival purposes, and for anyone interested, compiling procmail with the above options allowed it to see beyond 2GB. However, I've not had such luck with the imap server (the above defines did not work). I'm currently running uw-imap, so if anyone has any suggestions, let me know.
Thanks again for the excellent help...
back to lurking, josh
On Fri, 2005-01-14 at 09:03 -0500, Josh Wyatt wrote:
Hi all, I'm running gentoo base 1.4.16 (2004.3) on a mailserver with: sendmail-8.12.11-r3 procmail-3.22-r6 uw-imap-2004a
These are from portage...
I am using mbox format.
I see that procmail does not have largefile support. When a mailbox reaches 2147483647 bytes, procmail can no longer append to it- however, it does not seem to give sendmail any indication, so sendmail assumes success! Thus when a mbox reaches 2147483647 bytes the system begins silently dropping mail.
I found this thread on gmane: http://article.gmane.org/gmane.mail.procmail/13256
Here's the meat: On Thu, 30 Dec 2004, Cheema, Ravi wrote:
> Package: procmail
> Version: 3.22-10
>
> When a mailbox size reaches 2GB, new emails sent to that email address doesn't get delivered , they start
getting Queued. The cause of this problem is that procmail package is not compiled with Large File
Support.
>
> In order to fix the problem procmail with the following gcc options
>
> '-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE'
This is already reported as Bug#236685, but I don't want to introduce LFS in procmail until it is officially supported by the author.
...
Has this been addressed yet? If not, what's the preferred method in gentoo to recompile procmail with those defines?
Thanks in advance, Josh
