Vacation message with exim

I don't really understand why people love so mush auto-responders, especially business people. These messages add a considerable amount of useless noise in our mailboxes. Even though I dislike those emails, it doesn't prevent companies or friends I am hosting on my servers to request them.

One of those companies is closing during the holidays. They wanted to have a vacation message sent whenever someone tried to contact them during this period.

They wanted to have a single vacation message for the entire company instead of asking each employee to set his or her own vacation message for each account.

Here is the solution I have used to do this.

Router

virtual_vacation:
  domains = +virt_domains
  driver = accept
  require_files = /space/hosting/${domain}/vacation.msg
  transport = virtual_vacation_trans
  condition =  ${if or { \
                {match {$h_precedence:} {(?i)junk|bulk|list}} \
                {eq {$sender_address} {}} \
                } {no} {yes}}
  # do not reply to errors or bounces or lists
  senders = ! ^.*-request@.*: ! ^bounce-.*@.*: ! ^.*-bounce@.*: ! ^owner-.*@.*:\
            ! ^postmaster@.*: ! ^webmaster@.*: ! ^listmaster@.*: ! ^mailer-daemon@.*:\
            ! ^root@.*: ! ^abuse@.*
  unseen
  no_verify

virtual_vacation:
domains = +virt_domains
driver = accept
require_files = /space/hosting/${domain}/vacation.msg
transport = virtual_vacation_trans
condition = ${if or { \
{match {$h_precedence:} {(?i)junk|bulk|list}} \
{eq {$sender_address} {}} \
} {no} {yes}}
# do not reply to errors or bounces or lists
senders = ! ^.*-request@.*: ! ^bounce-.*@.*: ! ^.*-bounce@.*: ! ^owner-.*@.*:\
! ^postmaster@.*: ! ^webmaster@.*: ! ^listmaster@.*: ! ^mailer-daemon@.*:\
! ^root@.*: ! ^abuse@.*
unseen
no_verify


The router checks if the file message.msg exists in the home for that domain.
The router also tries to determine if the mail is coming from a mailing list or if it was auto-generatd. We don't want to send the vacation message to these addresses.

Transport

virtual_vacation_trans:
  driver = autoreply
  to = ${sender_address}
  from = "do_not_reply@${domain}"
  file = /space/hosting/${domain}/vacation.msg
  once = /var/tmp/vacation_${domain}.db
  once_repeat = 7d
  subject = "Re: Away for holidays / En vacances - ${local_part}@${domain}"

virtual_vacation_trans:
driver = autoreply
to = ${sender_address}
from = "do_not_reply@${domain}"
file = /space/hosting/${domain}/vacation.msg
once = /var/tmp/vacation_${domain}.db
once_repeat = 7d
subject = "Re: Away for holidays / En vacances - ${local_part}@${domain}"


The transport is pretty straightforward. It sets the to, from, and subject as well as the content of the mail extracted from the file vacation.msg. The email addresses of the senders are kept into the file vacation${domain}.db, in order to send the vacation message only once a week. Determined by once_repeat = 7d.
 

Comments

Posted by: sohbet Nov 21, 2009 @ 06:38

in fact,to say nothing more on this subject, but still would like to thank for sharing respects, hmmz. Dear Admin, I thank you for this informative article. And I thank you for this I follow your vendors. It’s verry good. I wish you continued success whould you like.

Posted by: sohbet Nov 21, 2009 @ 09:14

Actually I dont think there are many barriers to using fireox. I dont have any complaints so far its much faster than internet explorer.

Posted by: chat Nov 23, 2009 @ 02:53

Actually I dont think there are many barriers to using fireox. I dont have any complaints so far its much faster than internet explorer.

Posted by: sohbet Nov 23, 2009 @ 03:00

thanks you admins eyw canım :P

Posted by: cheapest voip calls Nov 24, 2009 @ 20:41

Excellent article. It was helpful and informative. hope to see more greats posts like this one.

Posted by: free games online Nov 27, 2009 @ 00:19

Thanks, great post.

Posted by: online games Nov 27, 2009 @ 23:36

Actually I dont think there are many barriers to using fireox. I dont have any complaints so far its much faster than internet explorer.

Posted by: life insurance quotes Nov 29, 2009 @ 22:34

Thanks for sharing

Posted by: gmt master ii Dec 07, 2009 @ 23:15

Nice post! High quality gmt master ii,welcome to choose! Thanks!

Posted by: uggs online Dec 10, 2009 @ 23:29

thanks

Posted by: sell ugg ugg boots online ugg boots Dec 16, 2009 @ 17:59

ugg boots is very good!

Posted by: Rc helicopters Dec 16, 2009 @ 20:10

do you like Rc helicopters?

Posted by: ed hardy Dec 20, 2009 @ 22:49

Nothing is able to fulfill, as long as confidence. Everything is difficult at the beginning, is now at the beginning of the show that you have succeeded in half.

Posted by: film izle Dec 23, 2009 @ 17:08

thanks great

Posted by: flower to usa Dec 27, 2009 @ 03:18

this is great

Posted by: replica rolex Dec 28, 2009 @ 00:36

We are Rolex watch experts selling only the finest, top level

condition, and preowned men's and ladies' Rolex watches, used Rolex

watches, unused Rolex watches and new Rolex watches on the market. Our

top priority is to provide every customer with the highest quality

Rolex watch at the lowest price available. Browse our wide selection

of Rolexes for sale.

Posted by: replica watches Dec 29, 2009 @ 21:51

Our watches are all beautifully decorated stainless steel or 18k gold designer replica watches,perfectly fitted to you wirst ,once you wear our watch you will never look back ,Now I will show you some thing wonderful: Rolex Replica Watches, Corum Replica Watches, Dewitt Replica Watches, Rolex Replica Watches, Ferrari Replica Watches…………

Posted by: fiberglass entry doors Jan 01, 2010 @ 20:34

there's some obsession on the part of business people to appear that they are always on the ball, even when they're on vacation they can respond to your messages with robotic efficiency.

Posted by: replica watches Jan 03, 2010 @ 21:22

We are Rolex watch experts selling only the finest, top level condition, and preowned men's and ladies' Rolex watches, used Rolex watches, unused Rolex watches and new Rolex watches on the market. Our top priority is to provide every customer with the highest quality Rolex watch at the lowest price available. Browse our wide selection of Rolexes for sale.

Posted by: Essay Jan 12, 2010 @ 11:27

Are there really many barriers to using fireox?

Posted by: china wholesale Jan 13, 2010 @ 23:52

The Internet. which was unfamiliar to human [HTML_REMOVED]china wholesale[HTML_REMOVED] beings is totally accepted by most of people. [HTML_REMOVED]wholesale china[HTML_REMOVED] Especially these days .it has been developing [HTML_REMOVED]dvd wholesale[HTML_REMOVED] faster and faster. people do not [HTML_REMOVED]dvd[HTML_REMOVED] have much time to do everything by themselves. So making full use of the Internet is a good way to color one'slife.

Posted by: film izle Jan 17, 2010 @ 04:52

Thank you for sharing your friends. Hope to see you another day.

Posted by: divx film izle Jan 17, 2010 @ 04:54

Thanks for your good website and for sharing your experiences.

Posted by: links of london Jan 19, 2010 @ 00:07

which was unfamiliar to human [HTML_REMOVED]china wholesale[HTML_REMOVED] beings is totally accepted by most of people

Posted by: replica watches paypal Jan 21, 2010 @ 19:19

Nice airtical, i would like to tell all of my friends about it. By the way, i would like to introduce everyone of you a very nice website, it offers cheap [HTML_REMOVED][HTML_REMOVED]replica rolex paypal[HTML_REMOVED][HTML_REMOVED] for men and women. Such as [HTML_REMOVED][HTML_REMOVED]rolex replica[HTML_REMOVED][HTML_REMOVED], [HTML_REMOVED][HTML_REMOVED]rolex replica paypal[HTML_REMOVED][HTML_REMOVED], [HTML_REMOVED][HTML_REMOVED]replica rolex paypal[HTML_REMOVED][HTML_REMOVED], [HTML_REMOVED][HTML_REMOVED]fake watches paypal [HTML_REMOVED][HTML_REMOVED].You can find almost all the replica Rolex series there. They have Latest style and classic style. Though their price are low,don’t worry about it’s quality.Every detail of [HTML_REMOVED][HTML_REMOVED]replica rolex[HTML_REMOVED][HTML_REMOVED] shows its original marvelous designs and the best imitation technology. I have bought from them for so many times, and very satisfied with the their goods and service. Come on, choose one you love it.

Posted by: Nike Air Max Mar 04, 2010 @ 00:17

So beautiful sharing!Thank you very much.

Posted by: tag heuer watch Mar 04, 2010 @ 23:32

can show a man not only his wealthy but also his high taste.tag heuer watch As the society developed, many people are pay more attention to one's wearing than before, especially a watch. tag heuer watch If you are wearing a famous brand watch, people will look up you, also will love to do business with you. You will be a successful man with a such luxury fashion watch.

Leave a message

(Required)
(Required and not displayed)
(Optional)
obfuscated letters Enter the text shown in the image