|
From: Dick M. <di...@li...> - 2007-02-06 21:20:32
|
I've been meaning to point this out for a while; I don't reboot very often so it's not a big priority. To use dovecot SASL with postfix you need to start dovecot first. However dovecot needs to create a socket in postfix jail (/var/spool/postfix/private) which, of course, doesn't exist until postfix is started. What I notice is that postfix doesn't complain if /var/spool/postfix/private exists when it is started. I'm thinking that the dovecot init.d script could mkdir -p this directory before starting (perhaps commented out since most users won't need it). Dick |
|
From: Heiko Z. <he...@zu...> - 2007-02-07 14:14:40
|
On Tue, February 6, 2007 15:20, Dick Middleton wrote: > I've been meaning to point this out for a while; I don't reboot very > often so it's not a big priority. > > To use dovecot SASL with postfix you need to start dovecot first. > However > dovecot needs to create a socket in postfix jail > (/var/spool/postfix/private) > which, of course, doesn't exist until postfix is started. Does that mean your /var/spool/postfix is not on a harddisk? I would highly recommend running a mail server only with the spool directory mounted to a harddisk. > What I notice is that postfix doesn't complain if > /var/spool/postfix/private > exists when it is started. > > I'm thinking that the dovecot init.d script could mkdir -p this directory > before starting (perhaps commented out since most users won't need it). Anybody have any thoughts on this? -- Regards Heiko Zuerker http://www.devil-linux.org |
|
From: Dick M. <di...@li...> - 2007-02-07 15:29:31
|
Heiko Zuerker wrote: > On Tue, February 6, 2007 15:20, Dick Middleton wrote: >> I've been meaning to point this out for a while; I don't reboot very >> often so it's not a big priority. >> >> To use dovecot SASL with postfix you need to start dovecot first. >> However >> dovecot needs to create a socket in postfix jail >> (/var/spool/postfix/private) >> which, of course, doesn't exist until postfix is started. > > Does that mean your /var/spool/postfix is not on a harddisk? Yes, indeed. Never even occurred to me - stuck in the mindset of no hard disk ;-) It would help of course, to keep the spool file over reboots. As it also avoids this problem. Maybe that's what I'll do. > I would highly recommend running a mail server only with the spool > directory mounted to a harddisk. Point taken. Dick |
|
From: Bruce S. <br...@ar...> - 2007-02-07 15:42:29
|
> > I've been meaning to point this out for a while; I don't reboot very > > often so it's not a big priority. > > > > To use dovecot SASL with postfix you need to start dovecot first. > > However > > dovecot needs to create a socket in postfix jail > > (/var/spool/postfix/private) > > which, of course, doesn't exist until postfix is started. > > Does that mean your /var/spool/postfix is not on a harddisk? > I would highly recommend running a mail server only with the spool > directory mounted to a harddisk. I don't know much about Postfix (I'm a sendmail guy), but I do have Postfix configured on a couple of DL boxes without a hard drive. HOWEVER, it's only purpose is to SEND email, it cannot receive any email (port 25 is blocked), so I don't have the worry about incoming email filling up my memory. > > What I notice is that postfix doesn't complain if > > /var/spool/postfix/private > > exists when it is started. > > > > I'm thinking that the dovecot init.d script could mkdir -p this directory > > before starting (perhaps commented out since most users won't need it). > > Anybody have any thoughts on this? A send-only setup is the only legit reason that I can think of to run Postfix on a diskless system. And with this kind of setup, dovecot doesn't serve any purpose that I can think of. Does a send-only setup (without dovecot) need a /var/spool/postfix/private directory? If so, then I think a mkdir -p would be a good idea. Otherwise, I don't know. I guess it wouldn't hurt to do this in the dovecot init script: [ ! -d /var/spool/postfix/private ] && mkdir -p /var/spool/postfix/private - BS |
|
From: Dick M. <di...@li...> - 2007-02-07 16:10:29
|
Bruce Smith wrote: > I don't know much about Postfix (I'm a sendmail guy), but I do have > Postfix configured on a couple of DL boxes without a hard drive. > HOWEVER, it's only purpose is to SEND email, it cannot receive any email > (port 25 is blocked), so I don't have the worry about incoming email > filling up my memory. > A send-only setup is the only legit reason that I can think of to run > Postfix on a diskless system. Hmm - I don't know. Not much mail gets stored in spool files; only those that can't be delivered. Anyway a send-only postfix still has a queue. My system is not entirely diskless - the mailboxes and mail home dirs are on a hard drive. Thats if a CF disk counts ;-) Putting the spool files on the disk is not such a big deal, I've just never done it. Doing so would mean my original question is irrelevant. Dick |
|
From: Bruce S. <bw...@ar...> - 2007-02-07 16:24:59
|
> > A send-only setup is the only legit reason that I can think of to run > > Postfix on a diskless system. > > Hmm - I don't know. Not much mail gets stored in spool files; only those that > can't be delivered. Anyway a send-only postfix still has a queue. Right, and I control what it's sending. In my case, they are very small text-only notification emails from Apache to myself. Plus they are infrequent, so the memory outbound queue works fine for my application. And no big deal if it loses power and the queue is lost. > My system is not entirely diskless - the mailboxes and mail home dirs are on a > hard drive. Thats if a CF disk counts ;-) > > Putting the spool files on the disk is not such a big deal, I've just never done > it. Doing so would mean my original question is irrelevant. Is the incoming email stored on the CF? If not, I hope you have a small message size limit and a GOOD spam blocker (or a LOT of memory)! :-) And what happens if your DL box loses power or crashes? You lose all the queued email in the ram disk? Yikes! - BS |
|
From: Dick M. <di...@li...> - 2007-02-07 18:09:46
|
Bruce Smith wrote: > Is the incoming email stored on the CF? If not, I hope you have a small > message size limit and a GOOD spam blocker (or a LOT of memory)! :-) Good spam blocker. Postfix UCE rejection is excellent, and that's without any message scanning. > And what happens if your DL box loses power or crashes? You lose all > the queued email in the ram disk? Yikes! What???? DL? Crash? Surely not! I suppose it's theoretically possible but I think the MTBF is longer than the time between updates ;-) Dick |
|
From: Bruce S. <bw...@ar...> - 2007-02-07 18:38:13
|
> > And what happens if your DL box loses power or crashes? You lose all > > the queued email in the ram disk? Yikes! > > What???? DL? Crash? Surely not! I don't remember any DL crashes, that were software related. But I've had power outages long enough to deplete my UPS. I've had CPU fans quit. I've had power supplies die. I've had breakers/fuses blow. I've had mobo capacitors leak. I've had video cards and networks cards die and bring down a box. I've seen faulty memory do very strange things to a server. I once had a steam pipe start spraying water into a server! :-) Any of those things (and other hardware problems) will take a toll on your uptime.... :-( - BS |