[SOLVED] Block outgoing messages

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
10137tommy
Posts: 20
Joined: Fri Sep 12, 2014 10:28 pm

[SOLVED] Block outgoing messages

Post by 10137tommy »

Hello, this is very straightforward:
Is there a simple way to allow outgoing messages to recipients present inside a shared address book only?
Example of use: User using the Zimbra MTA can send mail only if the receiver address is present in "Shared addressbook". Any mail sent to other recipients is ignored or bounced.
Thank you!
mmorse
Ambassador
Ambassador
Posts: 6036
Joined: Fri Sep 12, 2014 10:24 pm

[SOLVED] Block outgoing messages

Post by mmorse »

You could export the list to a file and then use something like:

Restrict sending to certain domains - ZimbraWiki

(make use of individual addresses or entire domains)
And don't forget to make an RFE in bugzilla if your looking for simpler methods via the admin console/CLI etc
10137tommy
Posts: 20
Joined: Fri Sep 12, 2014 10:28 pm

[SOLVED] Block outgoing messages

Post by 10137tommy »

It's not exactly what I expected, mostly because of lack of dynamic changes in the list...

but with some scripting and cron I could get the list to update every once in a while, so this is fine too.
Guess its bugzilla time, then!
Two things though:

1. Is there a zimbra particular command to poll ldap for a certain address book? (Meaning "cat"-ing -sort of- the address book, so that the output can be grepped, diffed and filtered to send to the whitelist file.)

2. Will postfix read the whitelist file each time it has to send mail, or does it have to be reloaded for every change made? (hope it's the first one!) ;)
Thanks again!
mmorse
Ambassador
Ambassador
Posts: 6036
Joined: Fri Sep 12, 2014 10:24 pm

[SOLVED] Block outgoing messages

Post by mmorse »

Bug 9620 - Mail policies and access control for sending to distribution lists

[quote]Make check boxes for:

User can send email outside of his domain

User can receive mail from outside his domain.[/quote]The current methods-

Keep mail internally: (yes the name makes it confusing with the next one)

Restrict sending to certain domains - ZimbraWiki

Who can send mail to certain addresses:

RestrictPostfixRecipients - ZimbraWiki
Also related:

Bug 7104 - Distribution List Restrictions
10137tommy
Posts: 20
Joined: Fri Sep 12, 2014 10:28 pm

[SOLVED] Block outgoing messages

Post by 10137tommy »

Voted both bugs, even if they're not exact, that's why I'd like to post a new one ;)

In particular, our client wants to have mail-to recipients restricted to a single - shared, perhaps - address book.
From the wiki Restrict sending to certain domains - ZimbraWiki I suppose that postfix has to be restarted in order to make lists active, am I right?
Thanks for the links mmorse!
Anyone on the 1st question - LDAP polling?
mmorse
Ambassador
Ambassador
Posts: 6036
Joined: Fri Sep 12, 2014 10:24 pm

[SOLVED] Block outgoing messages

Post by mmorse »

be sure to post a link back here so people searching this thread later can find it if you make a new RFE
correct, command is "postfix reload"
Post Reply