Re: [Exim] mailer > program help

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Steve Haslam
Datum:  
To: exim-users
Betreff: Re: [Exim] mailer > program help
On Fri, Jan 28, 2000 at 05:01:07PM -0700, Jerry Allen wrote:
> Does anyone use programs such as sendpage
> with exim?


I haven't used sendpage itself, but the principle is probably the same
as us using a wrapper for sms_client.

I have this transport:

# This transport can be used to gateway to peoples' pagers
pagerprog:
driver = pipe
command = /usr/local/sbin/pagerprog "${lookup ldap{ldap:///?pager?sub?(uid=${local_part})}{$value}fail}"
log_fail_output
return_fail_output
group = dialout

and this director:

page_user:
  driver = localuser
  prefix = page-
  transport = pagerprog
  debug_print = "Look up pager for \"${local_part}\": \
                ${lookup ldap{ldap:///ou=People,o=Excite,c=GB?pager?sub?(uid=${local_part})}{$value}{not found}}"
  condition = "${lookup ldap{ldap:///ou=People,o=Excite,c=GB?pager?sub?(uid=${local_part})}{yes}fail}"


This setup is for "page-shaslam@..." addresses. To handle your setup,
add page.your.domain.com to local_domains and replace "prefix=page-"
with "domains=page.your.domain.com".

You will want to add "domains=!page.your.domain.com" to some
directors- or simply have the page_user director near the top of the
list and set the "no_more" option.

HTH

SRH
-- 
Steve Haslam, Production Engineer, Excite UK     steve.haslam@???
                               i sit and stare at the gun pointed at my head
                                       and think about all the possibilities