"Fossies" - the Fresh Open Source Software Archive

Member "sendpage-1.001001/docs/sendmail.txt" (3 Jan 2008, 3243 Bytes) of package /linux/privat/old/sendpage-1.001001.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 $Id: sendmail.txt 158 2004-01-16 02:03:20Z nemies $
    2 
    3 
    4 Just to note, this documentation assumes you're using sendmail version 8.8.x
    5 or better.
    6 
    7 
    8 To get sendpage working with sendmail, there are a few things you'll need:
    9 
   10 	1) set up sendpage (and test)
   11 	2) get yourself a paging domain
   12 	3) configure sendmail to use your domain
   13 	4) configure email2page.conf
   14 	5) test your set up
   15 	6) add stuff to your sendmail.cf file
   16 
   17 
   18 Step 1: Set up sendpage (and test)
   19 ----------------------------------
   20 
   21 	Assuming you've already configured sendpage, and tested it with
   22 "snpp", and you've gotten your page, you're ready to move on to step 2.
   23 
   24 
   25 Step 2: Get yourself a paging domain
   26 ------------------------------------
   27 
   28 	Since I get most of my email from "outflux.net", I decided I'd
   29 make my paging domain "pager.outflux.net".  So I added this to my DNS
   30 information, and refreshed my DNS server.  Once you have a domain resolving
   31 with your DNS server, continue to step 3.
   32 
   33 
   34 Step 3: Configure sendmail to use your domain
   35 ---------------------------------------------
   36 
   37 	Add your domain to either the "Cw" line in sendpage, or add it
   38 to the /etc/sendmail.cw file (recommended).  Restart sendmail, and
   39 continue to step 4.
   40 
   41 
   42 Step 4: Configure email2page.conf
   43 ---------------------------------
   44 
   45 	Take a look at /etc/email2page.conf and set up the header rules
   46 to suite your needs.  The file is fairly well documented.  When finished,
   47 continue to step 5.
   48 
   49 
   50 Step 5: Test your set up
   51 ------------------------
   52 
   53 	Send a page by piping an email (with headers) into "sendmail2snpp".
   54 This tool should run "email2page" and "snpp" for you.  Once you get it 
   55 working, continue to step 6.
   56 
   57 
   58 Step 6: Add stuff to your sendmail.cf file
   59 ------------------------------------------
   60 
   61 	I recommend using style a), but you can choose either:
   62 
   63 	a) add stuff to your sendmail.mc file (and regenerate your sendmail.cf
   64 	   file).  Change "pager.outflux.net" and the sendmail2snpp path, if
   65 	   you need to:
   66 
   67 		dnl
   68 		dnl Kees' changes for sendpage
   69 		dnl
   70 		# for pager gateway
   71 		CGpager.outflux.net
   72 		LOCAL_RULE_0
   73 		# sendpage
   74 		R$+<@$=G.>	$#sendpage $:$1
   75 		define(`SENDPAGE_MAILER_PATH',`/usr/local/bin/sendmail2snpp')
   76 		define(`SENDPAGE_MAILER_FLAGS',`lsPn')
   77 		define(`SENDPAGE_MAILER_ARGS',`sendmail2snpp -f $f')
   78 		MAILER_DEFINITIONS
   79 		Msendpage, P=SENDPAGE_MAILER_PATH, F=SENDPAGE_MAILER_FLAGS,
   80 			S=10, R=20, A=SENDPAGE_MAILER_ARGS $u
   81 
   82 	-or-
   83 
   84 	b) add stuff to your sendmail.cf file directly.  Change
   85 	   "pager.outflux.net" and the sendmail2snpp path, if you need
   86 	   to.
   87 
   88 		Near the top:
   89 
   90 			# for pager gateway
   91 			CGpager.outflux.net
   92 
   93 		At the end of rule "S98":
   94 
   95 			# sendpage
   96 			R$+<@$=G.>	$#sendpage $:$1
   97 
   98 		Near your mailer definitions:
   99 
  100 			Msendpage, P=/usr/local/bin/sendmail2snpp, F=lsPn,
  101 				S=10, R=20, A=sendmail2snpp -f $f $u
  102 
  103 
  104 
  105 Once that's done, restart sendmail with your new .cf file, and you should
  106 be ready to rock and roll.
  107 
  108 
  109 Troubleshooting
  110 ---------------
  111 On RedHat systems, or machines using "smrsh", try this:
  112 
  113 	Here is how to get smrsh to work:
  114 	cd /etc/smrsh
  115 	ln -s /usr/bin/sendmail2snpp sendmail2snpp
  116 	restart sendmail
  117 	edit /etc/aliases to include:
  118 	ALIAS: "|/etc/smrsh/sendmail2snpp PIN@PC"
  119 	run newaliases
  120 
  121 From Brett Carroll.
  122 
  123 
  124 -Kees Cook
  125  kees@outflux.net