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 Display Modes
  #1 (permalink)  
Old 08-05-2006, 01:19 PM
Active Member
 
Posts: 29
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
Reply With Quote
  #2 (permalink)  
Old 08-11-2006, 11:12 AM
Zimbra Employee
 
Posts: 4,784
Default

We are using virtual. You should be able to use local. Just be sure to back up the config before you try this.
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #3 (permalink)  
Old 05-11-2007, 02:55 AM
New Member
 
Posts: 4
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 03:44 AM.
Reply With Quote
  #4 (permalink)  
Old 05-17-2007, 01:43 AM
Loyal Member
 
Posts: 78
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
Reply With Quote
  #5 (permalink)  
Old 05-17-2007, 02:22 AM
New Member
 
Posts: 4
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 03:02 AM.
Reply With Quote
  #6 (permalink)  
Old 05-17-2007, 03:06 AM
Zimbra Consultant & Moderator
 
Posts: 11,505
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.
__________________
Regards


Bill

Last edited by phoenix : 05-17-2007 at 04:12 AM.
Reply With Quote
  #7 (permalink)  
Old 05-17-2007, 03:28 AM
New Member
 
Posts: 4
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
Reply With Quote
  #8 (permalink)  
Old 05-17-2007, 04:33 AM
Loyal Member
 
Posts: 78
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
Reply With Quote
  #9 (permalink)  
Old 05-17-2007, 04:46 AM
New Member
 
Posts: 4
Default

Thank you Artturi
Reply With Quote
  #10 (permalink)  
Old 06-05-2007, 01:29 PM
Junior Member
 
Posts: 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
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0