Remo wrote on 3/27/22 11:51 AM:
> I kind of like the new option about iCloud hide my email how could we do it 
> with qmail 
I don't know how you'd produce the precise features of "hide my email",
but it's pretty easy to set up a disposable email address system (like
the old Sneakemail) with qmail. I have a domain that I use for this, so
when I need a new address I just use an address in the format:

   myprefix-some...@mydomain.com

On my old system, I had a .qmail-default file that piped any mail for
that domain through a Perl script that I wrote. The Perl script was
based on a library called MailAudit, which provided various mail
processing tools. The script was a single file, but it let me do things
like route addresses with different prefixes to different users, or
compare the 'sometag' tag against instructions in the database that said
how to process the message: accept it, delete it, mark it as spam, or
accept it if the sender matched a particular pattern, delete it or flag
it otherwise.

MailAudit seems to be unmaintained now, so for my new server I went with
a simpler approach. qmail lets you create .qmail files of the form:

        .qmail-myprefix-default

which will handle mail addressed to:

        myprefix-myaddre...@mydomain.com
        myprefix-myaddre...@mydomain.com

etc.

In my case, I pipe the incoming mail through maildrop, but the maildrop
rules I have currently don't do much more than routing and logging. When
I get more time, I'll write tools to restore some of the conditional
logic that I had in the previous system.

You don't need maildrop, though: just assigning a prefix to each user
who needs to be able to create throwaways and then setting up
appropriate .qmail-[someprefix]-default files for each one would
probably be sufficient.

Note that '.qmail-myprefix-default' can be overridden. So if you had
started using 'myprefix-myb...@mydomain.com', and a spammer got hold of
that address, you'd just add a .qmail file named:

        .qmail-myprefix-mybank

and route everything sent to that to Junk (and, of course, you'd update
your profile with your bank so that they would send messages to
'myprefix-mybank2...@mydomain.com' instead).

Angus




---------------------------------------------------------------------
To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com
For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com

Reply via email to