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
- Install the IEM GreenArrow Patch if you haven’t already.
- Add the
smtpmailroute
column to theemail_users
table.-
For MySQL, run:
ALTER TABLE email_users ADD COLUMN smtpmailroute varchar(100) DEFAULT NULL;
-
For PostgreSQL, run:
ALTER TABLE email_users ADD COLUMN smtpmailroute varchar(100) SET DEFAULT NULL;
-
-
Download the IEM Per-User VirtualMTA Patch to IEM’s root directory:
wget https://www.greenarrowemail.com/docs/downloads/iem-greenarrow-per-user-vmta-1.01.patch
-
Verify that the patch will apply cleanly:
patch -p1 --dry-run < iem-greenarrow-per-user-vmta-1.01.patch
-
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