Delay configuration in postfix

Hi Experts,
I have  a mail server and mails to external domain mails are routed through another postfix mail server. I need to configure delay for 5-10 mins when any of the users under mydomain send mails to external domain. whereas mydomain mails should deliver without any delay. I have tried default_destination_rate_delay, but it didn't reach upto my expectations.
LVL 12
Prabhin MPEngineer-TechOPSAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

please clarify, you want to have delay injected into a message?
commonly, as soon as a message enters the queue it tries to be sent out.
It might be easier to approach the issue by providing a solution to the reason you are looking at introducing the delay in the first place.

the processing is similar, a message comes in, it is classified as remote or local and processed accordingly.
a delay is introduced when the first connection attempt is not ....

are you lookig to audit outgoing messages ...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Prabhin MPEngineer-TechOPSAuthor Commented:
Hi Arnold,
Basically if any employees send a mail by mistake to our client. I need to stop it from the mail queue . Current configuration delays mail for incoming and outgoing mails in the relay host as it is checking for concurrent destination.
Do you want a system that any outgoing email to external domain is delayed until approved, authorized?
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Prabhin MPEngineer-TechOPSAuthor Commented:
No need of approval delay for 5 mins, so in case i can delete that particular mail from mail queue. But it should not affect the incoming mails.
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
If you take your approach, 5-10 minute delay, then your entire job will turn into reading email.

I suggest you take arnold's suggestion an setup an authorization/release system for all email.

Then once every hour or day or whatever frequency you like, someone can read every email + release or deny each email.
Prabhin MPEngineer-TechOPSAuthor Commented:
hi ,
frankly speaking I don't want to read all the mails, just I need to make delay in my relay host server. the setting which I tried was default destination delay rate. It affects my incoming mails which is transported from relay server to on premises server.
What is the point behind a five minute delay? For the person who hit send, to notify you that they erred and for you to hunt down the message?
You either have an approval sustem, or have the people take ownership of what they send.
Commonly, the sender is told that they erred by sending  an email by one of the other recipients.
David FavorLinux/LXD/WordPress/Hosting SavantCommented:
Marked both these solutions, as they request related information + poster failed to provide requested information.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.