Mailtraq - the Complete Email Server
   

Enstar for Mailtraq email server sales & support
Making world-class Internet technology affordable  

Search for:

Advanced search

KB12041301 Change message Reply-to Address

 

How to change or set the Reply-to Address on all outbound messages
 
 
Problem
 
- Your Mailtraq runs several domains, say a group of related companies.
 
- Mail comes in from users of those companies to Mailtraq and is sent onwards.
 
- The "Reply-To" field needs to be set according to rules based on the individual account name and the company name so they are consistent.
 
Solution
 
This solution is based on using the Mail Group feature of the main Console. 
 
Have the appropriate name set in the Mailtraq account and make the primary (blue) mailbox of that account a member of a group based on the company domain name.  
 
The Group's Description-field would be the company domain name.  
 
Then you need a script that finds all mail sent from a local domain and sets the Reply-To: field to
"(MailtraqAccountName) - (MailtraqGroupName) <MailtraqAccountAddress>".
 
Note that the domain name is taken from the Mail Group Name and the company name from the Mail Group Description.  The sender's full name is taken from the 'Name/Description of Mailbox' for the matching Mailslot (not the 'Mailbox Name' = username).
 
Once setup the administrator only needs to change the details in the user interface in the main Console.
 
 
Method
 
Copy the necessary script.  Open
 
Note:
Open the script page and copy and paste the contents into a Notepad document.
Save the file as: setreplyto.mtq
 
Copy setreplyto.mtq to the "scripts" directory. 
Normally located at C:\Program Files\Mailtraq\database\scripts
 
In the Console go to: Options | Scripts & Templates
Select the Scripts-tab. You should see the setreplyto script there
 
Go the the Automated Scripting-tab
Use the [Create] button to add an entry in "Automated Scripting"
Set the Description to be 'Change Reply to'
Select setreplyto from the drop down list
Set Script Trigger to 'Message Trigger'.
 
Select the Message Trigger-tab
Set to 'All messages'
[x] Script will modify the message.
 
Then click the [OK] button back to the Console.
 
And test.
 
 
Mail Group Properties Setting
 
Mailboxes not Users
Note that you are working in the Mailboxes/Mailslots part of the Tree - not the Users section. 
 
 

Keywords: kb scripting
Mailtraq Highlights...
 SMTP Server     Mailtraq SMTP email server video IMAP Server     Mailtraq IMAP email Server video
 POP3 Server     Mailtraq POP3 email server video Proxy Server     Mailtraq proxy email server video
 Webmail Server     Mailtraq webmail email server video Mailing-list Server     Mailing list email server video
 Groupware Services     Mailtraq groupware email services video Spam and Virus control     Spam and virus control email server video

 

   Copyright © 2003 - 2011 Enstar Ltd, Enstar LLC & Fastraq Ltd. All rights reserved. Privacy policy.
   Mailtraq® is a registered trademark of Fastraq Limited.