1

Topic: Deny Users from sending mails to specific Alias.

HI,

I have installed iredmail and is working fine.

I am using postfixadmin for managing users / Aliases.

I need to know if I can block users from sending mails to certain Aliases.

Regards,
Shashank.

----

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

2

Re: Deny Users from sending mails to specific Alias.

Sure you can.

iRedMail installs iRedAPD (a postfix policy server) by default, you can update column "alias.accesspolicy" with different access policy.

Reference:
http://iredmail.org/wiki/index.php?titl … s_policies

3

Re: Deny Users from sending mails to specific Alias.

Hi,

I did as suggested.

I am getting following message in iredapd.log :

INFO Error: plugin /opt/iredapd/src/plugins/sql_alias_access_policy.py not exist.

I checked and verified that the file already exists.

permissions : 0700 and iredapd:iredapd for the file.

Please suggest.

4

Re: Deny Users from sending mails to specific Alias.

May i know which version of iRedMail AND iRedAPD you're running?

5

Re: Deny Users from sending mails to specific Alias.

Following are the versions :

Iredmail : iRedMail-0.7.2

Iredapd : iRedAPD-1.3.6

6

Re: Deny Users from sending mails to specific Alias.

Shashank wrote:

I did as suggested.

May i know what you exactly did?
Also, please paste output of below command:

# ls /opt/iredapd/src/plugins/

7

Re: Deny Users from sending mails to specific Alias.

-rwx------ 1 iredapd iredapd 1680 Dec  5 11:42 block_amavisd_blacklisted_senders.py
-rwx------ 1 iredapd iredapd    0 Dec  5 11:42 __init__.py
-rwx------ 1 iredapd iredapd 4932 Dec  5 11:42 ldap_domain_wblist.py
-rwx------ 1 iredapd iredapd 7818 Dec  5 11:42 ldap_maillist_access_policy.py
-rwx------ 1 iredapd iredapd 3693 Dec  5 11:42 sql_alias_access_policy.py

8

Re: Deny Users from sending mails to specific Alias.

Looks fine, i've no idea. sad

9

Re: Deny Users from sending mails to specific Alias.

I am not understanding why I am getting the following error :

INFO Error: plugin /opt/iredapd/src/plugins/sql_alias_access_policy.py not exist

Is there anything else I have to do ???

Anything to be done in Mysql Database ?

10

Re: Deny Users from sending mails to specific Alias.

The problem is, file exists on your server. There's nothing to do with MySQL database.
I have no idea why it happened yet. Sorry.