hold all outgoing email

3 posts / 0 new
Last post
#1 Fri, 12/07/2012 - 08:05
zer0

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

Fri, 12/07/2012 - 15:53
Sun, 12/09/2012 - 00:15 (Reply to #2)
zer0

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

Topic locked