Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-30-2008, 06:34 AM
Active Member
 
Posts: 42
Default Outbound Relay Question

Can anyone tell me if I can create an outbound relay for just one of the Virtual domains. I have several domains but only one of them needs an Outbound relay to Postini archive services.

Thanks
Reply With Quote
  #2 (permalink)  
Old 10-31-2008, 01:40 AM
Moderator
 
Posts: 7,928
Default

Out of the box I don't think you can do it in ZCS, but have a read of these for making the changes yourself :-

How to use sender_dependent_relayhost_maps in master.cf - ReadList.com
Postfix Configuration Parameters

You could also file a RFE to allow the relay to be specifed by domain
__________________
Reply With Quote
  #3 (permalink)  
Old 10-31-2008, 05:32 AM
Moderator
 
Posts: 7,928
Default

Bug 32740 - Per domain Relay MTA for external delivery. So now please vote
__________________
Reply With Quote
  #4 (permalink)  
Old 10-31-2008, 09:35 AM
Active Member
 
Posts: 42
Default Voted :) and the above Worked-thank you uxbod!!

Quote:
How to use sender_dependent_relayhost_maps in master.cf - ReadList.com
this works with a little modification.


***Here is what I did*** Tested and it works on a per domain level.

[zimbra@mail conf]$ tail -20 main.cf
smtpd_tls_loglevel = 1
relayhost =
disable_dns_lookups = no
content_filter = smtp-amavis:[127.0.0.1]:10024
virtual_mailbox_maps = ldap:/opt/zimbra/conf/ldap-vmm.cf
version = 2.4.3.4z
mailq_path = /opt/zimbra/postfix-2.4.3.4z/sbin/mailq
header_checks = pcre:/opt/zimbra/conf/postfix_header_checks
smtpd_use_tls = yes
queue_directory = /opt/zimbra/postfix-2.4.3.4z/spool
newaliases_path = /opt/zimbra/postfix-2.4.3.4z/sbin/newaliases
smtpd_reject_unlisted_recipient = yes
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_tls_key_file = /opt/zimbra/conf/smtpd.key
command_directory = /opt/zimbra/postfix-2.4.3.4z/sbin
smtpd_sasl_auth_enable = yes
sender_dependent_relayhost_maps = hash:/opt/zimbra/postfix/conf/sender_relay
recipient_bcc_maps = pcre:/opt/zimbra/postfix/conf/recipient_bcc.pcre
sender_bcc_maps = pcre:/opt/zimbra/postfix/conf/sender_bcc.pcre

/opt/zimbra/postfix/conf/sender_relay:

@domain-a.com smtpdhost1
@domain-b.com smtpdhost2

***Make sure you hash the sender_relay after adding rules.
$postmap hash:/opt/zimbra/postfix/conf/sender_relay

[zimbra@mail conf]$ ls -ltr sender_rel*
-rw-r----- 1 zimbra zimbra 52 Oct 31 10:26 sender_relay
-rw-r----- 1 zimbra zimbra 12288 Oct 31 10:35 sender_relay.db


also see How to use sender_dependent_relayhost_maps in master.cf - ReadList.com

Last edited by mikec; 10-31-2008 at 09:36 AM.. Reason: edit
Reply With Quote
  #5 (permalink)  
Old 10-31-2008, 01:24 PM
Active Member
 
Posts: 42
Default

Actually there is one problem with the above config... If mail is sent from userA@domainA.com to userB@domainA.com or userA@domainA.com to userA@domainB.com (both domains or users on the same Zimbra installation) the sender_relay is ignored. This will be the item to tackle as we are required to archive all email.

I’m wondering if there is a way to force postfix to look the sender_relay for all outbound mail even if the person receiving is on the same server.
Reply With Quote
  #6 (permalink)  
Old 11-03-2008, 09:23 AM
Active Member
 
Posts: 42
Default

Does anyone know a way to get around the LMTP? I can get per domain relay host working using the sender_relay param but this param is bypassed when the sender and receiver are on the same domain/server. I need a way to tell the LMTP to use the sender_relay for all emails sent from this domain even if the user/receiver is local.


Any Ideas?

Thanks
Reply With Quote
  #7 (permalink)  
Old 02-05-2009, 02:51 PM
Loyal Member
 
Posts: 93
Default

@mikec: thx for the short tutorial.

i found another sheet with more informations: Postfix Small/Home Office Hints and Tips

but the multiple isp accounts doesn't work, its only works when i write in the first column from sasl_passwd the smtp-server. but then i can only send from one user because the other user a blocked because the login-informations are mismatch (i testet it with gmx).

what can be the problem?
Reply With Quote
  #8 (permalink)  
Old 05-01-2009, 02:35 PM
Loyal Member
 
Posts: 93
Default

push !!! (>10 chars)
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.