1 (edited by tianbao 2016-08-27 19:23:13)

Topic: only same domain user send mail to alias group

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

I have a group of people, i want only same domain user send mail to alias group, not accept other domain sent mail to alias, 
What should I do? please!
example: aliasgroup@abc.com, only user domain abc.com sent mail to group, other domain can not sent.
not accept gmail.com,  yahoo.com sent.,.............
Hope I made you understand.....

----

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

2

Re: only same domain user send mail to alias group

Show me basic info of your iRedMail server first:

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

3

Re: only same domain user send mail to alias group

hi,
iRedMail    v0.9.5-1, ubuntu server 16; store my account in MySQL, web Server Apach,
I want to ask iredmail free with functionality to handle it?
thanks!

4

Re: only same domain user send mail to alias group

You can set the mailing list access policy with SQL commands below:

sql> USE vmail;
sql> UPDATE alias SET accesspolicy='domain' WHERE address='aliasgroup@abc.com';

Make sure you have iRedAPD plugin 'sql_alias_access_policy' enabled in file /opt/iredapd/settings.py.

5

Re: only same domain user send mail to alias group

I did successful, thank you very much!

6

Re: only same domain user send mail to alias group

in addition I would like to have a different domain name or a different mail addresses are allowed to send it back?
thanks!

7

Re: only same domain user send mail to alias group

Then set the access policy to 'moderatorsonly', then store the allowed moderators in sql column "alias.moderators".

Valid moderators:

- "*@domain.com": all users under domain
- "user@domain.com": a single email address

This is manageable with iRedAdmin-Pro, in alias profile page.

http://www.iredmail.org/images/iredadmin/alias_profile_general.png