GreenArrow Documentation

Per-User VirtualMTAs for IEM

Overview

The patch that’s described on this page enables you to set a default VirtualMTA on a per-IEM-user basis. This value is applied to campaigns and autoresponders that are sent for mailing lists that do not have a VirtualMTA (aka Mail Route) specified. If a mailing list does have a VirtualMTA specified in its settings, that setting takes precedence over the per-user VirtualMTA setting.

Installation Instructions

  1. Install the IEM GreenArrow Patch if you haven’t already.
  2. Add the smtpmailroute column to the email_users table.
    1. For MySQL, run:

      ALTER TABLE email_users ADD COLUMN smtpmailroute varchar(100) DEFAULT NULL;
      

    2. For PostgreSQL, run:

      ALTER TABLE email_users ADD COLUMN smtpmailroute varchar(100) SET DEFAULT NULL;
      

  3. Download the IEM Per-User VirtualMTA Patch to IEM’s root directory:

    wget https://docs.drh.net/downloads/iem-greenarrow-per-user-vmta-1.01.patch
    

  4. Verify that the patch will apply cleanly:

    patch -p1 --dry-run < iem-greenarrow-per-user-vmta-1.01.patch
    

  5. Apply the patch:

    patch -p1 < iem-greenarrow-per-user-vmta-1.01.patch
    

Reversing the Patch

You can reverse the patch using the following command:

patch -R -p1 < iem-greenarrow-per-user-vmta-1.01.patch

If you need to reverse the patch, and using the patch command, as shown above isn’t an option, the files that are modified by it are listed below:

admin/com/install/schema.mysql.php 
admin/com/install/schema.pgsql.php 
admin/com/language/default/language.php 
admin/com/templates/user_display_own.tpl 
admin/com/templates/user_edit_own.tpl 
admin/com/templates/user_form.tpl 
admin/functions/api/lists.php 
admin/functions/api/user.php 
admin/functions/manageaccount.php 
admin/functions/sendstudio_functions.php 
admin/functions/users.php