WorkHolic
메일 서버 대기중인 메일 바로 발송하기 (Sendmail, Postfix flush queue)
gromet
2024. 1. 15. 12:25
728x90
반응형
메일 서버 대기중인 메일 바로 발송하기 (Sendmail, Postfix flush queue)
가끔 쓸 일이 생기다 보니 자꾸 잊어 버린다. 한 곳에 정리해 둔다.
To flush the sendmail queue, you can use the following command:
sendmail -q
To flush or purge the postfix mail queue, run:
postfix flush
## OR ##
postfix -f
## OR ##
postqueue -f
Do you need to retry all messages in the deferred queue? Try:
postsuper -r ALL
To remove all mail from the queue, enter:
postsuper -d ALL
To remove all mails in the deferred queue, enter:
postsuper -d ALL deferred
728x90
SMALL