1 (edited by z0its 2014-11-13 15:39:58)

Topic: redirect outgoing mail

======== Required information ====
- iRedMail version: 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: Ubuntu 14.04
- Related log if you're reporting an issue:
====
Hi. I have 2 domains: first doman1.com issued by hoster, it mailbox user1@doman1.com, through it send and receive mail and second domain - doman2.com created in ired, it mailboxes user1@domain2.com, user2@domain2.com. How using ldap make that outgoing mail from user1, user2@domain2.com sended through user1@doman1.com?

----

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

2

Re: redirect outgoing mail

You should try Postfix setting "sender_dependent_relayhost_maps":
http://www.postfix.org/postconf.5.html# … yhost_maps