home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / bit / listserv / pmdfl / 1996 < prev    next >
Encoding:
Text File  |  1992-09-13  |  7.2 KB  |  202 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!paladin.american.edu!auvm!SPCVXA.SPC.EDU!TERRY
  3. Errors-to: epmdf@YMIR.BITNET
  4. Organization: St. Peter's College, US
  5. X-Envelope-to: PMDF-L@IRLEARN.BITNET
  6. X-VMS-To: IN%"NED@SIGURD.INNOSOFT.COM"
  7. X-VMS-Cc: IN%"ipmdf@ymir.claremont.edu",TERRY
  8. MIME-version: 1.0
  9. Content-type: TEXT/PLAIN; CHARSET=US-ASCII
  10. Content-transfer-encoding: 7BIT
  11. Message-ID: <01GOQ0ZGS11U984S9T@YMIR.CLAREMONT.EDU>
  12. Date:         Sun, 13 Sep 92 13:19:29 GMT
  13. Sender:       PMDF Distribution List <PMDF-L@IRLEARN>
  14. From:         "Terry Kennedy, Operations Mgr" <TERRY@SPCVXA.SPC.EDU>
  15. Subject:      RE: Limiting access to outgoing mail.
  16. Newsgroups: bit.listserv.pmdf-l
  17. Lines: 183
  18.  
  19. > But this immediately begs the question of whether or not the existing channel
  20. > mechanisms can be coerced into doing what you want. And of course the answer i
  21.    s
  22. > yes it can. All you have to do is create a new channel called d_noexquota that
  23. > would look something like this:
  24.  
  25.   Well, I think that ease of understanding is getting lost in the effort to
  26. have a conceptually clean design. Part of my problem in grasping some of the
  27. subtleties about the way that PMDF works is probably due to this. I'd think
  28. that a single "channel" per host+protocol with a configuration file that says
  29. what actions are legal for addresses passed on that channel would be easier
  30. to understand. However, I'll readily admit that you're lots more familiar with
  31. this stuff than I am. Anyway, on to the project at hand:
  32.  
  33. >    l holdexquota
  34. >    localhost
  35. >
  36. >    d_noexquota noexquota
  37. >    noexquota.localhost
  38. >
  39. > And then you need some additional rewrite rules:
  40. >
  41. >    noexquota.localhost              $E$F$U%localhost@noexquota.localhost
  42. >    noexquota.localhost              $E$F$U@localhost
  43. >
  44. > Finally, for each user that you want to restrict so they cannot exceed quota
  45. > you would add an alias:
  46. >
  47. >    user:     user@noexquota.localhost
  48.  
  49.   Ok. I made these changes to my PMDF configuration (here's a VMS DIFF):
  50.  
  51. ************
  52. File PMDF_ROOT:[TABLE]PMDF.CNF;28
  53.   224   ! Rewrites included from external files
  54. ******
  55. File PMDF_ROOT:[TABLE]PMDF.CNF;31
  56.   225   ! Rewrites to support the "no exquota" option
  57.   226   !
  58.   227   noexquota.spcvxa        $E$F$U%spcvxa@noexquota.spcvxa
  59.   228   noexquota.spcvxa        $E$F$U@spcvxa
  60.   229   !
  61.   230   ! Rewrites included from external files
  62. ************
  63. ************
  64. File PMDF_ROOT:[TABLE]PMDF.CNF;28
  65.   238   d 733 nox_env_to goldmail linelength 255 defragment charset7 us-ascii ch
  66.    arset8 iso-8859-1
  67. ******
  68. File PMDF_ROOT:[TABLE]PMDF.CNF;31
  69.   244   d_noexquota noexquota
  70.   245   noexquota.spcvxa
  71.   246
  72.   247   d 733 nox_env_to goldmail linelength 255 defragment charset7 us-ascii ch
  73.    arset8 iso-8859-1
  74. ************
  75.  
  76.   I also added an alias for my test userid, "zztest_user", in the aliases file:
  77.  
  78. ! People who abuse quota and aren't allowed to get mail when over quota
  79. zztest_user: zztest_user@noexquota.spcvxa
  80.  
  81.   Also, my full local channel definition (if it matters) is:
  82.  
  83. l nox_env_to goldmail holdexquota linelength 255 defragment charset7 us-ascii
  84. [linewrap] charset8 iso-8859-1
  85. spcvxa.spc.edu
  86.  
  87.   By the way, do I need any of these things on the d_noexquota channel?
  88.  
  89.   The user had 4 blocks in use. I set the disk quota to 3 + 0 overdraft and
  90. sent the user a mail message. The user did _not_ have an existing mail file.
  91. Here is what I got:
  92.  
  93. PMDF_ROOT:[LOG]D_NOEXQUOTA_MASTER.LOG;1
  94. $ DECnet_compatibility_channel:
  95. $ !
  96. $ ! We now delivery it all with one invocation of MAIL_SERVER. Speeds things
  97. $ ! up a LOT!
  98. $ !
  99. $ define/user outbound pmdf_root:[log]d_noexquota_master_dirlst_2020643E.tmp
  100. $ run pmdf_root:[exe]list.exe
  101. $ !
  102. $ priv_list = f$setprv("SYSPRV, DETACH, BYPASS")
  103. $ if f$logical("PMDF_MESSAGE_FILE") .nes. "" then close/nolog queue_file
  104. $ open/read pmdf_message_list pmdf_root:[log]d_noexquota_master_dirlst_2020643E.
  105.    tmp
  106. $ !
  107. $ local_loop_1:
  108. $   mail/protocol=pmdf_mailshr
  109. %MAIL-E-OPENOUT, error opening USER6:[GUESTS.ZZTEST_USER]MAIL.MAI; as output
  110. -SYSTEM-F-IVDEVNAM, invalid device name
  111. $   if .not. $status then goto local_loop_1
  112. $ !
  113. $ priv_list = f$setprv(priv_list)
  114. $ close pmdf_message_list
  115. $ delete pmdf_root:[log]d_noexquota_master_dirlst_2020643E.tmp;*
  116.  
  117.   Now, I don't know why the "invalid device name" message popped up. The
  118. logical for USER6 is:
  119.  
  120.    "USER6" [exec] = "$1$DUA6:" [concealed,terminal] (LNM$SYSTEM_TABLE)
  121.  
  122.   The message is now sitting in the D_NOEXQUOTA queue. So, I sent the user a
  123. mail message locally with VMS mail. That created the mail file just fine (I
  124. have EXQUOTA).
  125.  
  126.   I then mailed a 284 block file to the user via PMDF. That generated the
  127. following log file:
  128.  
  129. PMDF_ROOT:[LOG]D_NOEXQUOTA_MASTER.LOG;2
  130.  
  131. $ DECnet_compatibility_channel:
  132. $ !
  133. $ ! We now delivery it all with one invocation of MAIL_SERVER. Speeds things
  134. $ ! up a LOT!
  135. $ !
  136. $ define/user outbound pmdf_root:[log]d_noexquota_master_dirlst_20206A43.tmp
  137. $ run pmdf_root:[exe]list.exe
  138. $ !
  139. $ priv_list = f$setprv("SYSPRV, DETACH, BYPASS")
  140. $ if f$logical("PMDF_MESSAGE_FILE") .nes. "" then close/nolog queue_file
  141. $ open/read pmdf_message_list pmdf_root:[log]d_noexquota_master_dirlst_20206A43.
  142.    tmp
  143. $ !
  144. $ local_loop_1:
  145. $   mail/protocol=pmdf_mailshr
  146. $   if .not. $status then goto local_loop_1
  147. $ !
  148. $ priv_list = f$setprv(priv_list)
  149. $ close pmdf_message_list
  150. $ delete pmdf_root:[log]d_noexquota_master_dirlst_20206A43.tmp;*
  151.  
  152.   For some reason, this got delivered. The user is now 300 blocks over quota.
  153. Now, I try another test with a different file:
  154.  
  155. PMDF_ROOT:[LOG]D_NOEXQUOTA_MASTER.LOG;3
  156.  
  157. $ DECnet_compatibility_channel:
  158. $ !
  159. $ ! We now delivery it all with one invocation of MAIL_SERVER. Speeds things
  160. $ ! up a LOT!
  161. $ !
  162. $ define/user outbound pmdf_root:[log]d_noexquota_master_dirlst_20206448.tmp
  163. $ run pmdf_root:[exe]list.exe
  164. $ !
  165. $ priv_list = f$setprv("SYSPRV, DETACH, BYPASS")
  166. $ if f$logical("PMDF_MESSAGE_FILE") .nes. "" then close/nolog queue_file
  167. $ open/read pmdf_message_list pmdf_root:[log]d_noexquota_master_dirlst_20206448.
  168.    tmp
  169. $ !
  170. $ local_loop_1:
  171. $   mail/protocol=pmdf_mailshr
  172. %MAIL-E-OPENOUT, error opening !AS as output
  173. -RMS-E-CRE, ACP file create failed
  174. -SYSTEM-F-EXDISKQUOTA, disk quota exceeded
  175. $   if .not. $status then goto local_loop_1
  176. $ !
  177. $ priv_list = f$setprv(priv_list)
  178. $ close pmdf_message_list
  179. $ delete pmdf_root:[log]d_noexquota_master_dirlst_20206448.tmp;*
  180.  
  181.   Ok, so this one correctly failed to deliver the message. However, the message
  182. is still sitting in the D_NOEXQUOTA queue and no bounce message was returned. I
  183. thought "noexquota" would yield an immediate bounce, rather than a retry? Is it
  184. possible that this is being converted to "holdexquota" somehow?
  185.  
  186.   So, I believe I'm seeing 3 problems (or 3 aspects of one problem):
  187.  
  188. 1) The MAIL.MAI file isn't being created (and a wrong error is generated) in
  189.    this case. It may very well be a VMS MAIL issue, but if you could check it
  190.    I'd appreciate it.
  191.  
  192. 2) Some mail is getting through, even with noexquota set. Possibly it's only
  193.    the first message after a mail file is created?
  194.  
  195. 3) Mail which was correctly not delivered isn't generating bounce messages and
  196.    is staying in the queue.
  197.  
  198.         Thanks,
  199.         Terry Kennedy           Operations Manager, Academic Computing
  200.         terry@spcvxa.bitnet     St. Peter's College, Jersey City, NJ USA
  201.         terry@spcvxa.spc.edu    +1 201 915 9381
  202.