Solved

Integrating Sendpage with Sendmail

Posted on 1997-06-23
2
242 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
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now