How do I start / stop / restart my postfix mail server under Linux or UNIX operating systems?
You can use the following commands to start / stop and restart mail system. Please note that the following commands are reserved for the superuser i.e. you must be root to run them.
UNIX / Linux Postfix Control Program
The postfix command controls the operation of the Postfix mail system: start or stop the master daemon, do a health check, and other maintenance.
Task: Stop Postfix
Type the following command:
# postfix stop
Task: Start Postfix
Type the following command:
# postfix start
Task: Restart Postfix
Type the following command:
# postfix stop && postfix start
Task: Reload Postfix
To re-read configuration files, enter:
# postfix reload
The following distribution specific commands can be used too.
Debain / Ubuntu Linux Postfix Start / Stop / Restart Command
Type the following commands:
$ sudo /etc/init.d/postfix start
$ sudo /etc/init.d/postfix stop
$ sudo /etc/init.d/postfix restart
OR
$ sudo service postfix start
$ sudo service postfix stop
$ sudo service postfix restart
RHEL / CentOS / Fedora Linux Postfix Start / Stop / Restart Command
# /sbin/service postfix start
# /sbin/service postfix stop
# /sbin/service postfix restart
🐧 Get the latest tutorials on Linux, Open Source & DevOps via:
- RSS feed or Weekly email newsletter
- Share on Twitter • Facebook • 6 comments... add one ↓
Category | List of Unix and Linux commands |
---|---|
File Management | cat |
Firewall | Alpine Awall • CentOS 8 • OpenSUSE • RHEL 8 • Ubuntu 16.04 • Ubuntu 18.04 • Ubuntu 20.04 |
Network Utilities | dig • host • ip • nmap |
OpenVPN | CentOS 7 • CentOS 8 • Debian 10 • Debian 8/9 • Ubuntu 18.04 • Ubuntu 20.04 |
Package Manager | apk • apt |
Processes Management | bg • chroot • cron • disown • fg • jobs • killall • kill • pidof • pstree • pwdx • time |
Searching | grep • whereis • which |
User Information | groups • id • lastcomm • last • lid/libuser-lid • logname • members • users • whoami • who • w |
WireGuard VPN | Alpine • CentOS 8 • Debian 10 • Firewall • Ubuntu 20.04 |
Hi, How to show my pid number on running for postfix services?
Type ps -ef | grep postfix
posfix status
Try cat /var/run/postfix*
another useful command sudo dpkg-reconfigure postfix
how to send or create mail by postfix in terminal