1

Topic: mail forwarding - postfix -> exchange

Hi,

15% of the registered users need there incoming mails delivered to an exchange server. :-/
What is the simplest way to configure a forward to the exchange server (per user)?

Thanks.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: mail forwarding - postfix -> exchange

You can use  mail forwarding.

It can be set in PostfixAdmin or phpLDAPadmin.

3 (edited by mael 2009-07-30 05:34:34)

Re: mail forwarding - postfix -> exchange

Hi,

mailForwarding could be a solution for a per-user install.

1) In my case, some users of domain abc.com have their mailbox on my iredmail server, other users of this domain are exchange users. mailForwarding is indeed a good solution but we need to use another 'private' domain like abc.local for this forwarding. I know that something like :
test@abc.tld                smtp:[my-exchange-server]
in /etc/postfix/transport works great but i can't find  how to do this with iredmail and ldap backend.  Maybe something with mtaTransport ???

2) I've other domains xyz.tld which exclusively use exchange. I'm looking for a way to relay all incoming emails for this domain to my exchange server. I've tried with mtaTransport attribute but it doesn't work.

Any help is welcome.

And Thx for the good work

4 (edited by mael 2009-07-30 07:25:36)

Re: mail forwarding - postfix -> exchange

For the second case, here is what i've done :

dn: domainName=abc.com,o=domains,dc=abc,dc=com
objectClass: mailDomain
accountStatus: active
domainBackupMX: yes
domainName: abc.com
enabledService: mail
enabledService: senderbcc
enabledService: recipientbcc
mtaTransport: smtp:[my-exchange-server-name]

dn: ou=Users,domainName=abc.com,o=domains,dc=abc,dc=com
objectClass: organizationalUnit
objectClass: top
ou: Users

dn: mail=user.exchange@abc.com,ou=Users,domainName=abc.com,o=domains,dc=abc,dc=com
objectClass: inetOrgPerson
objectClass: shadowAccount
objectClass: mailUser
objectClass: top
accountStatus: active
cn: user.exchange
description: Exchange User
enabledService: mail
enabledService: deliver
mail: user.exchange@abc.com
sn: user.exchange
uid: user.exchange

But howto for domains splitted in Exchange/iRedMail ???

5

Re: mail forwarding - postfix -> exchange

Sorry, per-user transport map is not implemented yet. but i commited the code moment ago:
http://code.google.com/p/iredmail/sourc … 09404787db

It's easy to implement it, steps:

* Make sure 'mailUser' objectclass is able to use 'mtaTransport' attribute in /etc/postfix/schema/iredmail.schema (in the bottom line):

objectclass ( 1.3.6.1.4.1.32349.1.2.4.3 NAME 'mailUser'
    DESC 'Mail User' SUP top AUXILIARY
    MUST ( mail $ uid )
    MAY ( storageBaseDirectory $ mailMessageStore $ homeDirectory $
        userPassword $ mailHost $ mailUID $ mailGID $
        mailQuota $ mailQuotaMessageLimit $
        mailForwardingAddress $ accountStatus $
        userRecipientBccAddress $ userSenderBccAddress $
        enabledService $ telephoneNumber $ backupMailAddress $
        mtaTransport $ memberOfGroup $ lastLoginDate $ lastLoginIP ))

* Add per-user transport map lookup file in postfix main.cf:

transport_maps = ldap:/etc/postfix/ldap_transport_maps_user.cf, ldap:/etc/postfix/ldap_transport_maps.cf

* Copy /etc/postfix/ldap_virtual_mailbox_maps.cf to /etc/postfix/ldap_transport_maps_user.cf, change 'result_attribute= mailMessageStore' to 'result_attribute= mtaTransport'.

* Restart postfix.

Note: value of 'mtaTransport' in domain object is still 'dovecot', change mtaTransport in mail user object.

Enjoy, and don't forget to share your success story smile

6

Re: mail forwarding - postfix -> exchange

It's better and more simple like that.

Thx

Don't worry, I'll share my success story.