Wednesday, July 22, 2015

How to setup an autoresponder in Postfix and Sendmail for multiple mailboxes

Ever wondered how to turn on out of office auto replies or support messages in Sendmail or Postfix for multiple mailboxes? It's easier than you think. Use MSH Autoresponder milter application with easy to use GUI.

MSH Autoresponder for Postfix and Sendmail

I will skip the part with the program installation and configuration and just go to the essential part of creating rules. You can find documentation about installation here.

When an app is ready and running create a rule. Select Autoresponder rules node, click button Add New button. For this blog post we will create a sample out of office auto reply. Fill Subject like "Out of Office: $SUBJECT". Users which will send emails to our mail server will receive auto replies with subject: Out of Office: . Original subject is the subject from a message which was send to our mail server. $SUBJECT is a dynamic field and will be replaced each time when an auto reply is sent.

In the Body text field put your auto reply body. We will inform senders that we will return on 10 October. By default an auto reply message is in text format, so you cannot use rich text formatting, like: bold or italic. The application doesn't support html format, but it's possible to send an auto replies in html format. See this article how to achieve that.

Go to Conditions page and click Add button, select Message Recipient menu. Enter an email address, like john.doe@company.com and choose to search in TO and CC field option. Click OK button to apply.

On Time Range page select Enable Time Range option and choose date from and date to. This is a date range in which we will be out of office. Deselect All day option if needed.

Last step is to define rule name, you could leave the default value if you don't want to change it. 

Click button OK, then save settings button. 

From now until 10 October, when someone will send an email to john.doe@comapny.com mailbox an auto reply will be triggered and send back to sender of the original message.


To test the application and find more info follow this link.