Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 5158  / 2 Years ago, tue, january 25, 2022, 12:32:51

My main disk is an SSD so in order to preserve its lifetime by reducing writes I followed some advice and made /var/spool a ram disk by adding this line to /etc/fstab:



tmpfs   /var/spool tmpfs   defaults,noatime,mode=1777   0  0


Later I configured postfix because I have a RAID array on my system and mdadm wants to send me email if the RAID array fails which sounds like a fine idea. Email sending worked fine until I rebooted, at which point:



postfix: fatal: open /etc/postfix-out/main.cf: No such file or directory


The fix for this is apparently:



mkdir /var/spool/postfix
postfix check


Then I found I also had to do:



mkfifo /var/spool/postfix/public/pickup
service postfix restart


Now sending emails works fine...until the next reboot.



So: what is the most correct way to recreate the contents of /var/spool/postfix automatically at boot time if it does not exist?



I am using Ubuntu Server 12.04.


More From » 12.04

 Answers
0

Yeah, just don't do this. You didn't specify your model of SSD, but Intel and Crucial/Micron SSDs are generally rated for something like 25% of the drive's total capacity in writes per day for 5 years minimum. You're vanishingly unlikely to go anywhere near that here unless there's something really, really mind-boggling about your setup that you haven't described.


[#34400] Thursday, January 27, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mance

Total Points: 198
Total Questions: 105
Total Answers: 128

Location: South Georgia
Member since Mon, Aug 16, 2021
3 Years ago
;