Automatically Create an abuse@domain.com Email Address Using Event Hooks



#!/bin/bash
#
# INSTALLATION:
#
# First, ensure the InterWorx CLI is installed via 'yum install interworx-cli'
# 
# Install this script at /usr/local/bin/email_abuse.sh:

if [[ "$iw_master_domain" == "" ]]; then
  exit 1
fi

export IWORX_UNIXUSER=root

~iworx/bin/siteworx.pex -u --login_domain $iw_master_domain -n -c EmailBox -a add --username abuse --password $iw_password --confirm_password $iw_password

-
# Enable the Event Hooks plugin in NodeWorx.
# Add the following line to your InterWorx Event Hook Configuration:
# 
   Ctrl_Nodeworx_Siteworx add /usr/local/bin/email_abuse.sh
# 
# Ensure that both this file *and* the Event Hook config are both readable
# and executable by the iworx user:
# 
#     chmod 0770 /usr/local/bin/email_abuse.sh
#     chown iworx /usr/local/bin/email_abuse.sh
# 




For more information on installing Event Hooks, go here: http://forums.interworx.com/threads/8043-Event-Hooks-Setup

Hi Jenna

Many thanks, looks good but please confirm this does not replace the email address auto setup defined from nodeworx.

Also, if it does not, looking at the code, it should be easy to change to auto setup an alias email address for new siteworx account, which is the missing feature a few users wanted.

Many thanks

John

Plugins / Create Email Accounts for New Domains Automatically create a list of email accounts for new domains