HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   triggered mail action (http://www.howtoforge.com/forums/showthread.php?t=35229)

bartu 20th May 2009 11:45

triggered mail action
 
Hi there,

i'm planning using ISPConfig3 with postfix's 'sender_login_maps' feature. I use php script that gets mail aliases information and mail account information from ISPConfig's database. then it writes it to a file that postfix 'postmap' to .db format.
It seems to work well, but since users will change their email aliases and create mailboxes i need to call the script every time aliases or mailbox are changed or deleted. Is there a way to do this in ISPConfig3. Now i use cron for it and that's not a perfect way

--
regards
Bartek

till 20th May 2009 21:46

You can just write a new ispconfig plugin for this that binds itself to the mail_user insert, update and delete events. Take a look at the existing mail plugins to get an idea how the event system works. It is enough to write a new plugin and then set a symlink in the plugins-enabled directoyr to activate it.


All times are GMT +2. The time now is 14:16.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.