chris richards aaeiogizworkscom michael tokarev wrote tried run postfix laptop linux come across issue postfix running disk constantly spins never able sleep properly even postfix nothing empty queue etc laptop time anyway except mail gets queued road etc solution difficult issues first cause constant disk spin ups two factors directory atime updates qmrg scans work mtime updates various files varspoolpostfixpublicprivate mostly master kicks service defined periodic mastercf first issue already solved laptop mounting filesystem question either noatime nodiratime option disable atime updates entirely directories work postfix second issue requires work done linux concept tmpfs filesystem keept entirely ram well swap backed thats details disappears reboot since filesystem diskbased updates cause disk spinups since permanent files mentioned directories mail spool messages runtime state useful across reboots safe keep dirs simplest approach mount tmpfs mode0755size10k postfixpid varspoolpostfixpid mount tmpfs mode0700size10k postfixprivate varspoolpostfixprivate chown postfix varspoolpostfixprivate mount tmpfs mode0710size10k postfixpublic varspoolpostfixpublic chown postfixpostdrop varspoolpostfixpublic creates 3 tiny filesystems since large files anyway somewhat ugly many filesystems goes another version mkdir varspoolpostfixrun mount tmpfs mode0755size20k postfixrun varspoolpostfixrun rm rf varspoolpostfixpid mkdir varspoolpostfixrunpid ln runpid varspoolpostfixpid rm rf varspoolpostfixprivate mkdir 0700 varspoolpostfixrunprivate chown postfix varspoolpostfixrunprivate ln runprivate varspoolpostfixprivate rm rf varspoolpostfixpublic mkdir 0710 varspoolpostfixrunpublic chown postfixpostdrop varspoolpostfixrunpublic ln runpublic varspoolpostfixpublic creates single tmpfs filesystem mounted varspoolpostfixrun redirects symlinks 3 directories pid private public appropriate permissions version like first one still works chrooted postfix goes 3rd version modern linux distributions uses varrun tmpfs create varrunpostfix redirect 3 directories like example work postfix running chrooted obvious reason symlink outside chroot jail realize isnt solution unix support couldnt mount bind olddir newdir would allow remount part filesystem elsewhere thus allowing chroot jail access parts filesystem would normally limits last 2 versions symlinks causes postfixstart complain postfixscript2042 warning owned postfix varspoolpostfixprivate postfixscript2043 warning owned postfix varspoolpostfixpublic postfixscript2045 warning owned group postdrop varspoolpostfixpublic since script checks symlinks symlink targets false alarm really due semantics symbolic links funny enough trying shut discovered theres way change ownergroup symbolic link linux well every filesystem unixlike system supports groupowner symlink anyway yet theres lchown2 syscall ended writing tiny program named lchown changing ownergroup symbolic link lchown postfixpostdrop varspoolpostfixpublic lchown postfix varspoolpostfixprivate looks like ls l varspoolpostfix egrep pidpublicprivate lrwxrwxrwx 1 root root 21 feb 22 0102 pid runpostfixpid lrwxrwxrwx 1 postfix root 25 feb 22 0103 private runpostfixprivate lrwxrwxrwx 1 postfix postdrop 24 feb 22 0103 public runpostfixpublic change disk laptop sleeping little question difficult change 3 mentioned directories similar future dirs kept single subdir prefixed run state guess quite intrusive change dirs used many mastercf files refer 3rdparty services like privatefilter smtpdproxy etc oh well goes yet another radical approach laptop diskspinup problem shut postfix battery still accept queue outgoing mails deliver thanks mjt dosoelixgqahotmailcom sat apr 26 154851 2008 soiofdvxgperlorg kens subject tk disabling menu entries date tue 12 feb 2008 094930 0800 pst messageid 553ec4db04b741b9b3754ef61363c05cl1g2000hsagooglegroupscom mimeversion 10 contenttype textplain charsetiso88591 contenttransferencoding 7bit feb 12 948 halfcountpintergatecom mk wrote sorry zentara perl 588 script first produces bareword mainloop allowed strict subs use tkmenuentryconfigurepl line 25 even delete use strict get useless use constant void context tkmenuentryconfigurepl line 25 presume work point 02122008 072603 zentara wrote mainloop __end__ zentara perl case sensitive note spelling mainloop hth ken dhijpgbdpcgmhlhololc contenttype messagerfc822 contentdisposition inline filenamebeginners_98748ezm thu 07 aug 2008 101219 0600 postfix laptop disk spinup