Results 1 to 8 of 8

Thread: Outbound Relay Question

  1. #1
    Join Date
    Jan 2008
    Posts
    42
    Rep Power
    7

    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

  2. #2
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    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

  3. #3
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

  4. #4
    Join Date
    Jan 2008
    Posts
    42
    Rep Power
    7

    Default Voted :) and the above Worked-thank you uxbod!!

    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

  5. #5
    Join Date
    Jan 2008
    Posts
    42
    Rep Power
    7

    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.

  6. #6
    Join Date
    Jan 2008
    Posts
    42
    Rep Power
    7

    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

  7. #7
    Join Date
    Sep 2008
    Posts
    98
    Rep Power
    7

    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?

  8. #8
    Join Date
    Sep 2008
    Posts
    98
    Rep Power
    7

    Default

    push !!! (>10 chars)

Similar Threads

  1. [SOLVED] Sendmail Relay Question (address check against Zimbra)
    By Robert Mortimer in forum Administrators
    Replies: 12
    Last Post: 08-02-2011, 04:22 AM
  2. Relay MTA for external delivery Question
    By quangkhuong7255 in forum Installation
    Replies: 4
    Last Post: 07-30-2008, 02:46 AM
  3. Outbound mail failure: Relay access denied
    By MindexAdmin in forum Installation
    Replies: 2
    Last Post: 07-18-2007, 08:01 AM
  4. Outbound queue problem & fetchmail question
    By phoenix in forum Administrators
    Replies: 7
    Last Post: 01-25-2006, 10:59 AM
  5. Outbound SMTP Question
    By hikenboots in forum Administrators
    Replies: 3
    Last Post: 12-27-2005, 08:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •