Solved

Integrating Sendpage with Sendmail

Posted on 1997-06-23
2
248 Views
Last Modified: 2013-12-16
How do I set up sendpage as a mailer? I read the
isntructions that came with it, but I still don't know how
to configure Sendmail (either version 8.8.6 or The one that came with Solaris 2.5.1) or the sendmail.cf file so that I can send alphanumeric pages vi email... I have sendpage working, it talks correctly to my paging central...
0
Comment
Question by:chrisvo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
sundancer earned 100 total points
ID: 1812458
You need to setup an alias hostname for the machine hosting sendpage, unless it will be a dedicated machine.

sendmail must have been compiled with the switches -DNDBM and -DNEWDB.

add a line to sendmail.cf to accept mail for the new host; something like:

Cw pager.chrisvo.com

and another line to tell sendmail about the aliases; like:
Kdomainaliases btree /etc/domainaliases.db

create a domainalias file (/etc/domainalias) with translations; something like:

paged-person@pager.domain.com persons-pager@chrisvo.com

compile the domain alias database
(makemap btree domainaliases.db < domainaliases)

Then add the following (exactly!!!!) under the S98 Ruleset:
<< each line should start with an 'R'>>

        R$+< $+. >              $1< $2 >
        R$+< $+ >               $: < > $(domainaliases $1$2 $)
        R< > $+ @ $*            $: < $1 > $(domainaliases * @ $2 $)
        R< $+ > * $*            $: < > $1 $2
        R< > $*                 $: $>3 $1


Now kill all sendmail processes.  startup sendmail in address mode (sendmail -bt) and see how you show up!

An output example from my config:
At the prompt enter the name that is used to send a page (preceded by a 0):

>0 paged-person@pager.domain.net

rewrite: ruleset   0   input: paged-person @ pager . domain . net
rewrite: ruleset  98   input: paged-person @ pager . domain . net
rewrite: ruleset  98 returns: paged-person @ pager . domain . net
rewrite: ruleset  97   input: paged-person @ pager . domain . net
rewrite: ruleset   3   input: paged-person @ pager . domain . net
rewrite: ruleset  96   input: paged-person < @ pager . domain . net >
rewrite: ruleset  96 returns: paged-person < @ pager . domain . net . >
rewrite: ruleset   3 returns: paged-person < @ pager . domain . net . >
rewrite: ruleset   0   input: paged-person < @ pager . domain . net . >
rewrite: ruleset  98   input: paged-person < @ pager . domain . net . >
rewrite: ruleset  98 returns: paged-person < @ pager . domain . net . >
rewrite: ruleset   0 returns: $# local $: @ person
rewrite: ruleset  97 returns: $# local $: @ person
rewrite: ruleset   0 returns: $# local $: @ person
                                   
person-pager: "|/usr/local/bin/sendpagefilter person                
^^this is the alias  ^^^full path name        ^^defined in sendpage.cf

(I hate using 'variables', but that's all I can use here.)

The "sendpagefilter" is at
    ftp://ftp.unm.dorm.net/pub/paging/paging_filter.tar.gz

Piece of cake!  (yeah, right...)

One of these days I'll write a script to handle all this automagically....



0
 

Author Comment

by:chrisvo
ID: 1812459
Thanks for the advice,I'll try it out (I unfortunately
have a problem getting an MX record for my machine...)


0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question