DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 28th November 2015
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,507
Default maxfiles in /etc/login.conf

My email setup utilizes mutt, fetchmail or getmail, and nmh and I utilize the same setup in Debian without problems. I noted the problem using getmail and changed to fetchmail. The core dumps persisted using fetchmail.

In OpenBSD 5.8 stable, when I invoke a mutt macro to call fetchmail, and previously getmail, if any emails are retrieved, hitting "any key" to continue causes mutt to crash with a mutt.core.

I do not get this behavior when my inbox had a smaller number of files. nmh is used as an mda to convert emails to the mh format where each email is a file.

If I invoke fetchmail from a terminal the emails are retrieved from a pop3 server without issue and are in ~/Mail/inbox when mutt is started.
Code:
cat fetchmailrc
poll mail.earthlink.net uidl proto POP3
user "redacted@earthlink.net"
keep
no fetchall
mda "/usr/local/libexec/rcvstore +inbox"
and pertainent portion of muttrc
Code:
set mbox_type=MH                                # Use mh mail format
set move=yes                                    # Turn off move confirm prompt
set folder="~/Mail"                             # Parent Mail folder
set mbox=+inbox                                 # Users active mail directory
set record=+sent                                # Mailbox to store sent messages
set postponed=+draft                            # Mailbox to store drafts
set spoolfile="~/Mail/inbox"                    # Use spool file in home directory
<clip>
</clip>
#       Macros - Map G to Invoke fetchmail
#
macro index G  <shell-escape>"fetchmail"<enter> "Invoke fetchmail"
macro pager G  <shell-escape>"fetchmail"<enter> "Invoke fetchmail"
#
Code:
cat /etc/login.conf
default:\
        :path=/usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin /usr/local/bin /usr/local/sbin:\
        :umask=022:\
        :datasize-max=4096M:\
        :datasize-cur=4096M:\
        :maxproc-max=386:\
        :maxproc-cur=512:\
        :openfiles-cur=1536:\
        :stacksize-cur=4M:\
        :localcipher=blowfish,8:\
        :ypcipher=old:\
        :tc=auth-defaults:\
        :tc=auth-ftp-defaults:

#
# Settings used by /etc/rc and root
# This must be set properly for daemons started as root by inetd as well.
# Be sure reset these values back to system defaults in the default class!
#
daemon:\
        :ignorenologin:\
        :datasize=infinity:\
        :maxproc=infinity:\
        :openfiles-cur=128:\
        :stacksize-cur=8M:\
        :localcipher=blowfish,9:\
        :tc=default:

#
# Staff have fewer restrictions and can login even when nologins are set.
#
staff:\
        :datasize-cur=3072M:\
        :datasize-max=infinity:\
        :maxproc-max=512:\
        :maxproc-cur=256:\
        :ignorenologin:\
        :requirehome@:\
        :tc=default:
I am wondering if it has to do with my file settings numbers. I archive emails yearly and towards the end of the year have well over 1400 email files. If both mutt and fetchmail are both accessing the files would I need a maxfiles of around 3500? Is there a rough way to calculate the needed resource settings?
Reply With Quote
  #2   (View Single Post)  
Old 3rd December 2015
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,507
Default

I incrementally increased maxfiles with no effect. I ran mutt.core through the debugger and the output suggests that the problem is in mutt itself. I'll start a new thread along that path.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow SSH login flit OpenBSD General 3 16th May 2013 08:29 PM
some login.conf questions gosha OpenBSD General 2 5th July 2009 12:43 PM
difference between rc.conf and loader.conf disappearedng FreeBSD General 5 3rd September 2008 05:54 AM
How to set up ssh login cssgalactic FreeBSD General 12 28th June 2008 06:00 PM
login.conf memoryuse not working EricM FreeBSD General 4 22nd May 2008 01:05 PM


All times are GMT. The time now is 06:18 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick