Re: [exim] Vacation autoreply not sent

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: kmb
Data:  
Para: exim-users
Asunto: Re: [exim] Vacation autoreply not sent

Dirk,

I see one possible issue with your config, But I could be wrong.
On thing to look at is the protection on the .db file. If you are
running Exim as EXIM and attempting to write to the DB file as EXIM you
do not have permission. Try to put the line user = $local_part in your
router. Also you may want to define the "transport_home_directory" in
your router as $home

Here is my Vacation Router and Transport as a reference. Notable I
have every thing in a common directory since i have use Squirrel Mail
for teh Vacation interface.

My Router (Just before my localuser router):


Code:
--------------------

user_vacation:
driver = accept
check_local_user
# do not reply to errors or lists
condition = "${if or {{match {$h_precedence:} {(?i)junk|bulk|list}} {eq {$sender_address} {}}} {no} {yes}}"
no_expn
require_files = /var/www/vacation/$local_part/vacation.msg
# do not reply to errors and bounces or lists
senders = " ! ^.*-request@.*:\
! ^owner-.*@.*:\
! ^postmaster@.*:\
! ^listmaster@.*:\
! ^mailer-daemon@.*\
! ^root@.*"
transport = vacation_reply
unseen
transport_home_directory = /var/www/vacation/$local_part
user = apache
no_verify
--------------------


and my Transport:


Code:
--------------------

vacation_reply:
driver = autoreply
file = /var/www/vacation/$local_part/vacation.msg
file_expand
from = Autoreply System <$original_local_part@$original_domain>
log = /var/www/vacation/$local_part/vacation.log
once = /var/www/vacation/$local_part/vacation.db
once_repeat = 7d
subject = ${if def:h_Subject: {Re: ${quote:${escape:${length_50:$h_Subject:}}} (autoreply)} {I am on vacation} }
text = "\
Dear $h_from\n\n\
This is an automatic reply. Feel free to send additional\n\
mail, as only this one notice will be generated once every 7 days.\n\
The following is a prerecorded message, sent for $original_local_part@$original_domain:\n\
====================================================\n\n\
"
to = "$sender_address"
--------------------






Dirk Wrote:
> Hello all,
> I'm trying to setup autoreply (vacation) for users on exim-4.44-1 on a
> ServerAtSchool Linux.
> Basic problem: no autoreply is created.
>
> This is my exim.conf:
> In the ROUTERS section, between 'mailman-director:' and 'userforward:'
>
> # This router delivers a "vacation" message if a file called
> 'vaction.msg'
> # exists in the home directory.
> uservacation:
> driver = accept
> domains = +local_domains
> # user to put away message in a file called vacation.msg
> require_files = $home/vacation.msg
> # do not reply to errors or lists or with ADV in the subject
> condition = ${if or { \
> {match {$h_precedence:} {(?i)junk|bulk|list}} \
> {eq {$sender_address} {}} \
> {match {$h_subject:} {(ADV|Adv)}} \
> } {no} {yes}}
> no_expn
> # do not reply to errors or bounces or lists
> senders = ! ^.*-request@.*:\
> ! ^bounce-.*@.*:\
> ! ^.*-bounce@.*:\
> ! ^owner-.*@.*:\
> ! ^postmaster@.*:\
> ! ^webmaster@.*:\
> ! ^listmaster@.*:\
> ! ^mailer-daemon@.*:\
> ! ^root@.*
> transport = uservacation_transport
> unseen
> no_verify
>
> ---------------
> And in the TRANSPORT section:
>
> # This transport is used for vacation messages
> uservacation_transport:
> driver = autoreply
> file = $home/vacation.msg
> file_expand
> # if using MailScanner setup with two config files
> # must be able to write as the user exim runs as
> # because calling with -C will not run as root
> #
> http://www.exim.org/pipermail/exim-users/Week-of-Mon-20020715/0413
> 28.html
> #    once = /var/log/exim/vacation/$local_part-vacation.db
> # if not using MailScanner setup try something like
> once = $home/vacation.db
> # to use a flat file instead of a db specify once_file_size
> once_file_size = 2K
> once_repeat = 14d
> from = $local_part@???
> to = $sender_address
> subject = "Re: $h_subject"
> # text that will be included in message above what is in user's
> vaca
> tion.msg
> text = "This is an automatic reply.  Please feel free to send
> additional\n\
> mail, as only this one notice will be generated.\n\
> ================================================\n\n"

>
> ---------------------------
> The user has a 'vacation.msg' and a 'vacation.db' in his home
> directory
> -rw-r--r--    1 concierge concierge        0 Apr  3 16:24 vacation.db
> -rw-rw-r--    1 concierge concierge      129 Apr  3 15:59 vacation.msg

>
> When sending mail to this server, the mail is delivered, but no
> autoreply ios generated.
>
> I hve tried several howto's, searched the web, nothing works.
> What am I (little or no experience) doing wrong?
> Any help would be greatly appreciated.
> Thanks in advance,
> Dirk
> Public primary school Rosa Boekdrukker, the Netherlands
>
>
>
>
>
>
> --
> ## List details at http://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/



--
kmb


------------------------------------------------------------------------
kmb's Profile: http://www.exim-users.org/forums/member.php?action=getinfo&userid=1
View this thread: http://www.exim-users.org/forums/showthread.php?threadid=56635