Re: [exim] aliases, :fail:, include text from a file?

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Troy Engel
日付:  
To: exim-users
題目: Re: [exim] aliases, :fail:, include text from a file?
Philip Hazel wrote:
>
>> I'm looking at my userforward router (with FAQ_4.html#TOC156 applied) and
>> vacation router, but don't see the proper way to do what I want. Maybe I don't
>> want to use :fail: in my aliases file?
>
> An Exim filter would be an easier way to do this. It has a proper "mail"
> command that can take data from a file. However, in order to do that you
> need to accept the email rather than verifying at SMTP time.


Understood. I'll profess my ignorance here, I don't use any systemwide
filters at all, everything is user based in their home directories. How
would you recommend setting up the smallest, most efficient system
filter for a need like this? In my aliases file, I would route the
closed job to this user somehow?

   job-1234:    jobclosed
   jobclosed:   <system filter>?


I'm assuming the actual filter commandfile would go something like:

== snip ==
# Exim filter
if error_message then finish endif
mail \
subject "Job Closed: ${local_part}@${qualify_domain}" \
from "do-not-reply@${qualify_domain}" \
reply_to "do-not-reply@${qualify_domain}" \
expand file "/etc/mail/jobclosed.txt"
seen finish
== snip ==

That part is clear, not sure how I'd hook it up to the exim delivery
engine though without an actual user...

thanks! :)
-te

--
Troy Engel | Systems Engineer
Fluid Inc. | http://www.fluid.com