Secureit-net International Pte Ltd
27 Foch Road #02-09
Hoa Nam Building
Singapore 209264
Tel: (65) 3151 4913

Setting Up Autorespond Template

Setting The Autoreply File As A Template


An important feature of the configuration file is the ability to set the autoreply file as a template. Within the template, fields (conditions stated with a ~) can be replaced with the appropriate information to customize the replies.

You will need to add a 1 after the filename for Mercury to know that the file is a template file. Thus a entry of 0, 0000, 0900, AREPLY.PM, 1 will cause Mercury to reply the field conditions in AREPLY.FM with appropriate info.

Some of the substitutes that I have test on Mercury 3.32 are as follows :-


~A = Recipient's email address (local recipient)
~B = The entire original message body (no headers)
~C = NOT IN USE
~D = The date, in proper RFC822 format
~G = The first x lines of the message (x being the option that is set in Mercury Core Module)
~T = Sender's mail address
~M = The entire original message
~S = The subject field from the original message
~N = The current system's Internet domain name


An example of AREPLY.PM file (the filename need not neccessarily be AREPLY.PM)


----------Beginning of example----------

From: Edward <edward@~n>
To: ~T
Date: ~D
Subject: ~S

Thanks for your message with the subject: "~S"

The message has been delivered to ~A

For any urgent matter, kindly contact our office no. (65) 31514913 during office hour from 0900 to 1800 hr GMT+8 or mobile no. (65) 86867628 after office hours.

Yours sincerely,

----------End of example----------


There is also an autoresponder option which is set via alias under Mercury's configuration tab. It is basically for sending the content of a text file or a template file to the sender's email address and not processed any further from there.

This is set via Configuration tab, Alias..., Add new alias.

When prompted for Alias entry, just type the email address or user name for Alias: and for Real Address, just enter TFILE: followed by the path to a template file or FILE: follow by the path to a text file. Only difference is ~* fields in template file are substituted by the relevant info.


Guide On Setting Up Mercury Mail Server
  • Prior To Setting Up Mercury
  • The Installation Process
  • Additional Configuration After Installation Of Mercury/32
  • Mercury SMTP Server Options
  • Micellaneous Compliance Control
  • DOS Mode Virus Scanning
  • Testing And Scheduling Of Weekly Definition Updates
  • Setting Up Automatic Replies
  • Setting The Autoreply File As A Template
  • What's New in Mercury/32 v4.01a
  • Version 4's SMTP Filtering