LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-19-2012, 07:41 AM   #1
garion
Member
 
Registered: Nov 2003
Posts: 35

Rep: Reputation: 15
Procmail Max. recipe length


I added a new line to an existing recipe in my /etc/procmailrc file and mail was not getting delivered as I expected. A co-worker mentioned he had heard many years ago that there was a limit to the size of a recipein procmailrc. I split the recipe is two piece and then things started working as expected.

I googled and the only thing I could find was the LINEBUF variable, which defaults to 2048. This does not seem to fit as the recipe was much less than 2048 bytes. So, I was wondering if there really is a limitation to the recipe size and whether this is the right variable.
 
Old 07-20-2012, 02:35 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by garion View Post
I was wondering if there really is a limitation to the recipe size and whether this is the right variable.
Quote:
19.32 Variable LINEBUF

Length of the internal line buffers, cannot be set smaller than 128. All lines read from the rcfile should not exceed $LINEBUF characters before and after expansion. If not specified, it defaults to 2048. This limit, of course, does not apply to the mail itself...

Note: Beware of simply setting LINEBUF to a huge value: such an assignment causes procmail to immediately allocate twice that much memory (procmail has two buffer internally of size $LINEBUF).
(http://pm-doc.sourceforge.net/doc/)

So either your splitting corrected some error or you did have mad expansion problems. Only you know. Know for next time Procmail allows for verbose logging to file which helps debugging problems.

Last edited by unSpawn; 07-20-2012 at 02:36 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Three actions in a recipe of Procmail Borelian Linux - Software 1 11-11-2012 06:48 AM
Procmail Recipe: Need help vaibhavs Linux - Newbie 1 10-20-2009 01:59 PM
Procmail recipe question gauge73 Linux - Software 3 05-03-2006 04:09 AM
Procmail recipe jebix666 Linux - General 1 06-09-2005 01:43 PM
procmail recipe not working? theLIGHT Linux - Software 3 11-18-2002 10:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration