Postfix mail queue management command.

ARUN Posted in MAIL, PLESK BACKEND, POSTFIX
0

Few postfix mail queue management commands.

Command to get the Id of emails to be printed on a file called remove.sh

mailq | grep “apache@” | awk ‘{print $1}’ | sed ‘s/!//g’ | sed ‘s/^/\/usr\/sbin\/postsuper -d /g’ > remove.sh

chmod +x remove.sh

./remove.sh


Postfix flush mail queue

ARUN Posted in POSTFIX
0

postfix flush

postfix -f

Find postfix mail queue

ARUN Posted in POSTFIX
0

Execute command :

mailq

How to install POSTFIX in plesk server

ARUN Posted in MAIL, PLESK BACKEND, PLESK FRONTEND, POSTFIX
0

/usr/local/psa/admin/sbin/autoinstaller –select-release-current –install-component postfix    –> Install postfix in plesk