"Fossies" - the Fresh Open Source Software Archive

Member "sendpage-1.001001/sendpage.cf" (3 Jan 2008, 14864 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 ##############################################################################
    2 #                                 sendpage.cf                                #
    3 ##############################################################################
    4 #
    5 # There are four majors sections:
    6 #	- global	Any global settings
    7 #	- "modem"	Each modem's settings
    8 #	- "pc"		Each Paging Central's settings
    9 #	- "recip"	Each recipient name's settings
   10 #
   11 # Except for global, each section starts with the section name in
   12 # []'s.  So, to define a modem named "sportster", the section name
   13 # would be "[modem:sportster]", and all of the sportster's settings
   14 # would follow.
   15 #
   16 # section names cannot have "=", "@", or ":" in their text.
   17 #
   18 # For each major section, I go through all the default values
   19 # and their variable names.  If you don't like a default value,
   20 # just comment in the variable name, and change the value to something
   21 # else.
   22 #
   23 
   24 
   25 
   26 #############################
   27 # global section
   28 #############################
   29 # queue & manager-level debugging.  Default is "false"
   30 #
   31 #debug=true
   32 
   33 # select-loop debugging.  Default is "false"
   34 #	Leave this as it is unless you're digging around in the select
   35 #	loop code.  It is VERY annoying.  :)
   36 #
   37 #debug-select=true
   38 
   39 # SNPP activity debugging.  Default is "false"
   40 #
   41 #debug-snpp=true
   42 
   43 # alias-expansion debugging.  Default is "false"
   44 #
   45 #alias-debug=true
   46 
   47 # Filename prefix for writing process ID files.
   48 # 	Default is "/var/spool/sendpage/sendpage"
   49 #
   50 #pidfileprefix = /tmp/var/spool/sendpage/sendpage
   51 
   52 # Filename prefix for writing UUCP-style device locks.
   53 #	Default is "/var/lock/LCK.."
   54 #
   55 #lockprefix = /tmp/var/lock/LCK..
   56 
   57 # Directory to store Paging Central pager queues
   58 #	Default is "/var/spool/sendpage"
   59 #
   60 #queuedir = /tmp/var/spool/sendpage
   61 
   62 # Database dbi type/connection info for large user lists
   63 #
   64 #	Defaults are all ""
   65 #
   66 #dsn = dbi:Pg:Db:dbname=sendpage
   67 #dsn = dbi:mysql:database=sendpage;host=db.mydomain.name;port=3306
   68 #dbuser = sendpage
   69 #dbpass = mekmitasdigoat
   70 #dbtable = sendpage
   71 
   72 # Username that sendpage should be running as.
   73 #	Default is "sendpage"
   74 #user = nemesis
   75 
   76 # Group sendpage needs to lock devices.  
   77 #	Default is "uucp"
   78 #group-lock=lock
   79 
   80 # Group sendpage needs to read/write devices.
   81 #	Default is "tty"
   82 #group-tty=users
   83 
   84 # Email address that page emails claims to be coming from.
   85 #	Default is "sendpage"
   86 #
   87 #page-daemon = nemesis@outflux.net
   88 
   89 # Will page-daemon be Cc'd on email failures?
   90 #	Default is "true"
   91 #cc-on-error = false
   92 
   93 # By which mechanism should email be delivered?  mail, sendmail, or SMTP?
   94 #	Default is "sendmail"
   95 #mail-agent = mail
   96 
   97 # Should page senders be notified about permanent failures?
   98 #	Default is "true"
   99 #fail-notify = false
  100 
  101 # Page senders should be notified every Xth temporary failure.
  102 # (0 means 'never')
  103 #	Default is "5".
  104 #tempfail-notify-after=10
  105 
  106 # How many times does a page hit a temporary error before failing forever?
  107 #	Default is "20"
  108 #max-tempfail=50
  109 
  110 # How many seconds can a page stay in the queue, before being removed as
  111 # "too old"?
  112 #   Default is "0" (unlimited)
  113 #max-age=3600
  114 
  115 # Should syslog be used instead of STDERR for logging?
  116 #	Default is "true"
  117 #syslog=false
  118 
  119 # When using syslog, which syslog options should be used?
  120 # (any of "pid", "ndelay", "cons", or "nowait")
  121 #	Default is "pid"
  122 #syslog-opt= pid, cons
  123 
  124 # Which syslog facility should be used?  man syslog for more info
  125 #	Default is "daemon"
  126 #syslog-facility=local6
  127 
  128 # What port sendpage binds to for the SNPP server.
  129 #	Default is "444"
  130 #snpp-port=3044
  131 
  132 # What local address sendpage binds the SNPP server to.  
  133 #   *NOTE*
  134 #	You should set this to "0.0.0.0" if you want to receive pages from
  135 #	the rest of the world.
  136 #
  137 #	You can use this to limit which IP address SNPP is bound to.
  138 #   *NOTE*
  139 #
  140 #	Default is "localhost"
  141 #snpp-addr=0.0.0.0
  142 
  143 # What to do about incoming SNPP requests (multiple entries allowed)
  144 #   *NOTE*
  145 #	You should set this to "0.0.0.0/0.0.0.0:ALLOW" if you want
  146 #	anyone to connect to your SNPP server.
  147 #   *NOTE*
  148 #
  149 #	Format is "NET/MASK:WAY" where WAY is either "ALLOW" or "DENY"
  150 #
  151 #	ACL processing is done top to bottom, and if no match occurs,
  152 #	the connection is rejected.
  153 #
  154 #	Default is "127.0.0.1/255.255.255.255:ALLOW"
  155 #snpp-acl="128.174.5.0/255.255.255.0:ALLOW"
  156 #snpp-acl="128.23.1.10/255.255.255.255:DENY"
  157 #snpp-acl="128.23.1.0/255.255.255.0:ALLOW"
  158 
  159 # List of modems a PC should use if not told explicitly.
  160 #	Default is all available modems.
  161 #
  162 #modems = sportster
  163 
  164 # Default domain for email-cc (not implemented yet)
  165 #fallback-email-domain	=	@cpoint.net
  166 
  167 # Command to run after each successful or failed page
  168 #	Default is unset
  169 #	Command gets contents of page on stdin, and extra details:
  170 #		arg 1: status (0=page failed, 1=page succeeded)
  171 #		arg 2: page alias (who was paged)
  172 #		arg 3: page queue file location
  173 #		arg 4: desired delivery time
  174 #		arg 5: fail/success time (really, this is "now")
  175 #
  176 #	The paging central will wait for this command to finish before
  177 #	continuing (and possibly removing the queue file), so be careful
  178 #	how the command is implemented.
  179 #
  180 #completion-cmd = "/usr/local/bin/page-sent"
  181 
  182 ######################
  183 # modem configuration
  184 # 	Each section should be called "modem".  (e.g.  "[modem:sportster]")
  185 ######################
  186 
  187 # My first "modem" section.  I named it "sportster" because that's what it is
  188 [modem:sportster]
  189 # Should this modem's character-level debugging be turned on?
  190 #	Default is "false"
  191 #debug	= true
  192 
  193 # This modem's transmission settings.
  194 #	Defaults are data=7, parity=even, stop=1, flow=rts,
  195 #                    baud=9600, strict-parity=false
  196 #data	       = 8
  197 #parity	       = none
  198 #stop	       = 1
  199 #flow          = soft
  200 #baud          = 38400
  201 #strict-parity = true
  202 
  203 # Which device this modem should use
  204 #	Default is "/dev/null", so you better specify one.  :)
  205 dev	= /dev/modem
  206 
  207 # This modem's initialization string
  208 #	Default is "ATZ"
  209 #init   = ATE&1
  210 
  211 # This modem's "okay" response string (this is a regexp)
  212 #	Default is "OK"
  213 #initok = 0
  214 
  215 # What to look for if something has gone wrong while init'ing (this is a regexp)
  216 #	Default is "ERROR"
  217 #error=1
  218 
  219 # How many seconds to wait for initok after init with this modem
  220 #	Default is "4"
  221 #initwait=1
  222 
  223 # How many times to try to initialize the modem
  224 #	Default is "2"
  225 #initretries=1
  226 
  227 # The dialing prefix for this modem
  228 #	Default is "ATDT"
  229 #dial=ATDP
  230 
  231 # The telephone prefix to get a dialtone out of the building (for PBXs, etc)
  232 #	Default is ""
  233 #dialout="9,"
  234 
  235 # The areacode this modem has (for figuring areacode matches with PCs)
  236 #	Default is unset
  237 # If you never use area code, either make this "-" or don't use "areacode"
  238 # options in the PC definitions.
  239 #areacode="847"
  240 
  241 # The dialing prefix for dialing long distance calls (some PBXs do weird stuff)
  242 #	Default is "1-"
  243 #longdist="81"
  244 
  245 # What to look for after connecting successfully (this is a regexp)
  246 #	Default is "CONNECT.*\r"
  247 #dialok=0
  248 
  249 # What to look for if something goes wrong while dialing (this is a regexp)
  250 #	Default is "ERROR|NO CARRIER|BUSY|NO DIAL|VOICE"
  251 #no-carrier=ERROR
  252 
  253 # How many seconds to wait for dialing to connect
  254 #	Default is "60"
  255 #dialwait=30
  256 
  257 # How many times to try and redial (unimplemented, actually...)
  258 #	Default is "3"
  259 #dialretries=1
  260 
  261 # How should "carrier detection" be done?  "on", "off", "dsr"
  262 # "DSR" can be used when a cable or OS doesn't correctly provide CD
  263 #	Default is "on"
  264 #carrier-detect=dsr
  265 
  266 # How many seconds should the DTR be held down during initialization?
  267 #	Default is "0.5"
  268 #dtrtime=1.5
  269 
  270 
  271 ## As an example, this is what a directly attached paging terminal
  272 ## might look like:
  273 ##
  274 #[modem:direct]
  275 #carrier-detect=off
  276 #dtrtime=0
  277 #init=""
  278 #initok=""
  279 #dial=""
  280 #dialok=""
  281 #dev=/dev/serial
  282 
  283 
  284 #########################
  285 # Paging central section
  286 #	each section should be called "pc" (e.g. "[pc:ameritech]")
  287 #########################
  288 #[pc:example]
  289 # Is this PC enabled?  Set to false to stop processing a PC, for example
  290 #	Default is "true"
  291 #enabled= false
  292 
  293 # This PC's protocol-level debugging.
  294 #	Default is "false"
  295 #debug	= true
  296 
  297 # Email address that page emails claims to be coming from.
  298 #	Default is unset, and will fall back to the global "page-daemon" setting
  299 #
  300 #page-daemon = someone@other.place
  301 
  302 # Will page-daemon be Cc'd on email failures for this PC?
  303 #	Default is unset, and will fall back to global "cc-on-error" setting
  304 #cc-on-error = true
  305 
  306 # When set to "true", email CC's contain only the page message body,
  307 # instead of the full page and delivery report.
  308 #	Default is "false"
  309 #cc-simple = true
  310 
  311 # Should page senders be notified about permanent failures?
  312 #	Default is unset; will fall back to global option
  313 #fail-notify = false
  314 
  315 # Page senders should be notified every Xth temporary failure.
  316 # (0 means 'never')
  317 #	Default is unset; will fall back to global option
  318 #tempfail-notify-after=10
  319 
  320 # How many times does a page hit a temporary error before failing forever?
  321 #	Default is unset; will fall back to global option
  322 #max-tempfail=50
  323 
  324 # How many seconds can a page stay in the queue, before being removed as
  325 # "too old"?
  326 #   Default is unset; will fall back to global option
  327 #max-age=3600
  328 
  329 # Command to run after each successful or failed page, overrides global
  330 #	Default is unset
  331 #	Command gets contents of page on stdin, and 2 command line
  332 #	parameters:
  333 #		arg 1: status (0=page failed, 1=page succeeded)
  334 #		arg 2: page alias (who was paged)
  335 #
  336 #completion-cmd = "/usr/local/bin/page-sent"
  337 
  338 # If for some reason you need to override the default list of modems,
  339 # do it here.
  340 #	Default is all available modems.
  341 #modems	= sportster
  342 
  343 # If you need specific communication settings for this PC, they go here.
  344 #	Defaults are data=7, parity=even, stop=1, flow=rts,
  345 #                    baud=115200, strict-parity=false
  346 #data	       = 8
  347 #parity	       = none
  348 #stop	       = 1
  349 #flow	       = soft
  350 #baud	       = 9600
  351 #strict-parity = true
  352 
  353 # What areacode is this PC in?  If unset, the modem won't match areacodes
  354 #	Default is unset
  355 #areacode= 312
  356 
  357 # What phone number to reach this PC at.
  358 #	Default is "", so you better fill one in
  359 #phonenum= 5149243
  360 
  361 # How many pages can be sent in each session with this PC?
  362 #	Default is 0 (unlimited)
  363 #maxpages=12
  364 
  365 # How many blocks can be sent in each session with this PC?
  366 #	Default is 0 (unlimited)
  367 #maxblocks=60
  368 
  369 # How many characters can be sent in each page for this PC? (For UCP, not TAP)
  370 #	Default is 1024
  371 #maxchars=300
  372 
  373 # How many characters per block are allowed during TAP transmission?
  374 # The protocol normally has this at "250" (due to the 256 limit, and
  375 # encoding requires 6 chars).  Making this higher than 250 isn't sensible,
  376 # but some TAPs need it smaller.
  377 #	Default is "250"
  378 #chars-per-block=230
  379 
  380 # How many times are we allowed to split up a page that exceeds the
  381 # max chars limit?  (For example, if maxchars was "100" and maxsplits was
  382 # "5" and someone sent a 2000 character page, sendpage would generate
  383 # five 100-character pages before cutting off the page.)
  384 #	Default is "6"
  385 #maxsplits=2
  386 
  387 # Which TAP protocol to use.  Should be one of "PG1", "PG3", "UCP", or "Test"
  388 #   Regular TAP PagingCentrals are "PG1".
  389 #   UCP PagingCentrals will need "UCP".
  390 #   Test delivery (always succeeds) is named "Test"
  391 # If you had a "pet3" style PC before, this needs to be "PG3"
  392 #	Default is "PG1"
  393 #proto=PG3
  394 
  395 # How many fields does the PC expect to be getting during Block Transmission?
  396 # If you had a "pet3" style PC before, this needs to be "3".
  397 #	Default is "2"
  398 #fields=3
  399 
  400 # What is the password for accessing this Paging Central?
  401 #	Default is "000000".  Shouldn't be more than 6 characters.
  402 #password=123456
  403 
  404 # Should we assume strict TAP protocol, and require CR before each answer?
  405 # If you can set this to true, do so, as it makes textual response codes
  406 # easier to read.  However, very few PCs use those codes, and very few
  407 # PCs have correctly implemented strict TAP, so it's unlikely you want this. 
  408 #	Default is "false"
  409 #stricttap=true
  410 
  411 # Characters less than 0x20 are allowed in a block's field?
  412 # If you can set this, it makes pages prettier (can send tabs, newlines,
  413 # etc), but some PCs really don't like this.  See 'esc' and 'lfok' options.
  414 #	Default is "false"
  415 #ctrl=true
  416 
  417 # Can characters less than 0x20 be escaped, as in TAP spec 1.8?
  418 # If you can't set "ctrl" to true, see if this one set to true works.
  419 #	Default is "false"
  420 #esc=true
  421 
  422 # Is LF explicitly allowed by this PC? (only useful if "ctrl=false")
  423 # 	Default is "false"
  424 #lfok=true
  425 
  426 # Can fields be split across blocks?
  427 #	Default is "true"
  428 #fieldsplits=false
  429 
  430 # How many seconds to wait before sending CR when waiting for the ID= tag?
  431 #	Default is "2", from the T1 of the TAP protocol
  432 #answerwait=10
  433 
  434 # How many retries to allow before giving up waiting for the ID= tag?
  435 #	Default is "3", from the N3 of the TAP protocol
  436 #answerretries=3
  437 
  438 # How many seconds before we giving up trying to dial this PC?
  439 #	Default is whatever the modem's dialwait is
  440 #dialwait=20
  441 
  442 # How many seconds should this PC wait between queue scans?
  443 #	Default is "20"
  444 #rundelay=10
  445 
  446 
  447 # This is a "null" PagingCentral.  If you send pages to it, it will
  448 # pretend like it delivered them.  This is useful for turning Sendpage
  449 # into just an email delivery tool.  (Comment it in if you're forced to
  450 # use email for TAP-less SMS gateways and you haven't set up Kannel yet).
  451 #[pc:null]
  452 #proto=Test
  453 #cc-simple=true
  454 
  455 
  456 # I have a skytel that only works in Illinois, and I've only called this
  457 # number from chicago, but I think it's valid as a national TAP access
  458 # number.
  459 [pc:skytel]
  460 areacode=800
  461 phonenum=7596366
  462 stricttap=true
  463 
  464 # I have a nextel that should work Nationally, but I've only called this
  465 # number from Chicago, while I was IN Chicago with the NexTel.
  466 [pc:nextel]
  467 areacode=312
  468 phonenum=9076683
  469 stricttap=true
  470 
  471 # This is the BellSouth RIM pager
  472 [pc:rim-pager]
  473 areacode=800
  474 phonenum=868-2835
  475 stricttap=true
  476 
  477 
  478 ###################
  479 # Recipients
  480 #	This section starts with "recip".  (e.g. "[recip:cook]")
  481 #	Sorry this section is so clunky...
  482 #
  483 #	'email-cc' will get passed down to an expanding alias.  For
  484 #	example, look at the "[recip:cook]" below.  I have an email-cc,
  485 #	and it'll stick with the recip alias, even though it finally
  486 #	expands the "dest" to be "cook_ameritech".  Did that make any sense?
  487 #
  488 #	dest:		Where to send the page.  Either PIN@paging-central, or
  489 #			another recip name.
  490 #	email-cc:	Where to send an email CC of the page
  491 #		
  492 ###################
  493 
  494 # My three pagers
  495 [recip:cook_ameritech]
  496 dest	=	1234567@ameritech
  497 [recip:cook_nextel]
  498 dest	=	1234567@nextel
  499 [recip:cook_skytel]
  500 dest	=	1234567@skytel
  501 [recip:cook]
  502 dest	=	cook_ameritech
  503 email-cc=	cooke@cpoint.net
  504 
  505 # Paul's nextel
  506 [recip:pholcomb]
  507 dest	=	1234567@nextel
  508 
  509 # Kirsten's ameritech pager
  510 [recip:kirsten]
  511 dest	=	1234567@ameritech
  512 email-cc=	dragoon@blight.com
  513 
  514 # Christian's RIM pager
  515 [recip:cvoid]
  516 dest	=	1234567@rim-pager
  517 
  518 # A group alias for Paul and me
  519 [recip:oncall]
  520 dest	=	cook, pholcomb
  521 email-cc=	qpoint@cpoint.net