On Fri, 23 Feb 2018 10:05:55 +0100 Bastian Blank <wa...@debian.org> wrote: > On Fri, Feb 23, 2018 at 02:51:12AM -0500, Scott Kitterman wrote: > > > Please tell me how this would change the environment the _generator_ is > > > running in. > > Maybe I've been away from this bug too long and I need to go restudy how the > > generator works again, but I think the generator running is triggered by > > postfix starting, so (my assumption is) this would cause the starting to be > > delayed until after the network is available which would also make the > > generator run when a network in place. > > This is documented in > https://www.freedesktop.org/software/systemd/man/systemd.generator.html > > | Generators are run very early at boot and cannot rely on any external > | services. They may not talk to any other process. That includes simple > | things such as logging to syslog(3), or systemd itself (this means: no > | systemctl(1))! Non-essential file systems like /var and /home are > | mounted after generators have run. Generators can however rely on the > | most basic kernel functionality to be available, including a mounted > | /sys, /proc, /dev, /usr. > > So, no network either. I think in praxis you'll find 127.0.0.1 and ::1 > to be available.
Thanks for the pointer. I had forgotten about when it ran. I'll work on a better solution. That said, I'm still looking for a way to replicate your postconf problem. I tried again when the network disabled (couldn't even ping off the box I was using) and then setting inet_interfaces to a non-available IP address: postfix/master: daemon started -- version 3.1.6, configuration /etc/postfix systemd: Started Postfix Mail Transport Agent (instance -). [changed inet_interfaces and turned off the network here] systemd: Stopping Postfix Mail Transport Agent (instance -)... postmulti: fatal: parameter inet_interfaces: no local interface found for 184.108.40.206 systemd: postfix@-.service: Control process exited, code=exited status=1 systemd: Stopped Postfix Mail Transport Agent (instance -). systemd: postfix@-.service: Unit entered failed state. systemd: postfix@-.service: Failed with result 'exit-code'. $ sudo postconf -h multi_instance_directories There's a blank line there that you can't see in the mail. No error. Scott K