Reload postfix configuration when a transport is changed.
| | |
| | | //$app->plugins->registerEvent('mail_domain_update',$this->plugin_name,'domain_update'); |
| | | $app->plugins->registerEvent('mail_domain_delete',$this->plugin_name,'domain_delete'); |
| | | |
| | | //* Mail transports |
| | | $app->plugins->registerEvent('mail_transport_insert',$this->plugin_name,'transport_update'); |
| | | $app->plugins->registerEvent('mail_transport_update',$this->plugin_name,'transport_update'); |
| | | $app->plugins->registerEvent('mail_transport_delete',$this->plugin_name,'transport_update'); |
| | | |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | function transport_update($event_name,$data) { |
| | | global $app, $conf; |
| | | |
| | | exec('/etc/init.d/postfix reload &> /dev/null'); |
| | | $app->log('Postfix config reloaded ',LOGLEVEL_DEBUG); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |