on 28/2/02 2:19 pm, Christoph Puppe at [EMAIL PROTECTED] wrote:

> Salve all,
> 
> I'm looking for a way to generate new virtual users, when a mail to a
> nonexistent one arrives.
> 
> I've thought about global filters, which are very expensive, so they
> aren't the way to go. If there is another way, that is.
> 
> Tweaking postmaster to a script that takes the mails, checks if it is a
> user unknown and then generates the maildir and sets up the user was an
> idea as well.
> 
> Any good ideas to do this out there?

This seems like a bad idea (I could spam your server and create 1000 new
accounts just for the hell of it). How about scaling it down a bit and
having such mail delivered to a single nominated account with a custom
filter installed. When mail arrives for an address that has not been seen
before then create a new sub-folder in the maildir and deliver to that.

I suppose you could always add a cron job which searched that user's maildir
for such folders and created the new accounts. For that matter this approach
would not require the sub-folders - reformail could easily extract the
destination email address from any messages it found in the nominated
maildir.

--
Tim Hosking
Trans corpus meum mortuum. - Over my dead body.


_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to