1

Topic: disable domain

Hello

I have problem with a disable domain in the ldap account the accountstatus is disable, but when i send mail a this domain the mail is stored locally instead of send out of mail server.

Bye

Enrico

----

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

2

Re: disable domain

It's a bug in OpenLDAP backend, but i don't know how to solve it yet.

It's restricted by LDAP filter, because it can't perform SQL-like query to get accountStatus of mail domain, for example:

SELECT
    mailbox.username, mailbox.active, domain.domain, domain.active
FROM mailbox
LEFT JOIN domain ON (domain.active=1)
WHERE mailbox.domain = domain.domain;

It will check domain status first (domain.active=1), but it's impossible in OpenLDAP.

3

Re: disable domain

It's strange i have also other domain disable and all run.

and when i check the domain with:

postmap -q 'domain.ltd' ldap:/etc/postfix/ldap_virtual_mailbox_domains.cf

there is no answer because the domain is disable..

any ideas?

4

Re: disable domain

Casa.it wrote:

postmap -q 'domain.ltd' ldap:/etc/postfix/ldap_virtual_mailbox_domains.cf
there is no answer because the domain is disable..

This is correct.

But if you try below command, it will return maildir path of user:

# postmap -q 'user@domain.ltd' ldap:/etc/postfix/ldap_virtual_mailbox_maps.cf

Ideally, if you have domain "domain.ltd" disabled, execute above command will not get any result, even this user is enabled.

5

Re: disable domain

I fixed this issue for MySQL backend moment ago:

- wiki: http://www.iredmail.org/wiki/index.php? … ilbox_maps
- Code commit log: http://code.google.com/p/iredmail/sourc … 3a28628a8c, http://code.google.com/p/iredmail/sourc … fa3ac63866

6

Re: disable domain

Hi,

Not working links. How i can fix the problem with disabled domains?

7

Re: disable domain

karolis wrote:

Not working links. How i can fix the problem with disabled domains?

Dear karolis,

You're digging a 5-year old thread. Please create a new forum topic and clearly explain what your issue is. The more details the better, and better paste related error/log, so that others can help troubleshoot.