Solved

Integrating Sendpage with Sendmail

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
llcommand 6 87
Sed question 2 68
Problem logging tar errors 11 54
ORA-00972: identifier is too long from Unix but not from Windows in SQLPLUS 17 46
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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…
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.:

911 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

15 Experts available now in Live!

Get 1:1 Help Now