On Wed, Feb 24, 2016 at 06:25:08PM +0100, i...@itrezero.it wrote:
> Hi all.
> 
> I compiled postfix 3.0.3 from source code but (maybe a stupid question).
> don't know how to start it at boot of a Centos 7 machine!
> 
> Tried with "chkconfig" and "systemctl" without any results!
> 
> How can I do this? Is there a "postfix.service" to be enabled with
> systemctl?
> 
> Thank you very much for your help
> 
> -Francesco


For what it's worth, I run Postfix on CentOS 7 also. Here's what my service 
file looks like. I'm running 2.10 because that's what the distribution comes 
with, but as far as I can tell, the file should still work for you.

[Unit]
Description=Postfix Mail Transport Agent
After=syslog.target network.target
Conflicts=sendmail.service exim.service

[Service]
Type=forking
PIDFile=/var/spool/postfix/pid/master.pid
EnvironmentFile=-/etc/sysconfig/network
ExecStartPre=-/usr/libexec/postfix/aliasesdb
ExecStartPre=-/usr/libexec/postfix/chroot-update
ExecStart=/usr/sbin/postfix start
ExecReload=/usr/sbin/postfix reload
ExecStop=/usr/sbin/postfix stop

[Install]
WantedBy=multi-user.target

Reply via email to