Betr.: Idea - everyone duck

Arjan Melein Amelein at Dantumadiel.eu
Wed Jan 27 10:15:59 UTC 2016


I swapped the shutdown order on my MS (first the MTA, -then- MS) around and added an 15s delay before it actually stops MS so that it can clear out the incoming queue and move things to the disk based outgoing for the MTA.
The system reboots like once in a blue moon but it seemed to work Ok like this. The ramdisk is mounted through fstab and MS will create the PID folders on its own as it's starting.

I have another program that uses a ramdisk and I just added the backup/restore scripts to the programs init script itself as well as a cronned backup because that had a bit more static-y data.
With MS the emails spend so little time in the ramdisk folder (or they should anyway :P) that there's no point in making scheduled backups, if someone really wants '0%' chance of data loss in case of an unexpected power failure you'd have to make like a daemon that mirrors the inbound mail from disk to the ramdisk to be processed somehow. That'd be tricky to say the least I think. (There'll always be a chance of file corruption with power failures)


>>> Jerry Benton <jerry.benton at mailborder.com> 27-1-2016 9:14 >>>
I have already done this:

- added the option to the installer
- created a daemon (not really, but it is set as a service) that saves the Incoming Work Directory on reboot and then restores it when the server comes back up
- sets the correct ownership (user:group) and file permissions of the ramdisk based on MailScanner.conf settings when the server boots up
- the daemon checks to make sure it is a ramdisk before doing any of this



-
Jerry Benton
www.mailborder.com 



> On Jan 27, 2016, at 2:57 AM, Arjan Melein <Amelein at dantumadiel.eu> wrote:
> 
> Good idea, ramdrive reduces the IO load a lot and increases the processing speed substantially IMO.
> Make it an option though like someone else already said.
> 
> 
>>>> Jerry Benton <jerry.benton at mailborder.com> 26-1-2016 21:07 >>>
> I was considering the install script giving the option of creating a ramdisk for /var/spool/MailScanner/incoming as one of the install questions. 
> 
> Again, an option.
> 
> 
> Good idea? Bad?
> 
> -
> Jerry Benton
> www.mailborder.com 
> 
> 
> 
> 
> 
> -- 
> MailScanner mailing list
> mailscanner at lists.mailscanner.info 
> http://lists.mailscanner.info/listinfo/mailscanner 
> 
> 
> 
> 
> -- 
> MailScanner mailing list
> mailscanner at lists.mailscanner.info 
> http://lists.mailscanner.info/listinfo/mailscanner 
> 



-- 
MailScanner mailing list
mailscanner at lists.mailscanner.info 
http://lists.mailscanner.info/listinfo/mailscanner 




More information about the MailScanner mailing list