hold all outgoing email

Hello Everyone,

I need a little help here, I need to temporarily hold all outgoing emails either in the queue or anywhere until they are reviewed by someone and then can be released by that person. All local deliveries are ok, only need to hold the ones going to external domains like hotmail, gmail etc…

I have searched and found that we need to play with “check_recipient_access” in postfix config file. But I could not get it to work.

Any help will be greatly appreciated.

Thank you

PS: I’m using Ubuntu 10.04

Maybe this helps?

http://serverfault.com/questions/92981/how-do-i-temporarily-suspend-mail-delivery-to-a-specific-domain-non-local-with

Thank you for reply Locutus…of Borg.
but what if I want to hold of on alll but local domain, that hold file will be a pretty big list. There has to be an exception.

EDIT: with command like

smtpd_recipient_restrictions =

check_recipient_access hash:/etc/postfix/hold

the email does get held but where does it go? I dont see it in the Main Queue, where can i find it?

Thanx

EDIT-2: Seems like when the HOLD restriction is in place, if the message contains both local and non-local recipient then even the local recipient doesn’t get the message, is there a way around it?
Thanx