Solved

Integrating Sendpage with Sendmail

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
Red Hat Enterprise Linux 6.5 gets missing "/lib/ld-linux.so.2" 7 98
unix scripting question 1 104
Unix Command -- Challenging  question 7 96
Write an app 10 71
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…
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…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

828 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