Re: [Postfixadmin-devel] Integration with MLM?
Brought to you by:
christian_boltz,
gingerdog
From: Christian B. <pos...@cb...> - 2011-01-12 00:35:22
|
Hello, Am Dienstag, 11. Januar 2011 schrieb Aaron: > On 1/11/2011 4:55 AM, Christian Boltz wrote: > > Am Dienstag, 11. Januar 2011 schrieb Aaron: > >> Here's a dumb question, what about integrating some kind of post > >> hook when using option #1? ie, some kind of pluggable script > >> spot where you could pass something like > >> > >> external-command.sh [add|remove|modify] aliasname ? > > > > I don't see a real need for script hooks when aliases are created, > > modified or deleted. If you have a usecase, tell me ;-) > > Other than handling potential MLM integration? I can't think of > another use currently, no. I'm afraid I don't get your point (yet) - how would you handle this? Creating a mailinglist is much more than just adding an alias... > There may be additional cases where > you'd pipe an alias out to an external command for handling, but I > haven't run across them yet. You don't even *want* to control aliases with a pipe as target in the web interface - the security risk is too big. (What about piping a mail to "| rm -rf /"? ;-) (and it's forbidden for databases in postfix anyways - pipe targets have to be in text-based maps.) [post-* scripts] > That's kind of what I was thinking would be right for aliases. > > Creating the aliases in postfixadmin first, then running whatever > additional commands manually isn't an impossible task, but I have to > admit being able to do everything in one place has it's benefits. I > can see how it would add complexity, you'd certainly need to add > something like "enable external script" as an unselected checkbox to > avoid running the external hook on every alias transaction. > > Would it be difficult to extend the existing script options to > include a set for aliases ? (and make it selectable on the alias > page?) Difficult is relative ;-) but I don't see how adding an alias can be used to create a mailinglist - it misses some important information like the list owner's mail address, admin password for the mailinglist etc. OTOH, creating a mailinglist is a totally different task and unrelated to creating an alias (creating an alias is only a very small part of creating a mailinglist), so I'd prefer to have a separate page/script to do that. At the risk of disappointing you: I have several things on my TODO list that are more important, therefore I won't have time to work on this. However, if you come up with a good solution, we'll probably accept your patch ;-) (And, BTW, which MLM are you talking about?) Regards, Christian Boltz -- Trojanisches Pferd Zum Thema "Trojaner" muss doch vielleicht mal jemand sagen, dass ein Trojanisches Pferd kein Trojaner ist. Im Gegenteil. Sein Bauch ist nämlich mit Griechen gefüllt, die dann die Stadttore öffnen. Wäre das trojanische Pferd ein Trojaner, wäre es völlig ungefährlich. [Werner Hintze] |