Quantcast
Channel: Forums | InterWorx CP
Viewing all articles
Browse latest Browse all 900

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

$
0
0
Code:


#!/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/...nt-Hooks-Setup

Viewing all articles
Browse latest Browse all 900

Trending Articles