Dear List,

I am trying to host mailling services for two domains under the same
instance of postfix (2.2.10). The name of the domains are rpg.in and cpl.in.
The domains will have separate name space for them. The user details are
kept in LDAP. The maildrop is my local delivery agent. The mailstores, n
Maildir format, are kept like

/home/vmail/rpg.in/<users of rpg.in domain>
/home/vmail/cpl.in/<users of cpl.in domain>

The search base for rpg.in domain is ou=People,dc=rpg,dc=in
The search base for cpl.in do# abcd, People1, rpg.in

The command ldapsearch -x mail=a...@cpl.in returns
# abcd, People1, rpg.in
dn: uid=abcd,ou=People1,dc=rpg,dc=in
accountStatus: enable
etc.

And the command ldapsearch -x mail=bo...@rpg.in returns
# bonhi, People, rpg.in
dn: uid=bonhi,ou=People,dc=rpg,dc=in
uid: bonhi
cn: Bonhi  Sengupta
sn: bonhi
title: bonhi
homeDirectory: /home/vmail/rpg.in/bonhi
mailMessageStore: /home/vmail/rpg.in/bonhi/Maildir/
accountStatus: enable
etc.

In my main.cf I have (I feel these are the the relevant portions, please
correct me if I am wrong)

mydomain = rpg.in
virtual_mailbox_domains = cpl.in
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_maps = ldap:accounts
virtual_mailbox_maps = ldap:accounts-cpl
virtual_minimum_uid = 5000
virtual_result_attribute = mailMessageStore
virtual_maildir_extended = yes
local_transport = maildrop

accounts_timeout = 60
accounts_server_host = 127.0.0.1
accounts_search_base = ou=People,dc=rpg,dc=in
accounts_server_port = 389
accounts_query_filter = (&(|(mail=%s) (mailAlternateAddress=%s))
(accountStatus=active))
accounts_result_attribute = mailMessageStore

accounts-cpl_timeout = 60
accounts-cpl_server_host = 127.0.0.1
accounts-cpl_search_base = ou=People1,dc=cpl,dc=in
accounts-cpl_server_port = 389
accounts-cpl_query_filter = (&(|(mail=%s) (mailAlternateAddress=%s))
(accountStatus=active))
accounts-cpl_result_attribute = mailMessageStore

I am pushing mail using telnet. When I try to send a mail to bo...@rpg.in
the mail is getting delivered properly. But when I try to send a mail to
a...@cpl.in then that mails stays on the queue. The maillog file has the
entries:

Jan 16 16:45:40 mail postfix/qmgr[23899]: 99A2517E17: from=<bo...@rpg.in>,
size=317, nrcpt=1 (queue active)
Jan 16 16:45:40 mail postfix/virtual[24436]: warning: dict_ldap_lookup:
accounts-cpl: Search base 'ou=People1,dc=cpl,dc=in' not found: 32: No such
object
Jan 16 16:45:40 mail postfix/virtual[24436]: 99A2517E17: to=<a...@cpl.in>,
relay=virtual, delay=31, status=deferred (virtual_mailbox_maps: lookup
a...@cpl.in: Success)
Jan 16 16:45:50 mail postfix/smtpd[24407]: disconnect from
mail.rpg.in[127.0.0.1]

The postqueue -p returns

-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
99A2517E17      317 Fri Jan 16 16:45:09  bo...@rpg.in
                           (virtual_mailbox_maps: lookup a...@cpl.in:
Success)
                                         a...@cpl.in

May I request you to kindly help me in fixing the issue? I shall provide any
other information that you feel is needed.

With regards,


Goutam Baul


Reply via email to