1

Topic: Two values of email addresses in the user's account

============ Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.1
- Linux/BSD distribution name and version: Ubuntu Server 14.04 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====
I use phpLDAPadmin. To use the address book in the user entry in the Email was added one more address. When a message is received on the first address it sends a message to the second address of the user. How to disable forwarding the message to the second address, or remove from the field as the second Email address?
I write to you using Google translator

Post's attachments

1.png
1.png 15.52 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

----

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

2

Re: Two values of email addresses in the user's account

Do NOT use multiple `mail` attributes. What's your purpose with this change? maybe we have better solution for you.

3

Re: Two values of email addresses in the user's account

ZhangHuangbin wrote:

What's your purpose with this change?

To have a contact in the address book had two addresses.
When writing message autoselection offers two addresses. Selects an address at your domain, and the server sends a message to both addresses.
How to fix it? Or how to remove the second address?

4

Re: Two values of email addresses in the user's account

plmax wrote:

To have a contact in the address book had two addresses.
When writing message autoselection offers two addresses.

Do you write message with Roundcube or other MUA?
About the address book, do you mean the global address book in Roundcube or other MUA?

plmax wrote:

How to fix it? Or how to remove the second address?

You'd better remove the second address, and use 'shadowAddress' attribute instead.

5 (edited by plmax 2015-06-29 03:28:10)

Re: Two values of email addresses in the user's account

ZhangHuangbin wrote:

About the address book, do you mean the global address book in Roundcube or other MUA?

I mean the global address book in Roundcube.

ZhangHuangbin wrote:

You'd better remove the second address, and use 'shadowAddress' attribute instead.

I can not remove a second address using phpLDAPadmin. How else can you remove the second address?

6

Re: Two values of email addresses in the user's account

If you use Roundcube global address book, try this (and it works for me during testing):

1) Update Roundcube global ldap address book setting in its config file (config.inc.php):

1.1) Append attribute 'shadowAddress' in 'search_fields', for example:

    'search_fields' => array('mail', 'shadowAddress', ...);

1.2) Add one more mapping in 'fieldmap' array:

        'email'       => 'mail:*',
        'email:other' => 'shadowAddress',                   # <-- Add this one

Save your change, and restart php5-fpm service.

2) Add additional email address in user's 'shadowAddress' attribute with phpLDAPadmin. Note: it must be under same mail domain name as 'mail', and emails sent to email addresses defined in 'mail' and 'shadowAddress' attributes will be delivered to same mailbox.

Now try it in writing message window.

7 (edited by plmax 2015-06-30 22:05:45)

Re: Two values of email addresses in the user's account

I understood that was a bad idea to record a second address in the attribute 'mail'. I redid user accounts. I do not understand how else to remove the second address.
I understood  about the 'shadowAddress', but the translator did not translate quite right about what I wrote.
Thanks for the help.

8

Re: Two values of email addresses in the user's account

So did you get it solved?

9

Re: Two values of email addresses in the user's account

ZhangHuangbin wrote:

So did you get it solved?

Yes)