Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: postfix transport maps

  1. #1
    pheonix1t is offline Active Member
    Join Date
    Aug 2006
    Posts
    29
    Rep Power
    8

    Default postfix transport maps

    hello,
    we are using a zimbra server but we also have a novell groupwise server on our network. I'd like to do a per user transport table on postfix so it relays emails to specific users on the groupwise server.

    I know about setting the transport_maps on the main.cf file on postfix as well as what to include in the file.

    I'm just curious about the 'zimbra' way of doing this.

    zimbra already has a transport map

    smtpd_tls_loglevel = 3
    smtpd_use_tls = yes
    transport_maps = ldap:/opt/zimbra/conf/ldap-transport.cf
    virtual_alias_domains = ldap://opt/zimbra/conf/ldap-vad.cf
    virtual_alias_maps = ldap:/opt/zimbra/conf/ldap-vam.cf
    virtual_mailbox_domains = ldap:/opt/zimbra/conf/ldap-vmd.cf
    virtual_mailbox_maps = ldap:/opt/zimbra/conf/ldap-vmm.cf
    virtual_transport = error
    zimbra@mail:~>

    can I just add another transport map after this one? zimbra is working great so I don't want to break anything.

    thanks,

    Oskar

  2. #2
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    18

    Default

    We are using virtual. You should be able to use local. Just be sure to back up the config before you try this.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  3. #3
    ZoemDoef is offline New Member
    Join Date
    May 2007
    Location
    South Africa
    Posts
    4
    Rep Power
    7

    Default

    Hi

    Please would someone explain to me how to go about adding/modifying a transport map in a Zimbra server?

    Should it be added directly into ldap? and if so what whould be the best way? (use a ldap editor?)
    Last edited by ZoemDoef; 05-14-2007 at 02:44 AM.

  4. #4
    Artturi is offline Loyal Member
    Join Date
    Dec 2006
    Location
    Paris
    Posts
    78
    Rep Power
    8

    Default

    I modified /opt/zimbra/conf/zmmta.cf.

    Append a value to the appropriate line, like

    'ldap:/opt/zimbra/conf/ldap-transport.cf,hash:/etc/zimbra/mytransport'

    Then restart postfix
    zmmtactl stop
    zmmtactl start


    Regards
    Artturi

  5. #5
    ZoemDoef is offline New Member
    Join Date
    May 2007
    Location
    South Africa
    Posts
    4
    Rep Power
    7

    Default

    I dont think we have the same version...

    I am running version 4.5, where would the appropriate line be in the zmmta.cf?
    Last edited by ZoemDoef; 05-17-2007 at 02:02 AM.

  6. #6
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    Quote Originally Posted by ZoemDoef View Post
    I dont think we have the same version...
    It'e the same file and location in all version sof Zimbra.

    Quote Originally Posted by ZoemDoef View Post
    I am running version 4.5, where would the appropriate line be in the zmmta.cf?
    Which 'appropriate line' are you talking about? If you mean the one Artturi posted then you append it (i.e. add it to the end) of that line.
    Last edited by phoenix; 05-17-2007 at 03:12 AM.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    ZoemDoef is offline New Member
    Join Date
    May 2007
    Location
    South Africa
    Posts
    4
    Rep Power
    7

    Default

    i have not had much sleep and apoligize for my slowness. Please would you show me where in the zmmta.cf file i should add:

    'ldap:/opt/zimbra/conf/ldap-transport.cf,hash:/etc/zimbra/mytransport'

    zmmta.cf:

    SECTION antivirus DEPENDS antispam
    REWRITE conf/amavisd.conf.in conf/amavisd.conf
    REWRITE conf/salocal.cf.in conf/salocal.cf
    REWRITE conf/clamd.conf.in conf/clamd.conf
    REWRITE conf/freshclam.conf.in conf/freshclam.conf

    VAR zimbraVirusWarnRecipient
    VAR zimbraVirusWarnAdmin
    VAR zimbraVirusDefinitionsUpdateFrequency
    VAR zimbraVirusBlockEncryptedArchive

    LOCAL ldap_url
    LOCAL zimbra_ldap_userdn
    LOCAL zimbra_ldap_password
    LOCAL av_notify_domain
    LOCAL av_notify_user

    RESTART antivirus mta
    SECTION antispam

    REWRITE conf/amavisd.conf.in conf/amavisd.conf
    REWRITE conf/salocal.cf.in conf/salocal.cf

    POSTCONF content_filter
    if SERVICE antivirus
    POSTCONF content_filter smtp-amavis:[127.0.0.1]:10024
    fi
    if SERVICE antispam
    POSTCONF content_filter smtp-amavis:[127.0.0.1]:10024
    fi

    LOCAL ldap_url
    LOCAL zimbra_ldap_userdn
    LOCAL zimbra_ldap_password
    VAR zimbraSpamKillPercent
    VAR zimbraSpamTagPercent
    VAR zimbraSpamSubjectTag
    RESTART antispam mta
    SECTION mta

    POSTCONF content_filter
    if SERVICE antivirus
    POSTCONF content_filter smtp-amavis:[127.0.0.1]:10024
    fi
    if SERVICE antispam
    POSTCONF content_filter smtp-amavis:[127.0.0.1]:10024
    fi
    VAR zimbraMtaRestriction
    VAR zimbraMtaBlockedExtension
    VAR zimbraMtaRecipientDelimiter
    VAR zimbraMtaMyNetworks
    if VAR zimbraMtaMyNetworks
    POSTCONF mynetworks VAR zimbraMtaMyNetworks
    fi
    LOCAL zimbra_server_hostname
    REWRITE conf/postfix_header_checks.in conf/postfix_header_checks
    POSTCONF myhostname LOCAL zimbra_server_hostname
    POSTCONF recipient_delimiter VAR zimbraMtaRecipientDelimiter
    POSTCONF smtpd_sasl_auth_enable VAR zimbraMtaAuthEnabled
    POSTCONF smtpd_tls_auth_only VAR zimbraMtaTlsAuthOnly
    POSTCONF smtpd_use_tls yes
    POSTCONF disable_dns_lookups VAR !zimbraMtaDnsLookupsEnabled
    POSTCONF message_size_limit VAR zimbraMtaMaxMessageSize
    POSTCONF mailbox_size_limit 0
    POSTCONF relayhost VAR zimbraMtaRelayHost
    POSTCONF smtpd_recipient_restrictions FILE postfix_recipient_restrictions.cf

    POSTCONF alias_maps LOCAL postfix_alias_maps
    POSTCONF broken_sasl_auth_clients LOCAL postfix_broken_sasl_auth_clients
    POSTCONF command_directory LOCAL postfix_command_directory
    POSTCONF daemon_directory LOCAL postfix_daemon_directory
    POSTCONF header_checks LOCAL postfix_header_checks
    POSTCONF mailq_path LOCAL postfix_mailq_path
    POSTCONF manpage_directory LOCAL postfix_manpage_directory
    POSTCONF newaliases_path LOCAL postfix_newaliases_path
    POSTCONF queue_directory LOCAL postfix_queue_directory
    POSTCONF sender_canonical_maps LOCAL postfix_sender_canonical_maps
    POSTCONF sendmail_path LOCAL postfix_sendmail_path
    POSTCONF smtpd_client_restrictions LOCAL postfix_smtpd_client_restrictions
    POSTCONF smtpd_data_restrictions LOCAL postfix_smtpd_data_restrictions
    POSTCONF smtpd_helo_required LOCAL postfix_smtpd_helo_required
    POSTCONF smtpd_reject_unlisted_recipient no
    POSTCONF smtpd_tls_cert_file LOCAL postfix_smtpd_tls_cert_file
    POSTCONF smtpd_tls_key_file LOCAL postfix_smtpd_tls_key_file
    POSTCONF smtpd_tls_loglevel LOCAL postfix_smtpd_tls_loglevel
    POSTCONF transport_maps LOCAL postfix_transport_maps
    POSTCONF version LOCAL postfix_version
    POSTCONF virtual_alias_domains LOCAL postfix_virtual_alias_domains
    POSTCONF virtual_alias_maps LOCAL postfix_virtual_alias_maps
    POSTCONF virtual_mailbox_domains LOCAL postfix_virtual_mailbox_domains
    POSTCONF virtual_mailbox_maps LOCAL postfix_virtual_mailbox_maps
    POSTCONF virtual_transport LOCAL postfix_virtual_transport

    RESTART mta
    SECTION sasl
    VAR zimbraMtaAuthURL
    REWRITE cyrus-sasl-2.1.21.ZIMBRA/etc/saslauthd.conf.in cyrus-sasl-2.1.21.ZIMBRA/etc/saslauthd.conf
    RESTART mta sasl

    SECTION webxml
    VAR zimbraMailPort
    VAR zimbraMailSSLPort
    REWRITE tomcat/conf/zimbra.web.xml.in tomcat/webapps/zimbra/WEB-INF/web.xml
    REWRITE tomcat/conf/zimbraAdmin.web.xml.in tomcat/webapps/zimbraAdmin/WEB-INF/web.xml
    REWRITE tomcat/conf/service.web.xml.in tomcat/webapps/service/WEB-INF/web.xml
    RESTART tomcat

    SECTION mailbox
    VAR zimbraMailPort
    VAR zimbraMailSSLPort
    REWRITE tomcat/conf/server.xml.in tomcat/conf/server.xml
    RESTART tomcat

    SECTION perdition
    LOCAL ldap_url
    REWRITE conf/perdition.conf.in conf/perdition.conf
    RESTART perdition

  8. #8
    Artturi is offline Loyal Member
    Join Date
    Dec 2006
    Location
    Paris
    Posts
    78
    Rep Power
    8

    Default

    replace this one :

    POSTCONF transport_maps LOCAL postfix_transport_maps

    by :

    POSTCONF transport_maps ldap:/opt/zimbra.......

    Remember you'll have to this each time you do an upgrade.
    Artturi

  9. #9
    ZoemDoef is offline New Member
    Join Date
    May 2007
    Location
    South Africa
    Posts
    4
    Rep Power
    7

    Default

    Thank you Artturi

  10. #10
    bdbell is offline Junior Member
    Join Date
    May 2007
    Posts
    7
    Rep Power
    7

    Default

    Why not do it as a configuration change? Then it will be retained across upgrades. For example:

    zmlocalconfig -e postfix_transport_maps=ldap:/opt/zimbra/conf/ldap-transport.cf,hash:/etc/zimbra/mytransport

    Then do a zmmtactl stop; start

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 11-03-2007, 10:55 PM
  2. Sending Mail! Still something wrong!
    By BlueHaven in forum Installation
    Replies: 11
    Last Post: 08-02-2007, 04:19 PM
  3. Error while trying to view queues
    By SpEnTBoY in forum Administrators
    Replies: 17
    Last Post: 05-08-2007, 09:43 AM
  4. Cannot send mail.
    By jeremyshoe in forum Installation
    Replies: 7
    Last Post: 10-17-2006, 09:42 PM
  5. unable to restart zimbra after reboot
    By droefs in forum Administrators
    Replies: 28
    Last Post: 04-16-2006, 02:33 PM

Posting Permissions

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