Re: create aliases with the same name for different local domains.

Erwin Hoffmann <[email protected]> Thu, 1 Nov 2018 17:16:42 +0100
Newsgroups gmane.mail.qmail.general
Message-ID <[email protected]>
Hi Rejaine,

you should consider the fastforward package for this task:

man setforward:

EXTERNAL MAILING LISTS
       If a command begins with a dot or slash, setforward takes the entire
       command as the name of a binary mailing list file created by
       setmaillist:

        [email protected]: /etc/lists/domain1.bin; (in your case)


Which means you need to populate the list of recipients per domain individually.

Best regards.
--eh.


> Am 01.11.2018 um 16:47 schrieb Rejaine Silveira Monteiro <[email protected]>:
> 
> 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.

Dr. Erwin Hoffmann | FEHCom | http://www.fehcom.de | PGP Key-Id 7E4034BE
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE91BSzimpKm1LIXVDg/z5IO4Az2UFAlvbJuoACgkQg/z5IO4A
z2XivA//Y/cOpmzuDam4viCVzWT6DTMPdFYaWjICwpWZD1cM6+l+uUZJ1QbYQ1Qd
d/whlkj+n4s6Mevw2MXOcnQFQgNeZQGG20ij6kdAvfeB7kWQM729GYRyNhLDfhE3
pP+2WIFMNB0LnCjZoyp1zf2ApdEzUDw6G/VeSHHKHfKDgqi+7RpnvrFNp0lg505/
VYfXQopo2POJTEgj2VMJHjupn5lbYOcJNgpB+ziiqiBMT6/1E2hRWQT5X1aesa4l
VxmKXPoRHY/fmiKjnAzVk4IzAS2kfdiTlDZu/QpmQbVEYY+UttYpQRwlC7niYvKa
oSP7yitYTOYmcAhqWQ3xffI3EwupMzA+Rm4JQDTsDUQK4++qxz3UZYKsE67GDGvo
ADSf5Mt4Sw2mh4DMLsdqvqSJJwlNojnby3J9oNdOO4wi+vhFbqVl5MBpUFLLCzD9
LYtR9Fkfw1H1xiN11r5epXrD/cy8aCijMCyAML5KphjSPw8MvZoQcfrp7P0N85gO
dy1InibrolnwPgS9Sk9UJsgVZxLQBaqpeGOff/zUu6HU5o+Ge8i7eYbwyYnFsH5+
DU/32Rln1CDr5VPqrMmXA647w2oCbXQvnZ3z5Dx7/BmHmsVfb1fgmecJVNFAN0DJ
sUZGhTY8VzqeqH1NkfUX7PiF9q3akSqK0u1XDT2qxy5CAtbEMrg=
=IEhg
-----END PGP SIGNATURE-----