On Thu, Jan 02, 2025 at 01:56:07AM +0000, r.barclay--- via Postfix-users wrote: > Hello, > > I have a system that happens to be disconnected from my LAN for 2 or 3 weeks, > from time to time. > > I use Postfix to process mail generated locally, e.g. reports from > unattended-upgrades. > All email is then sent to my regular mail server which I, therefore, have > configured as relayhost: > > relayhost = [192.168.123.10]:25 > > As 192.168.123.10 might not be reachable for weeks, I'd like Postfix to keep > pending mails as long as necessary, e.g. for 6 weeks. > > Is the line > > maximal_queue_lifetime = 42d > > enough to achieve that?
Yes, largely. You might also want to consider whether to raise the bounce_queue_lifetime. When the system does go back online, how long does it stay that way before going dark again? Your maximal_backoff_time should be at most half or a third of that time, but should otherwise perhaps be longer than default to avoid wasting resources on pointless retries while the system is off the network. If new mail enters its queue only via local submission (not SMTP), then a reasonable option is to not having Postfix running at all while the system is disconnected, and only start it up when connectivity is restored. -- Viktor. _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org