Auto responder problem

Djunity

Verified User
Joined
Mar 9, 2008
Messages
243
Location
Holland
Hi All,

One of out customers reported the following issue to us.

The have autoresponders on there e-mail accounts, sended a message to a customer of them and the recieving e-mail address had an vacation message that got sended back to our customer so the or mail server sended a auto responder and recieved the vacation message again this whent in to a loop and resulted in 4000+ messages

here is one of the mails full header:
Return-path: <[email protected]>
Envelope-to: [email protected]
Delivery-date: Sat, 21 Jul 2012 04:50:20 +0200
Received: from mail by server2.123hostingservice.nl with spam-scanned (Exim 4.76)
(envelope-from <[email protected]>)
id 1SsPlm-0004B8-PF
for [email protected]; Sat, 21 Jul 2012 04:50:20 +0200
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
server2.123hostingservice.nl
X-Spam-Level:
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HTML_MESSAGE,
T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
Received: from exch-fr2.nhtv.nl ([194.171.178.56] helo=mymail.nhtv.nl)
by server2.123hostingservice.nl with esmtp (Exim 4.76)
(envelope-from <[email protected]>)
id 1SsPlm-0004Ao-L5
for [email protected]; Sat, 21 Jul 2012 04:50:14 +0200
Received: from EXCH-FR2.dom1.nhtv.nl ([::1]) by Exch-Fr2.dom1.nhtv.nl ([::1])
with Microsoft SMTP Server id 14.01.0355.002; Sat, 21 Jul 2012 04:49:50 +0200
From: "Hoek, Janneke van" <[email protected]>
To: "[email protected]" <[email protected]>
Subject: Summer break
Thread-Topic: Summer break
Thread-Index: AQHNZut/QM5DF4dtvkeLZkNLQjnTjg==
Date: Sat, 21 Jul 2012 02:49:50 +0000
Message-ID: <[email protected]>
X-MS-Has-Attach: yes
X-Auto-Response-Suppress: All
X-MS-Exchange-Inbox-Rules-Loop: [email protected]
X-MS-TNEF-Correlator:
Content-Type: multipart/mixed;
boundary="_004_c2c96641d4fa44818229d15f9a1daeb4EXCHFR2dom1nhtvnl_"
MIME-Version: 1.0
X-Antivirus-Scanner: Seems clean. You should still use an Antivirus Scanner

We run lates exim 4.76 and spamblocker 4, is this an issue on our mail server or on the reciever side ?

If it is on or side what could be wrong and how to fix ?

Kind regards,
 
If I recall correctly, DirectAdmin vacation messages don't get sent each time, but only once per period (day?). Can anyone verify that? I don't have time to look right now.

Jeff
 
Hi Jeff,

Its not the vacation message on our box but or box is sending auto reply and another box is responding with vacation message and then or box with auto respond again etc etc.
 
Then the problem is on the receiving server not the directadmin server. The directadmin box is doing exactly what it is supposed to do.
 
I suppose that all vacation message senders and autoresponders should send only once per day; this would break the loop.

Jeff
 
I don't recall, and I'm too busy to look right now. But you can, if you have the time.

Jeff
 
Correct me if im wrong but i dont see it in the configuration of exim.conf

uservacation:
# uservacation reply to all except errors, bounces, lists
driver = accept
condition = ${lookup{$local_part} lsearch {/etc/virtual/${domain}/vacation.conf}{yes}{no}}
require_files = /etc/virtual/${domain}/reply/${local_part}.msg
# do not reply to errors and bounces or lists
senders = " ! ^.*-request@.*:\
! ^owner-.*@.*:\
! ^postmaster@.*:\
! ^listmaster@.*:\
! ^mailer-daemon@.*\
! ^root@.*"
transport = uservacation
unseen

userautoreply:
driver = accept
condition = ${lookup{$local_part} lsearch {/etc/virtual/${domain}/autoresponder.conf}{yes}{no}}
require_files = /etc/virtual/${domain}/reply/${local_part}.msg
# do not reply to errors and bounces or lists
senders = " ! ^.*-request@.*:\
! ^owner-.*@.*:\
! ^postmaster@.*:\
! ^listmaster@.*:\
! ^mailer-daemon@.*\
! ^root@.*"
transport = userautoreply
unseen

i believe it should some how check /etc/virtual/$domain/reply/$localpart.log to see if it is sended or not
 
Hello,

Use exim's "once" feature.
Check:
http://files1.directadmin.com/services/exim.conf

Eg:
Code:
uservacation:
  driver = autoreply
  file = /etc/virtual/${domain}/reply/${local_part}.msg
  from = "${local_part}@${domain}"
  log = /etc/virtual/${domain}/reply/${local_part}.log
  no_return_message
  subject = "${if def:h_Subject: {Autoreply: ${quote:${escape:$h_Subject:}}} {I am on vacation}}"
  text = "\
	------                                                           ------\n\n\
	This message was automatically generated by email software\n\
	The delivery of your message has not been affected.\n\n\
	------                                                           ------\n\n"
  to = "${sender_address}"
  user = mail
  [b]#once re-added May 16, 2008:
  once = /etc/virtual/${domain}/reply/${local_part}.once
  once_file_size = 100K
  once_repeat = 2d[/b]

userautoreply:
  driver = autoreply
  bcc = ${lookup{${local_part}} lsearch {/etc/virtual/${domain}/autoresponder.conf}{$value}}
  file = /etc/virtual/${domain}/reply/${local_part}.msg
  from = "${local_part}@${domain}"
  log = /etc/virtual/${domain}/reply/${local_part}.log
  no_return_message
  subject = "${if def:h_Subject: {Autoreply: ${quote:${escape:$h_Subject:}}} {Autoreply Message}}"
  to = "${sender_address}"
  user = mail
  [b]#once re-added May 16, 2008:
  once = /etc/virtual/${domain}/reply/${local_part}.once
  once_file_size = 100K
  once_repeat = 2d[/b]
 
SpamBlocker 4.2.2 has been released with several changes:

1) User vacation and user autoreply code have both been enhanced to only send the automatic reply once every 2 days.

2) The PayPal check to block emails which say they're from PayPal but aren't sent by a server in the paypal.com domain has been commented out because it will break forwarding and because all email from PayPal doesn't come from the PayPal domain.

3) Localhost and 127.0.0.1 have been removed from relay_domains and relay_hosts to block unauthentcated smtp email relaying from the server.

Jeff
 
Back
Top