Postfix as "normal" daemon under 18.04?

Colin Watson cjwatson at ubuntu.com
Tue Feb 9 20:02:21 UTC 2021


On Tue, Feb 09, 2021 at 02:21:53PM -0500, Robert Heller wrote:
> At Tue, 9 Feb 2021 18:03:23 +0000 "Ubuntu user technical support, not for general discussions" <ubuntu-users at lists.ubuntu.com> wrote:
> > On Tue, Feb 09, 2021 at 12:44:07PM -0500, Robert Heller wrote:
> > > I installed postfix on a Ubuntu 18.04 server and copied a batch of config 
> > > files from a CentOS 6 system.  But postfix under Ubuntu 18.04 is weird.  The 
> > > main postfix service file (/lib/systemd/system/postfix.service) does not 
> > > actually start the daemon (like it does with a CentOS 7 system), instead there 
> > > is a /lib/systemd/system/postfix at .service file, that gets called to create 
> > > instances.  What is going on here?  Is there some strange and exotic magic 
> > > involved?
> > 
> > That's how systemd supports services with multiple instances.
> > systemd.unit(5) (for instance) has some documentation of this.
> > 
> > postfix has been set up like this ever since systemd integration was
> > first added to it in Debian.  Here are some notes that I've copied out
> > from the changelog:
> 
> Hmmm... CentOS 7 does not seem to do it that way...

Indeed.  I said "since systemd integration was first added to it *in
Debian*" (emphasis added).  Upstream Postfix doesn't have systemd
service files of its own, so this sort of thing is necessarily
distribution-specific.

-- 
Colin Watson (he/him)                              [cjwatson at ubuntu.com]




More information about the ubuntu-users mailing list