1

Topic: Problem with Mail list

==== Provide required information ====
- iRedMail 0.1.8 and backend LDAP
- Linux CentOS 6.2
====
Hello!

I followed by this instruction for creating a mail list:http://www.iredmail.org/wiki/index.php?title=IRedMail/FAQ/LDAP/Add.Maillist.with.phpLDAPadmin

Here are LDIF data for new mail list:
dn: mail=it@domain1.ru,ou=Groups,domainName=domain1.ru,o=domains,dc=domain1,dc=ru
accesspolicy: domain
accountstatus: active
cn: it
enabledservice: mail
enabledservice: deliver
enabledservice: displayedInGlobalAddressBook
mail: it@domain1.ru
objectclass: mailList

But when I sent e-mail to it@domain1.ru I get following error:
5.1.1 <it@domain1.ru>: Recipient address rejected: User unknown in virtual mailbox table.

Postfix log:

Aug  1 15:45:42 mail postfix/smtpd[6024]: NOQUEUE: reject: RCPT from unknown[1.1.1.1]: 550 5.1.1 <it@domain1.ru>: Recipient address rejected: User unknown in virtual mailbox table; from=<test@domain1.ru> to=<it@domain1.ru> proto=ESMTP helo=<[2.2.2.2]>

Could you help with this issue? Thank you.

----

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

2

Re: Problem with Mail list

Please add at least one mail list member, then test it again.

3

Re: Problem with Mail list

ZhangHuangbin wrote:

Please add at least one mail list member, then test it again.

I already added two members as follows in instruction above but I get some error.

4

Re: Problem with Mail list

Here is one of them

dn: mail=test@domain1.ru,ou=Users,domainName=domain1.ru,o=domains,dc=domain1,dc=ru
accountstatus: active
cn: test
enabledservice: mail
enabledservice: internal
enabledservice: doveadm
enabledservice: smtp
enabledservice: smtpsecured
enabledservice: pop3
enabledservice: pop3secured
enabledservice: imap
enabledservice: imapsecured
enabledservice: deliver
enabledservice: lda
enabledservice: forward
enabledservice: senderbcc
enabledservice: recipientbcc
enabledservice: managesieve
enabledservice: managesievesecured
enabledservice: sieve
enabledservice: sievesecured
enabledservice: displayedInGlobalAddressBook
enabledservice: shadowaddress
enabledservice: lib-storage
givenname: test
homedirectory: /home/mail/vmail1/domain1.ru/t/e/s/test-2012.07.23.17.01.44
/
mail: test@domain1.ru
mailmessagestore: vmail1/domain1.ru/t/e/s/test-2012.07.23.17.01.44/
mailquota: 1073741824
memberofgroup: mail=it@domain1.ru,ou=Groups,domainName=domain1.ru,o=domains,dc=domain1,dc=ru
objectclass: inetOrgPerson
objectclass: shadowAccount
objectclass: amavisAccount
objectclass: mailUser
objectclass: top
shadowlastchange: 15547
sn: test
storagebasedirectory: /home/mail
uid: test
userpassword:*****

5

Re: Problem with Mail list

Then show me LDIF of one of mail list members.

6 (edited by tikonur 2012-08-01 23:14:53)

Re: Problem with Mail list

Please, look my previos message. This user works properly, sends and receives e-mail.

7

Re: Problem with Mail list

memberofgroup: mail=it@domain1.ru,ou=Groups,domainName=domain1.ru,o=domains,dc=domain1,dc=ru

You MUST use email address instead of full ldap dn. For example:

memberOfGroup: it@domain1.ru

8

Re: Problem with Mail list

ZhangHuangbin wrote:

memberofgroup: mail=it@domain1.ru,ou=Groups,domainName=domain1.ru,o=domains,dc=domain1,dc=ru

You MUST use email address instead of full ldap dn. For example:

memberOfGroup: it@domain1.ru

Great!! It works! Thanks a lot!
Could you advice me how can I configure this mail list to be acceptable from the Internet?

9

Re: Problem with Mail list

tikonur wrote:

Could you advice me how can I configure this mail list to be acceptable from the Internet?

Remove LDAP attribute/value "accesspolicy=domain" in mail list.

Attribute accesspolicy is used to define mailing list access policy, controlled by iRedAPD - a Postfix policy server.
Available access policies is listed here (public, domain, subdomain, membersOnly, moderatorsOnly, memebersAndModeratorsOnly):
http://www.iredmail.org/wiki/index.php? … s_policies

== UPDATE ==
I updated the wiki tutorial moment ago, it removes "accesspolicy=domain" by default, but mentions how to use it and possible values.

Hope it helps. smile

10

Re: Problem with Mail list

ZhangHuangbin wrote:
tikonur wrote:

Could you advice me how can I configure this mail list to be acceptable from the Internet?

Remove LDAP attribute/value "accesspolicy=domain" in mail list.

Attribute accesspolicy is used to define mailing list access policy, controlled by iRedAPD - a Postfix policy server.
Available access policies is listed here (public, domain, subdomain, membersOnly, moderatorsOnly, memebersAndModeratorsOnly):
http://www.iredmail.org/wiki/index.php? … s_policies

== UPDATE ==
I updated the wiki tutorial moment ago, it removes "accesspolicy=domain" by default, but mentions how to use it and possible values.

Hope it helps. smile

Thanks a lot again! But it works properly with this parameter:
accessPolicy=public

11

Re: Problem with Mail list

Of course it will work, because accessPolicy=public is the same as no accessPolicy. smile