E
E
Eastar2017-09-10 20:36:30
postfix
Eastar, 2017-09-10 20:36:30

How to force postfix not to send emails?

How to make postfix send messages only by "postfix flush", and put all outgoing messages in the queue? Those. I want to make exclusively manual sending of all correspondence at once. Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Chernykh, 2017-09-11
@East_Star

create a header_check and write a filter there with a criterion that you yourself define according to your headers. For example
/^Received: from my_criteria/ HOLD
in main.cf
header_checks = regexp:/etc/postfix/header_checks
at the right time postsuper -H ALL
something like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question