Re: wildcards alias?
Sam Varshavchik <[email protected]> Tue, 15 Jul 2025 22:19:50 -0400
| Newsgroups | gmane.mail.imap.courier.general |
|---|---|
| Message-ID | <[email protected]> |
JLX2 writes:
> so I was thinking of something like
>
> somestring....key...@mydomain : user
> ....user...key....eos@mydomain : user
> user...key[x-z0-9]{min,max}@mydomain : user
>
> in /etc alias configuration with . matching a single char, and [x-z0-9]
> {min,max} matching anychar min times and max times like in posix regex
>
> .courier file don't seems to fit my need because it rely on finding the user
> by selecting the start of the email
>
> I don't want that login@mydomain be usable (to prevent user spread login
> info on some web site)
>
> is it possible?
>
> is it possible to achieve using some custom filter program? (eg writing my
> custom "maildrop"), ie what happens to an email if the local user is not
> found? I don't want also to rely on "virtual" global user, it's too privacy
> problematic (one attacker obtaining access have access to all email of all
> users....), I prefer to manage my user permission (ssh, vpn....)
>
> thanks and regards
Be prepared to do some script writing on your own: writing your own
authentication module, which will take an arbitrary local address, and map
it to a home directory, userid, and groupid. So, take whatever algorithm you
want to use and implement it.
https://www.courier-mta.org/authlib/README_authlib.html#authpipe
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRupkKLJP96aW75pIOKYPgoojZS4gUCaHcMRgAKCRCKYPgoojZS 4kquAPwP2eBTuy/MiMlvCQM6cwh0BzP9z019I/mfNMjBn51FSwD5AVmM9leK3Ueh oMPKA7s5/z9vuzs2g2NMKZ0RoXMb3A4= =qjW/ -----END PGP SIGNATURE-----