Configuring an email auto-responder
iQ.Suite Tips & Tricks for Microsoft Exchange / SMTP
The option of requesting pre-made emails, e.g. in order to obtain a public PGP key, is a useful function that can be configured with iQ.Suite Wall. This is how it’s done:
Step by Step:
- You will need the following iQ.Suite functions in order to create your auto-responder job:
- the action "Run external program"
- the iQ.Suite function that passes variables to a script
- Let us assume that external communication partners need to be able to request a public key by addressing an email with the subject line "pgpkey" to crypt@mydomain.com
- To do this, you will first need to create an iQ.Suite Wall email address filtering job
- The job will respond to all emails addressed to crypt@mydomain.com

- Now select "Run external program" from the available actions

- In the next window, you need to state which program is to be run with which parameters
- In our example, we want to run the command shell, i.e. "C:/windows/system32/cmd.exe"
- The parameter "/c" ensures that the command shell closes automatically once it has run
- "C:/responder/test.bat" launches a script, and [From] [Subject] is used to pass iQ.Suite variables to this script
- You will find a list of possible iQ.Suite variables at iQ.Suite’s online help facility

- Finally, you must specify a user and password under whose context the script can be executed
- You have now configured your iQ.Suite job
- So what happens when you run the script?
- In our example, the job first queries whether a pre-made email with the email subject passed (pgpkey.eml) exists or not. If not, the script is terminated

- If an email of this kind does exist (in our case, a pgpkey.eml), the sender address ([from]) is written to the file receiver.txt as "x-receiver"
- The mail server obtains the SMTP recipient data via the information contained in "x-receiver"
- The file receiver.txt, together with the pgpkey.eml, are now copied to the corresponding pickup directory as mail.eml
- Doing this sends the pre-made email to the requesting address
- When you create a pre-made email, please ensure that it does not contain a message ID. Message IDs are assigned automatically by the mail server whenever emails are sent

- You can use this auto-responder function also to request a test email from test@group-technologies.com (insert "help" in the subject line)