On Mon, Aug 05, 2002 at 03:56:44PM +0300, Tapani Tarvainen wrote:
on second thought I can do it with virtusertable so that "list@application.my.domain" is directed to a procmail recipe that can then pipe it as such to flist, without any need for '+' in the list name.
I meant mailertable, of course. In case anyone is interested (the technique is useful whenever you wish to allow someone to create and remove mailinglists without letting them mess with sendmail alias files &c), here's a summary of how it's done with SmartList & sendmail: (1) Install a new instance of SmartList with suitable permissions using desired subdomain (e.g., "sub.my.domain" - you also need MX record pointing that to your mailserver). You might wish to edit createlist and removelist so they won't say anything about editing aliases, as it's not necessary here. (2) Make sure sendmail has mailertable feature and procmail mailer defined (not just using it as local mailer), i.e., check there's MAILER(`procmail') and FEATURE(`mailertable') in the .mc file. (3) Create mailertable with entry like this: sub.my.domain procmail:/whatever/sub.rc (4) Create /whatever/sub.rc script looking something like this: to=$2 :0 | /something/.bin/flist "`echo $to | cut -d@ -f1`" That's it! Now lists can be created in the subdomain without any need to mess with sendmail aliases or the like, and without confusing them with similar addresses in the main domain. Oh yeah, to be standard-compliant you should also define postmaster@sub.my.domain somehow (e.g., in virtusertable or add it to the procmail script above). That said, I'm still curious about the planned support for special characters in list names createlist alludes to... -- Tapani Tarvainen