Bekijk Volledige Versie : DirectAdmin : "auto reply" functie
Beste,
Als je in directadmin een "auto reply" instelt, dan krijgt de verzender van dit bericht (en dus de ontvanger van de auto reply) altijd boven het bericht de melding
------ ------
This message was automatically generated by email software
The delivery of your message has not been affected.
------
Hoe kan ik deze weg krijgen?
Ook valt het op dat als je een mail stuurt, je deze enkele tellen deze auto reply krijgt. Stuur je echter 4 mails op een tijdspanne van een paar minuten, dan krijg je deze mail maar één keer. Hoe kan ik instellen dat deze wel degelijk 3x verstuurd word?
Die tekst kun je aanpassen in exim.conf ergens rond lijn 879 bij "uservacation:" sectie.
Gevonden!
## vacation transport
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
#once re-added May 16, 2008:
once = /etc/virtual/${domain}/reply/${local_part}.once
once_file_size = 100K
once_repeat = 2d
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
#once re-added May 16, 2008:
once = /etc/virtual/${domain}/reply/${local_part}.once
once_file_size = 100K
once_repeat = 2d
Die once_repeat = 2d slaat waarschijnlijk op 2dagen.
Enig idee wat de instelling moet zijn voor altijd te sturen? Gewoon leeg laten?
Ook hier het antwoord op gevonden:
http://www.exim.org/exim-html-3.20/doc/html/spec_16.html
once (autoreply)
Type: string, expanded
Default: unset
This option names a file or DBM database in which a record of each recipient is kept when the message is specified by the transport. The string is expanded. If once_file_size is not set, a DBM database is used, and it is allowed to grow as large as nessary. If a potential recipient is already in the database, no message is sent by default. However, if once_repeat specifies a time greater than zero, the message is sent if that much time has elapsed since a message was last sent to this recipient. If once is unset, the message is always sent.
If once_file_size is set greater than zero, it changes the way Exim implements the once option. Instead of using a DBM file to record every recipient it sends to, it uses a regular file, whose size will never get larger than the given value. In the file, it keeps a linear list of recipient addresses and times at which they were sent messages. If the file is full when a new address needs to be added, the oldest address is dropped. If once_repeat is not set, this means that a given recipient may receive multiple messages, but at unpredicatable intervals that depend on the rate of turnover of addresses in the file. If once_repeat is set, it specifies a maximum time between repeats.
dennis0162
18/10/12, 11:50
http://www.exim.org/exim-html-3.20/doc/html/spec_16.html
once (autoreply)
Type: string, expanded
Default: unset
This option names a file or DBM database in which a record of each recipient is kept when the message is specified by the transport. The string is expanded. If once_file_size is not set, a DBM database is used, and it is allowed to grow as large as nessary. If a potential recipient is already in the database, no message is sent by default. However, if once_repeat specifies a time greater than zero, the message is sent if that much time has elapsed since a message was last sent to this recipient. If once is unset, the message is always sent.
If once_file_size is set greater than zero, it changes the way Exim implements the once option. Instead of using a DBM file to record every recipient it sends to, it uses a regular file, whose size will never get larger than the given value. In the file, it keeps a linear list of recipient addresses and times at which they were sent messages. If the file is full when a new address needs to be added, the oldest address is dropped. If once_repeat is not set, this means that a given recipient may receive multiple messages, but at unpredicatable intervals that depend on the rate of turnover of addresses in the file. If once_repeat is set, it specifies a maximum time between repeats.
Hoewel het bericht aankomt, krijg ik nu plots een Mail Delivery failed : returning message to sender
xxx@xxx.be = e-mail bestemming
yyy@yyy.be= e-mail afzender
This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
xxx@xxx.be
------ This is a copy of the message, including all the headers. ------
Return-path: <yyy@yyy.be>
Received: from mail by v01.s01.be.it2go.eu with spam-scanned (Exim 4.80)
(envelope-from <yyy@yyy.be>)
id 1TOmoe-0003dW-Bl
for xxx@xxx.be; Thu, 18 Oct 2012 11:55:00 +0200
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on v01.s01.be.it2go.eu
X-Spam-Level:
X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00
autolearn=ham version=3.3.2
Received: from [mijn.ip.adres.thuis]
by v01.s01.be.it2go.eu with esmtpa (Exim 4.80)
(envelope-from <yyy@yyy.be>)
id 1TOmoe-0003dS-7y
for xxx@xxx.be; Thu, 18 Oct 2012 11:55:00 +0200
Message-ID: <507FD1C5.1090601@yyy.be>
Date: Thu, 18 Oct 2012 11:54:13 +0200
From: Kris De Rocker <yyy@yyy.be>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20121010 Thunderbird/16.0.1
MIME-Version: 1.0
To: xxx@xxx.be
Subject: test
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
test
Het bericht zelf heb ik weggekregen zoals Dennis aanhaalde (direct daarna getest, dit werkt).
Echter sinds ik once_repeat = 2d veranderd heb in once_repeat = 0 krijg ik deze fout.
Ik *vermoed* dat 2d staat voor 2 dagen. Dus mocht ik dit veranderen in 10s, zou dit dan ook automatisch 10 seconden zijn? Of heeft dit een andere aanduiding?
Echter sinds ik once_repeat = 2d veranderd heb in once_repeat = 0 krijg ik deze fout.
Ik *vermoed* dat 2d staat voor 2 dagen. Dus mocht ik dit veranderen in 10s, zou dit dan ook automatisch 10 seconden zijn? Of heeft dit een andere aanduiding?
Gewoon voor die once dingen een # zetten zodat hij die optie niet meer neemt, dat werkt hier zonder problemen.
Dit blijkt inderdaad te voldoen.