Got it, for those trying to restrict please view this thread ZIMBRA SMTP AUTH problem
Here is a breakdown on whats need to be done to use with Ubuntu 12.04 and Zimbra 8.
Here we go.
First off :
su - zimbra
Next vi /opt/zimbra/conf/zmconfigd.cf file (will need to change permission in order to edit ... chmod 644 - dont forget to change back to 444 after)
Add below -- POSTCONF smtpd_recipient_restrictions FILE zmconfigd/postfix_recipient_restrictions.cf
Code:
POSTCONF proxy_read_maps FILE zmconfigd/proxy_read_maps.cf
Add below -- POSTCONF smtpd_sender_restrictions FILE zmconfigd/smtpd_sender_restrictions.cf
Code:
POSTCONF smtpd_sender_login_maps proxy:ldap:/opt/zimbra/conf/ldap-slm.cf
Save exit.
Next enter directory /opt/zimbra/conf/zmconfigd/
vi smtpd_sender_restrictions.cf (again you will need to change permissions to 644, then change back after editing)
Input --
Code:
permit_mynetworks, reject_sender_login_mismatch
Above Lines --
%%contains VAR:zimbraServiceEnabled antivirus, check_sender_access regexp:/opt/zimbra/postfix/conf/tag_as_originating.re%%
%%contains VAR:zimbraServiceEnabled antivirus, permit_mynetworks%%
%%contains VAR:zimbraServiceEnabled antivirus, permit_sasl_authenticated%%
%%contains VAR:zimbraServiceEnabled antivirus, permit_tls_clientcerts%%
%%contains VAR:zimbraServiceEnabled antivirus, check_sender_access regexp:/opt/zimbra/postfix/conf/tag_as_foreign.re%%
Save exit.
Next we need to create a file in this same directory:
In this file you will need to include your read maps. Issue the following command :
Code:
postconf | grep proxy_read_maps
For me on zimbra 8, I got the following read maps:
$local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $smtpd_sender_login_maps $sender_bcc_maps $recipient_bcc_maps $smtp_generic_maps $lmtp_generic_maps $alias_maps, proxy:ldap:/opt/zimbra/conf/ldap-slm.cf
Then with your read maps --
Code:
vi proxy_read_maps.cf
and input your maps an include , proxy:ldap:/opt/zimbra/conf/ldap-slm.cf at the end (like my maps read out above^ ) -- then save exit.
Next back to /opt/zimbra/conf directory to create the ldap-slm.cf
issue the following commands and make note of results (host and password) --
Code:
grep server_host /opt/zimbra/conf/ldap-vam.cf
grep bind_pw /opt/zimbra/conf/ldap-vam.cf
vi ldap-slm.cf, and input the following for LDAP(S)
Code:
server_host = ldaps://HOST:636
server_port = 636
search_base =
query_filter = (&(|(zimbraMailDeliveryAddress=%s)(zimbraMailAlias=%s)(zimbraMailCatchAllAddress=%s)(mail=%s))(zimbraMailStatus=enabled))
result_attribute = zimbraMailDeliveryAddress,zimbraMailForwardingAddress,zimbraPrefMailForwardingAddress,zimbraMailCatchAllForwardingAddress,uid
version = 3
start_tls = no
tls_ca_cert_dir = /opt/zimbra/conf/ca
bind = yes
bind_dn = uid=zmpostfix,cn=appaccts,cn=zimbra
bind_pw = PASSWORD
timeout = 30
or for LDAP
Code:
server_host = ldap://HOST:389
server_port = 389
search_base =
query_filter = (&(|(zimbraMailDeliveryAddress=%s)(zimbraMailAlias=%s)(zimbraMailCatchAllAddress=%s)(mail=%s))(zimbraMailStatus=enabled))
result_attribute = zimbraMailDeliveryAddress,zimbraMailForwardingAddress,zimbraPrefMailForwardingAddress,zimbraMailCatchAllForwardingAddress,uid
version = 3
start_tls = yes
tls_ca_cert_dir = /opt/zimbra/conf/ca
bind = yes
bind_dn = uid=zmpostfix,cn=appaccts,cn=zimbra
bind_pw = PASSWORD
timeout = 30
Save exit, then -- Code:
chown zimbra:postfix ldap-slm.cf
Then a simple postfix reload and your viola your ready to go. 
A couple notes:
I had an issue when trying to bind the ldap-slm.cf with LDAPS, the solution was to change start_tls = yes to start_tls = no, fixed my issue.
Another note, if you are sending from within your trusted networks you will need to make changes, this is for external network users/clients who try to send from faked alias/personas/FROM addresses through zimbra.
Hope this helps those who experienced this same issue.
Lets hope this will be integrated into the web gui at some point or have "send from any email" checkbox control both the web clients and external clients the same.
Happy Halloween and Happy Zimbraing!