1

Topic: alias from another domain

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: ubuntu 16.04 64
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx):nginx
- Manage mail accounts with iRedAdmin-Pro? yes
- Related log if you're reporting an issue:
====

I am surprised why i cannot add alias for user from another domain?
user@domain1.com   can't have alias user2@domain2.com
Postfix can do it, why iRedAdmin-Pro don't allow it?

----

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

2

Re: alias from another domain

Never tried LDAP but with MYSQL you can point any alias directly into database.

3

Re: alias from another domain

bartoruiz wrote:

Never tried LDAP but with MYSQL you can point any alias directly into database.

Then you talk "directly"  you alway talk about Postfix. Postfix can do it and i could make it directly. Iredmail-pro panel not , that's the question)

4

Re: alias from another domain

Constin wrote:

user@domain1.com   can't have alias user2@domain2.com

Could you please explain with more details?

*) Is user@domain.com a mail user, alias or mailing list?
*) Is user2@domain2.com a mail user, alias or mailing list?
*) Are they both hosted on your server?

5

Re: alias from another domain

ZhangHuangbin wrote:
Constin wrote:

user@domain1.com   can't have alias user2@domain2.com

Could you please explain with more details?

*) Is user@domain.com a mail user, alias or mailing list?
*) Is user2@domain2.com a mail user, alias or mailing list?
*) Are they both hosted on your server?


1. create user1@domain1.com as mailbox
2. edit user1@domain1.com alias field and try to add alias user2@domain2.com
not possible


it seems , that only possible way is create mailbox user2@domain2.com  and forward it to user1@domain1.com. but in this case user1@domain1.com can't send mails as user2@domain2.com until i remove restriction for ANY user to send email form ANY mailbox i have.

6

Re: alias from another domain

The most important part to me is: is domain2.com hosted on same server as domain1.com?

7

Re: alias from another domain

ZhangHuangbin wrote:

The most important part to me is: is domain2.com hosted on same server as domain1.com?

yes

8

Re: alias from another domain

and in alias field this alert:

"Email address of alias account must end with domain name(s): domain1.com"

9

Re: alias from another domain

Constin wrote:

and in alias field this alert:

"Email address of alias account must end with domain name(s): domain1.com"

Seems i misunderstood your request from beginning.

iRedAdmin-Pro restricts alias address in same domain. If you want to deliver emails sent to both user@domain1.com and user@domain2.com to same mailbox, another way is: use same maildir path -- you can update it in user profile page.

If you want to send email as user@domain2.com, you can allow user@domain1.com in /opt/iredapd/settings.py like this:

ALLOWED_LOGIN_MISMATCH_SENDERS = ['user@domain1.com']

But user@domain1.com will be able to send email as other addresses like 'user@domain3.com', 'user@domain4.com'.

Maybe we can improve this "ALLOWED_LOGIN_MISMATCH_SENDERS" setting by specifying allowed different senders like this:

ALLOWED_LOGIN_MISMATCH_SENDERS = [
    {'user@domain1.com': ['user@domain2.com']}
}

So that only "user@domain2.com" is allowed, not all addresses.

10

Re: alias from another domain

Yes, i wrote about it , i could allow any user send from any exist emails, but it's potential backdoor, i need to trust all users in this way.

Why ired-pro restrict aliases from other domains on same server?

11 (edited by Constin 2016-12-13 20:36:01)

Re: alias from another domain

ZhangHuangbin wrote:

If you want to send email as user@domain2.com, you can allow user@domain1.com in /opt/iredapd/settings.py like this:

ALLOWED_LOGIN_MISMATCH_SENDERS = ['user@domain1.com']

hmm, i din't know about this option.

12

Re: alias from another domain

Constin wrote:

Why ired-pro restrict aliases from other domains on same server?

Per-user/per-account alias address across multiple domains (managed by same admin) seems fine, i will try to implement this in future release, but cannot guarantee when it will be implemented. Currently you have to use alternative way to achieve your goal. sorry.