create aliases with the same name for different local domains.

Rejaine Silveira Monteiro <[email protected]> Thu, 1 Nov 2018 12:47:43 -0300
Newsgroups gmane.mail.qmail.general
Message-ID <CAMTrDfXKFbCN=QPwYEMsqUKFrVsNnqs1jQ2rpu6majMnByV+sA@mail.gmail.com>
Hi, all

I have a qmail-ldap with several sub-domains, eg:
 [email protected] [email protected], [email protected]

domain1, domain2, and domain2 are in control/locals, and email users of
these domains are stored in LDAP.

I use /var/qmail/alias/.qmail-???  to create groups (distribution lists)
for these domains, but I need to create groups with equal names to receive
email lists for users of these domains, eg:

[email protected]
[email protected]
[email protected]

If you create the /var/qmail/alias/.qmail-it only, it will not know how to
distinguish the domain (it will only deliver to the defaultdomain).

So I tried to create /var/qmal/alias/ these files:

   .qmail-domain1-support
   .qmail-domain2-support
   .qmail-domain3-support

... with theirs respective users..

On virtualdomains, I put:

[email protected]: alias-domain1
[email protected]: alias-domain2
[email protected]: alias-domain3
or
[email protected]: alias-domain1-support
[email protected]: alias-domain2-support
[email protected]: alias-domain3-support

However, it is not working (Sorry, _no_mailbox_here_by_that_name is giving)

So I removed domains 1, 2 and 3 from the control/locals and from then Qmail
is reading the "alias" files. But it still did not work!

What is the most correct way to make these aliases work by keeping the
domains in the control/locals (since all users are local), but also being
able to create the groups in the alias, as the same name but for different
domains?

What am I doing wrong?

-- 
*Esta mensagem pode conter informações confidenciais ou privilegiadas, 
sendo seu sigilo protegido por lei. Se você não for o destinatário ou a 
pessoa autorizada a receber esta mensagem, não pode usar, copiar ou 
divulgar as informações nela contidas ou tomar qualquer ação baseada nessas 
informações. Se você recebeu esta mensagem por engano, por favor avise 
imediatamente ao remetente, respondendo o e-mail e em seguida apague-o. 
Agradecemos sua cooperação.*