?
Solved

Integrating Sendpage with Sendmail

Posted on 1997-06-23
2
Medium Priority
?
265 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 300 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses
Course of the Month17 days, 13 hours left to enroll

829 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