> I install postfix3 in Centos 7, I'm used to working with the systemctl 
> command but I can't administer the service that way. Does anyone have an 
> example of the configuration to work via systemctl? 

You should check if there is a postfix service file for systemd:

[root@server ~]# rpm -ql postfix | grep service
/usr/lib/systemd/system/postfix.service


If not, create one at the given path:

[root@server ~]# cat /usr/lib/systemd/system/postfix.service 
[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



Then reload systemd and start the service:

systemctl daemon-reload
systemctl enable postfix
systemctl start postfix
systemctl status postfix

Best regards
Gerald

Reply via email to