2015-08-13 19:51:29 -05:00
|
|
|
# LDAP: User mail forwarding
|
|
|
|
|
|
|
|
[TOC]
|
2014-09-22 21:47:49 -05:00
|
|
|
|
|
|
|
## Set mail forwarding with iRedAdmin-Pro
|
|
|
|
|
|
|
|
With iRedAdmin-Pro, you can simply add mail forwarding addresses in user
|
|
|
|
profile page, under tab `Forwarding`.
|
|
|
|
|
|
|
|
Screenshot:
|
|
|
|
|
2014-10-13 05:03:19 -05:00
|
|
|
![](../images/iredadmin/user_profile_mail_forwarding.png)
|
2014-09-22 21:47:49 -05:00
|
|
|
|
|
|
|
## Set mail forwarding with phpLDAPadmin
|
|
|
|
|
|
|
|
To forward emails to other email addresses, you can add value in LDAP attribute
|
|
|
|
`mailForwardingAddress` of user object.
|
|
|
|
|
|
|
|
For example, if you want to forward all emails sent to `user@domain.ltd` to
|
|
|
|
two addresses: `forward@domain.ltd`, `user@gmail.com`. Steps:
|
|
|
|
|
|
|
|
1. Login to phpLDAPadmin (https://[your_server]/phpldapadmin ) as LDAP root dn
|
|
|
|
`cn=Manager,dc=xx,dc=xx` or 'cn=vmailadmin,dc=xx,dc=xx'.
|
|
|
|
|
|
|
|
1. Find the LDAP object of email account which you want to forward emails in
|
|
|
|
left panel of phpLDAPadmin, click the ldap object, phpLDAPadmin will show you
|
|
|
|
detailed LDAP attributes/values in right panel.
|
|
|
|
|
|
|
|
1. Add a new LDAP attribute `mailForwardingAddress` to this mail account, set
|
|
|
|
value to first forwarding address `forward@domain.ltd`.
|
|
|
|
|
|
|
|
1. Repeat step #3, add another email address: `user@gmail.com`.
|
|
|
|
|
|
|
|
1. Save your changes.
|
|
|
|
|
|
|
|
Now all emails sent to `user@domain.ltd` will be forwarded to both
|
|
|
|
`forward@domain.ltd` and `user@gmail.com`.
|
|
|
|
|
2015-01-04 10:17:26 -06:00
|
|
|
If you want to save a copy of forwarded email, please add `user@domain.ltd` as
|
|
|
|
additional value of LDAP attribute `mailForwardingAddress`.
|
2014-09-22 21:47:49 -05:00
|
|
|
|
2015-12-14 23:03:51 -06:00
|
|
|
## Related tutorial
|
|
|
|
|
|
|
|
* [SQL: user mail forwarding](./sql.user.mail.forwarding.html)
|