home *** CD-ROM | disk | FTP | other *** search
/ PC World 1999 August / PCWorld_1999-08_cd.bin / doc / HOWTO / mini / Offline-Mailing < prev    next >
Text File  |  1998-07-03  |  43KB  |  1,519 lines

  1.   Linux off-line mailing method (offline mailaddr with 1
  2.   account)
  3.   Gunther Voet, freaker@tuc.ml.org - Belgium (CompuMed/TuCSRV)
  4.   v1.3.3, 4 June 1998
  5.  
  6.   Use your linux mailing system offline, receive mail for multiple users
  7.   with only one email address, and without being 24-24 online on the
  8.   net.  If you are unable to pay a direct line to stay online for 24-24
  9.   and still want your users to receive mail on your linux box; as well
  10.   not pay for a multi-drop box at your isp, you can use this system
  11.   using only one email address to divide to your users email addresses.
  12.   It is as well 24-24 reachable since the server where your account
  13.   resists will receive the mail.  ``This howto is Copyright (c)1997-98
  14.   by Gunther Voet.''
  15.   ______________________________________________________________________
  16.  
  17.   Table of Contents
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.   1. Notes by the author (preface).
  68.  
  69.      1.1 Legal stuff
  70.      1.2 Copyrights
  71.      1.3 Feedback
  72.      1.4 Distribution
  73.      1.5 Changes
  74.      1.6 What am i using ?
  75.      1.7 Thanks go out to ...
  76.  
  77.   2. Preliminaries
  78.  
  79.      2.1 Preface & Description
  80.      2.2 Points of interest ...
  81.      2.3 Things you should know
  82.      2.4 there are 2 different ways ...
  83.  
  84.   3. Requirements
  85.  
  86.      3.1 A linux machine
  87.      3.2 A extra account at your linux machine
  88.      3.3 Fetchmail
  89.      3.4 Procmail
  90.      3.5 A mail account
  91.         3.5.1 A DNS record (MX)
  92.         3.5.2 A "forward" to your account-account :)
  93.  
  94.   4. I got it all, what now ?
  95.  
  96.      4.1 Creating a .fetchmailrc file
  97.      4.2 Creating a .procmailrc file
  98.         4.2.1 For "header (to:)" transportation
  99.         4.2.2 For "subject: touser" transportation
  100.      4.3 "nosuchuserfile"
  101.      4.4 "crontab files".
  102.         4.4.1 checkformail
  103.         4.4.2 crontab
  104.      4.5 "At the admins site".
  105.         4.5.1 (old sendmail) add some lines to sendmail.cf
  106.         4.5.2 (new sendmail) Adding some lines to sendmail.cf
  107.         4.5.3 (new sendmail)editing the /etc/sendmail.cw (or /yourdir/sendmail.cw) file
  108.         4.5.4 creating a /etc/maildomains file
  109.         4.5.5 let it work !
  110.  
  111.   5. Automation
  112.  
  113.      5.1 The "skeleton".
  114.         5.1.1 the ".procmailrc-header" file
  115.         5.1.2 the .procmailrc-footer file ..
  116.      5.2 addmail script
  117.  
  118.   6. Help! (sigh)
  119.  
  120.      6.1 The automation script just doesn't work:
  121.      6.2 What do you mean by "anonymous mailserver"?
  122.      6.3 My cat died
  123.      6.4 My dog died
  124.      6.5 Linux?
  125.      6.6 Can you help me with finding a mail account?
  126.      6.7 Why is the "maybe later i'll make some addition ..." removed ?
  127.      6.8 How do i get a "domain" ?
  128.      6.9 Why are you so f*cking lame using this?
  129.      6.10 Nosuchuserfile?
  130.      6.11 Can my users write/send mail too?
  131.      6.12 Does every user need a shell account at my server?
  132.      6.13 skeletion?
  133.      6.14 Addmail?
  134.      6.15 Why are you so cruel?
  135.      6.16 Didn't you get a complaint of excessive language ?
  136.      6.17 Why is this howto different than most others?
  137.      6.18 locally my domain works, but remote it seems not to receive
  138.      6.19 My dog died
  139.  
  140.   7. The End
  141.  
  142.  
  143.  
  144.   ______________________________________________________________________
  145.  
  146.   1.  Notes by the author (preface).
  147.  
  148.   In this chapter i'm just going to put myself safe for any damages and
  149.   flames - since even *I* could be wrong ... If you got any questions or
  150.   suggestions to add to this faq, even if you find any faults - there is
  151.   a feedback section in it ...
  152.  
  153.   Some "need to know" point is, all filenames & files/types are
  154.   indicated with the line:
  155.  
  156.  
  157.        (*** < file > *** text ***)     .procmailrc
  158.  
  159.  
  160.   This means, this is a file, called ".procmailrc" containing text. The
  161.   text variable can also be code. It shows you what name of file to use.
  162.   Without a path means it can be variable/choosen by you (in the most
  163.   cases this files resists in the homedirectory of the mail"user" like
  164.   /home/mailer).
  165.  
  166.  
  167.   1.1.  Legal stuff
  168.  
  169.   Neither the author nor the distributors of this HOWTO are in any way
  170.   responsible for physical, financial, moral damage incurred by
  171.   following the suggestions and examples of this text. The information
  172.   in this document contains the best of my knowledge and experience, but
  173.   i could still make any mistakes as well in the information as in the
  174.   examples. Any trademarks are property of their respective holders (i
  175.   ain't using any commercial thingy's here - but well - IF i'm going to
  176.   add some text, i don't need to change this disclaimer). If your cat
  177.   dies 'coz this document was too heavy - i am not responsible as well
  178.   ...
  179.  
  180.  
  181.   1.2.  Copyrights
  182.  
  183.   This document and contents are Copyright (c)1997-98 by Gunther Voet.
  184.   Unauthorized (re)production in any form is explicitly allowed and even
  185.   strongly encouraged as long you don't change the contents of it
  186.   without contacting the author (Gunther Voet). If you quote the
  187.   document as whole or a part of it, there needs to be a Copyright
  188.   "hint" or link to the derived work. "The HOWTO documents are
  189.   copyrighted by their respective authors". The "HOWTO copyright" will
  190.   discuss what can be done and what cannot be done with this document.
  191.   If it is used in a commercial way, the author should been noticed for
  192.   such distributions. Exceptions on this copyright may be granted under
  193.   certain conditions with a written letter or e-mail to the author. For
  194.   more info about the standard HOWTO disclaimer, please contact linux-
  195.   howto@sunsite.unc.edu.
  196.  
  197.   *PLEASE* *IF* you are going to make a system based on this HOWTO, then
  198.   PLEASE give me the copyright :) heh ... - i am not that cruel :)). I
  199.   mean by a system "a package" - NOT the mailsystem itself - altough it
  200.   is some appreciative thingy i would be included :)) i can always use
  201.   one email address more for more flaming :)) (just kiddin').
  202.  
  203.  
  204.  
  205.   1.3.  Feedback
  206.  
  207.   Well, i expect from you and the users who read this HOWTO, they will
  208.   make this HOWTO useful. If you got any suggestions, corrections,
  209.   comments (except flame-mail :)) - please send them to me at
  210.   freaker@freestamp.com or freaker@tuc.ml.org and i will make the
  211.   corrections, comments or suggestions happen in the next revision. If
  212.   you publish this document on a commercial way, a complimentary copy
  213.   would be appreciated - you can mail me for my postal address. For
  214.   flames - you could send them to me, but they will end at /dev/null ...
  215.   so - don't even mind to waste bandwidth for it !.  Since i can exclude
  216.   some users to receive mail from (explained in this document) (evil
  217.   grin). My alias (name) is freaker btw :)). You can always try
  218.   "freaker@freestamp.com". (note the changed address !!)
  219.  
  220.  
  221.   1.4.  Distribution
  222.  
  223.   The latest revision of this document can been get from:
  224.  
  225.   http://sunsite.unc.edu/pub/Linux/docs/HOWTO/mini/Offline-Mailing
  226.  
  227.   -and-
  228.  
  229.   http://tuc.ml.org/om/
  230.  
  231.   (also checkout http://tuc.ml.org)
  232.  
  233.   tuc.ml.org could be down at the time of current writing!
  234.  
  235.  
  236.   1.5.  Changes
  237.  
  238.  
  239.    v1.0.0       - Preliminary release, internal testing, we tried it before
  240.                   we gave it out to you :) .. since - it GOT to be usefull
  241.                   and needs to work? rite ? :)
  242.    v1.1.0       - Fixed a lot of errors in the texts, put chapters in it,
  243.                 - fixed some small errors and typo's ...
  244.    v1.2.0       - fixed grammatical errors.
  245.                 - added a "what-are-we-using" chapter.
  246.                 - added Sunsite address.
  247.    v1.3.0       - Added "virtual mail support" for admins
  248.                 - New site and email addresses
  249.                 - Thanks go to ...
  250.    v1.3.1       - Converted to SGML and fixed some minor details.
  251.    v1.3.2       - Major errors corrected (filenames .fetchmailrc to
  252.                   .procmailrc) etc... (thx to Tetsu Isaji)
  253.                 - Added support for the "new" sendmail, v8.8.0+
  254.                 - Fixed some minor errors
  255.                 - Upgraded my system YAY!
  256.                 - Japanese version will come out soon, location
  257.                   will be mentioned when known ... (thx to Tetsu Isaji)
  258.    v1.3.3       - Added CC support, changed email addr to freaker@freestamp.com
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.   1.6.  What am i using ?
  266.  
  267.   I'm using Linux 2.0.30, Pentium-166, ATI pci-mach64 card, Accelerated-
  268.   X (Metro) and a connection to my isp (currently ibmnet) via ppp using
  269.   a ZyXEL 28k8 modem, and occasionally a Bausch 28k8.
  270.  
  271.   Now i upgraded to Linux 2.0.33, installed a USRobotics modem, it still
  272.   works as it should work :) (everybody should upgrade their linux
  273.   versions as soon there comes out a patch :) believe me :) you could
  274.   spare a lot of time & seeking for errors when doing this one :)
  275.  
  276.  
  277.   1.7.  Thanks go out to ...
  278.  
  279.  
  280.   ╖  Fred, durban.hebel.net (for allowing the pages & bot)
  281.  
  282.   ╖  Lifesaver, parkside.net (for allowing the new pages, helping with
  283.      this faq for mailing, since, it is all working overthere and here
  284.      ... make some visit to his cyber-cafe ... heard they got great
  285.      coffee :))
  286.  
  287.   ╖  The server admins at lodus.net to continue this project.
  288.  
  289.   ╖  Now i'll need a new server since lodus.net has been sold :(
  290.  
  291.  
  292.   2.  Preliminaries
  293.  
  294.   Well, how does this system works ? what can you do with it ? what is
  295.   it anyway ? and ... am i used to read it ? ... to all those questions
  296.   - there is an answer ...
  297.  
  298.  
  299.  
  300.   2.1.  Preface & Description
  301.  
  302.   This HOWTO is dedicated to all the off-line linux users/servers ...
  303.   You got a group, or organization, and you want all your members to
  304.   have a contact (email) address, without paying for the 24/24 direct
  305.   line or for the email accounts ... Or you got a internal network -
  306.   with a masq'd server and you want to give all the users using it a
  307.   email address, you could use this way to do it. I personally am using
  308.   it to give my users & members of a demogroup all a e-mail account
  309.   without being 24/24 online; since it is a non-commercial demogroup -
  310.   and we don't got THAT much money to pay a direct line with instant
  311.   email access - and different ip's. Everybody got a email address, even
  312.   when they don't got internet access. The ones with internet access can
  313.   receive their mail on their personal email address - viavia the system
  314.   described below. Your users can still send mail as they used to do,
  315.   since - your system will hold the mail queue from the users. The only
  316.   thing what should be changed for the users - is that they add their
  317.   "email address" wether (described below) it is the method with the
  318.   subject line, or with the header "to" ...
  319.  
  320.  
  321.  
  322.   2.2.  Points of interest ...
  323.  
  324.  
  325.   ╖  A organization with members, for all a email address, so they can
  326.      be contacted when neccesary.
  327.  
  328.   ╖  A anonymous mailservice - they can't read your "mail setup file" -
  329.      so they don't know where the mail is forwarded/rerouted to.
  330.  
  331.   ╖  A group who doesn't got enuf money (don't laugh), or is free, and
  332.      don't WANT to spend money for it (eheh) - and still wants to
  333.      provide the members a email address.
  334.  
  335.   ╖  A masq'd network - with a server connected to the internet, where
  336.      the users using the masq'd network need to have a email account
  337.  
  338.   ╖  You want to put some documents "autoreplied" - like i do with my
  339.      HOWTO, statistics, or documents ... like "info@yourmail.dom" or
  340.      "document1@yourmail.dom".
  341.  
  342.  
  343.   ╖  You only need one account at the "main" server to fetch from, for
  344.      the +200 email accounts you can create at your server ...
  345.  
  346.   ╖  I used the "B" method with +- 300 email accounts - with a public
  347.      server; 80486DX4-100 - and was processed in 1 minute.
  348.  
  349.  
  350.   2.3.  Things you should know
  351.  
  352.  
  353.   ╖  Not every (free) mailservice is happy when you are going to
  354.      distribute mail to other users, or putting up an anonymous mail
  355.      server, so, please try to contact your mailserver administrator
  356.      before "just doing it".
  357.  
  358.   ╖  It is slower than a direct 24/24 connection, since your server will
  359.      need to get online before it will process the mail.
  360.  
  361.   ╖  It needs a administrative force to administrate the "mailrouting"
  362.      and to add the user ... you will need work with it ! - it is not
  363.      that automatic.  (well - i made it "semi-automatic" with my server
  364.      :) you could try it as well).
  365.  
  366.   ╖  Bandwidth and space is needed when you got many users - on the
  367.      mailserver you are working on ... and sure - when they send files -
  368.      you need to have enough space on it !.
  369.  
  370.   ╖  All mail will be transferred into "one step" - so - the last mail
  371.      received on your server will be last sent to the recipient. "first
  372.      in - first out".
  373.  
  374.   ╖  In the first method (to:) there is no prob with the usernames - but
  375.      in the second "cheaper" method - users can't put in a subject line,
  376.      since that one will be used to send the mail to the recipient. Many
  377.      users forget to use the "subject" ... - or they will need to know
  378.      it clearly.
  379.  
  380.   ╖  If you poll enough for your mail, (for example 4 times a day) - the
  381.      mail will be sure be delivered to as from a recipient the least
  382.      every 6hrs. So the processing will go a little smoother.
  383.  
  384.   ╖  you CAN use it as a "online" mail server as well :) since it will
  385.      poll for it's mail for every XX minutes. but - when you are online
  386.      - why using another server ? and not asking your own domain for
  387.      your own server ?  (dough).
  388.  
  389.  
  390.   2.4.  there are 2 different ways ...
  391.  
  392.  
  393.   1. method 'A' - now called "(m(A))".
  394.  
  395.      The "mailsystem" will look to the header, and will see to the "to:"
  396.      line.  This is the best way, since it are "real email addresses".
  397.      You will need another account on some server *AND* you need a DNS
  398.      (MX) entry (your own domain for instance). If the system
  399.      administrator wants to help you with that, then there will be no
  400.      problem !. The system administrator will need to reroute ALL mail
  401.      sent to your (MX) maildomain -> to your account !.  This will take
  402.      some time for him to do it :) so be really nice to him :)) Thanks
  403.      to my system administrator (Fred) i got my maildomain and the user-
  404.      services of my "free" demogroup. It can be a DNS entry costs
  405.      something, what you will need to consider to take it or not.
  406.  
  407.   2. method 'B' - now called "(m(B))".
  408.  
  409.      The "mailsystem" looks to the subject line, and will forward to the
  410.      user indicated into the subject line. If the user is not found, it
  411.      will bounce a mail back. This will need a pop server with only one
  412.      useraccount, and don't need your own DNS or you don't need to be
  413.      nice to your system- administrator who arranges you the mail
  414.      address :). You can use a public mailserver, as well your own
  415.      mailserver or a private one. You can even sacrifice your own email
  416.      address for it :). I used this approach as first what worked for me
  417.      for over a year now ... I know this is sloppy, but, i ain't telling
  418.      you need to use this way, so don't shoot ME - since i'm only
  419.      offering you some solutions to your mail problems :) - you could
  420.      use method A what isn't that sloppy !
  421.  
  422.  
  423.   3.  Requirements
  424.  
  425.   Well, you need (of'course) a Linux machine, what can be connected to
  426.   the internet - So! (i am smart - i am smart :)) - you probably got a
  427.   modem, right?  a phoneline - or any way to connect yourself with the
  428.   server you are running.  You will also need some software like
  429.   Fetchmail, Procmail, an extra account, and your email account or DNS
  430.   with email account.
  431.  
  432.  
  433.  
  434.   3.1.  A linux machine
  435.  
  436.   This can be ANYthing ... even a 8086 ... - but preferable - since
  437.   there will be some load on it - minimally a 80386 :). as faster the
  438.   machine - as faster the software will run (rite eh)? :).
  439.  
  440.  
  441.   3.2.  A extra account at your linux machine
  442.  
  443.   You need to create a extra account on your Linux machine. I am using
  444.   as example (in this HOWTO) "mailservice". This can be as well
  445.   "mailserver" or "mailtousers" - as long it is some name what can be
  446.   recognized by you!.
  447.  
  448.   ! It doesn't need to have ANY root privileges !
  449.  
  450.   This mailaccount will forward all mail to the users on your system, or
  451.   to external users (not on your system :)). Just create it as an
  452.   ordinary user.  You will need to test things under this account, and,
  453.   the mail "administrator" can use this account to administrate the mail
  454.   account without being root even .. so - pretty safe !.
  455.  
  456.  
  457.   3.3.  Fetchmail
  458.  
  459.   I am using v1.9 patch level 9 ... i found it at sunsite.unc.edu, and,
  460.   i am using only this mail-fetcher in my example - if you want to use
  461.   another one, you are on your own ! since i am happy with it :). For
  462.   extended features you should read the man of Fetchmail :). This can be
  463.   installed as root - as well for the user itself ... - best is to
  464.   install it as root :) since i know it will work for sure then :)))
  465.  
  466.  
  467.   3.4.  Procmail
  468.  
  469.   I am using v3.10 - found it again at sunsite.unc.edu, and - i like
  470.   this as the best mda (mail delivery agent) around ... It delivers
  471.   nicely - and it is better than using it by the "original" system mda -
  472.   since it will deliver user-per-user ! ... The same as above - it can
  473.   be installed as root, or as user - and :) best is to install it as
  474.   root - since i know it will work for sure then (again!) :)... how
  475.   repetetive ...
  476.  
  477.  
  478.   3.5.  A mail account
  479.  
  480.   You always need to have a mail account - where you can "poll" your
  481.   mail from.  The server needs to be a POP server - where you can poll
  482.   from when you want, and where users can send their mail 24/24 to. It
  483.   can be a free-mail service, as well commercial - even your mailaccount
  484.   is sufficient enough. In the "subject" method (m(B)) - you don't need
  485.   something more - in method A - with the "to" fields - you NEED more -
  486.   as written below !
  487.  
  488.  
  489.   3.5.1.  A DNS record (MX)
  490.  
  491.   Needed to run your own "domain" - email domain ... it is needed since
  492.   the administrator of the server can't use it's own domain for your
  493.   users - since there are users who need to be contacted on his server
  494.   as well - what could interfere with your users. And your mailheader
  495.   must be filtered on that domain. So - an apart domain - pointing to
  496.   HIS server. This can be an additional cost - or you can ask your
  497.   system administrator to add a "non- authorative address" - pointing to
  498.   his server ... - however - it needs to be another domain than he is
  499.   using !
  500.  
  501.  
  502.   3.5.2.  A "forward" to your account-account :)
  503.  
  504.   Well, the system administrator needs to forward *ALL* mail to your
  505.   domain to YOUR account ... - it is easy for him when he knows how to
  506.   do it :) ..  else he will need to read the sendmail manual :)) (or
  507.   qmail - whatever).  You will poll for your mail at your account and
  508.   voila ! filtering on YOUR own email domain.
  509.  
  510.  
  511.   4.  I got it all, what now ?
  512.  
  513.   Now you created the extra account, you got the mail address - and/or
  514.   the DNS entry & forwarding to your account ... As well installed
  515.   Procmail & Fetchmail so we can rock the place ! :) .. here we go !
  516.  
  517.   1. You need to create a .procmailrc file, what will contain the
  518.      "delivery" info to your users.
  519.  
  520.   2. You need to create a "nosuchuserfile" - so the writer knows his
  521.      mail isn't delivered well.
  522.  
  523.   3. For best work :) you could use crontab to check for mail. This is a
  524.      easy way to check your mail every XX minutes when on the internet.
  525.  
  526.  
  527.  
  528.  
  529.   4.1.  Creating a .fetchmailrc file
  530.  
  531.   You will need to create a .fetchmailrc file, what will contain the
  532.   information (username & password, as well the Mail Delivery Agent
  533.   (mda) to proces the mail to). Here is some example file ...
  534.  
  535.  
  536.        (*** < file > *** text ***)     .fetchmailrc
  537.  
  538.  
  539.  
  540.  
  541.        ______________________________________________________________________
  542.        server my.mail.server.com
  543.        proto pop3
  544.        user myaccountthere
  545.        pass deepestsecrets
  546.        flush
  547.        mda /usr/bin/procmail
  548.        ______________________________________________________________________
  549.  
  550.  
  551.  
  552.  
  553.   This file will be used to fetch your mail. Please test it by using the
  554.   fetchmail program "fetchmail -vv" - and see your mail is being
  555.   transferred right ... There will be some errors - since the procmail
  556.   control file hasn't been created yet. You can wait by testing AFTER
  557.   making the procmailrc file, but - i'll warn ya - IF there is something
  558.   fault :) it CAN be this file :) It needs to be owned by the user
  559.   account itself - in my case "mailservice" and needs to be "user
  560.   readable" but NOT group/world readable - since it contains the "main
  561.   password" :)). (chmod 600 .fetchmailrc will do).
  562.  
  563.  
  564.   4.2.  Creating a .procmailrc file
  565.  
  566.   This control file will forward all mail to the users in it. There are
  567.   2 ways as described before - the "to:" (header) way - and the
  568.   "subject" (sloppy) way.  The file will contain the usernames to
  569.   transport to. All the "#" are comments and are absolutely not needed
  570.   when not wanted - it's only so you know what i am doing ... - you can
  571.   as well best chmod it 600 - so the rest of the world or group doesn't
  572.   need those private addresses eh :) ... It needs also to be owned by
  573.   the user (like "mailservice") :)). The "nosuchuserfile" is a "bounce"
  574.   to the writer - if the user isn't found (so mail not delivered) in the
  575.   procmailrc file ... - so the writer knows the mail isn't delivered
  576.   well.
  577.  
  578.  
  579.   4.2.1.  For "header (to:)" transportation
  580.  
  581.  
  582.        (*** < file > *** text ***)     .procmailrc
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595.   ______________________________________________________________________
  596.   # this line is for debugging purposes only ! it should be removed for
  597.   # ethical purposes - since you can read all mail passed trough your mail-
  598.   # server ... - all mail will be copied to the file "passtrough" before
  599.   # going to the users ... herein you can look what went wrong ...
  600.   :0 c
  601.           passtrough
  602.  
  603.   # the mail with header "to: freaker@mydom.com" will be forwarded directly
  604.   # to me, the other mail will pass this option ...
  605.   :0
  606.   * ^To:.*freaker@mydom.com
  607.   ! freaker
  608.  
  609.   # the mail to root@mydom.com will be forwarded to root ... as well postmaster!
  610.   :0
  611.   * ^To:.*root@mydom.com
  612.   ! root
  613.  
  614.   :0
  615.   * ^To:.*postmaster@mydom.com
  616.   ! postmaster
  617.  
  618.  
  619.   # the mail to barbara@mydom.com will be forwarded to barbara AND will be
  620.   # forwarded to her private email address !
  621.  
  622.   :0 c
  623.   * ^To:.*barbara@mydom.com
  624.   ! barbara@her.private.one
  625.  
  626.   :0
  627.   * ^To:.*barbara@mydom.com
  628.   ! barbara
  629.  
  630.   # the mail to johnny@mydom.com and johnny@hisdom.com will be forwarded to johnny
  631.  
  632.   :0
  633.   * (^To:.*johnny@mydom.com)|(^To:.*johnny@hisdom.com)
  634.   ! freaker
  635.  
  636.   # the mail to hans@mydom.com and all carbon copys will be forwarded to hans
  637.  
  638.   :0
  639.   * (^To:.*hans@mydom.com)|(^CC:.*hans@mydom.com)
  640.   ! hans
  641.  
  642.   # this lines will BOUNCE the mail to the sender - when it is not delivered to
  643.   # one of above users ... it will send the file "nosuchuser" into the mail
  644.   # body as reply ... be aware ! you need to make such file ! - mine contains
  645.   # "well, the user you wanted to reach does not exist on this server, please
  646.   # try again, it could be the user is not present anymore".
  647.   #
  648.   :0
  649.     |(/usr/bin/formail -r -k \
  650.        -A"X-loop: mailservice@mydomain.dom "| \
  651.          /usr/bin/gawk '{print }\
  652.          /^/ && !HEADER \
  653.            { system("/bin/cat nosuchuser"); \
  654.            print"--" ;\
  655.            HEADER=1 }' ) |\
  656.            /usr/bin/sendmail -t
  657.  
  658.  
  659.   exit
  660.   ______________________________________________________________________
  661.   4.2.2.  For "subject: touser" transportation
  662.  
  663.  
  664.        (*** < file > *** text ***)     .procmailrc
  665.  
  666.  
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.   ______________________________________________________________________
  728.   # this line is for debugging purposes only ! it should be removed for
  729.   # ethical purposes - since you can read all mail passed trough your mail-
  730.   # server ... - all mail will be copied to the file "passtrough" before
  731.   # going to the users ... herein you can look what went wrong ...
  732.   :0 c
  733.           passtrough
  734.  
  735.   # the mail with header "to: freaker@ibm.net" will be forwarded directly
  736.   # to me, the other mail will pass this option ... When you got a "dedicated"
  737.   # email address to receive your "mailservice thingy's" on - you don't need
  738.   # to use this line :)
  739.   :0
  740.   * ^To:.*freaker@ibm.net
  741.   ! freaker
  742.  
  743.   # all mail with as subject "root" will be forwarded to root !
  744.   :0
  745.   * ^Subject:.root
  746.   ! root
  747.  
  748.   # all mail to "subject: barbara" will be forwarded to barbara ...
  749.   :0
  750.   * ^Subject:.barbara
  751.   ! barbara
  752.  
  753.   # all mail to "subject: paul" will be forwarded to his external email addr.
  754.   :0
  755.   * ^Subject:.paul
  756.   ! paul@his.personal.emailaddress
  757.  
  758.   # all mail to "subject: john" will be forwarded to his account at your server
  759.   # and a copy will go to his private email address ...
  760.   :0 c
  761.   * ^Subject:.john
  762.   ! john@his.personal.emailaddress
  763.  
  764.   :0
  765.   * ^Subject:.john
  766.   ! john
  767.  
  768.   # All the mail from ibm, with their updates and information, will go to
  769.   # freaker, as he is the one who will administrate the mailservice, and
  770.   # as ibm doesn't want to get the bounce putten below !! ... this is
  771.   # neccesary if your mail provider sends "newsletters" etc...
  772.   :0
  773.   * ^From:.*newsletter@ibm.net
  774.   ! freaker
  775.  
  776.   # All messages from the daemon should been thrown away, or in my case, will
  777.   # be saved to a file ... (use /dev/null to throw to endless pits of The Abyss)
  778.   :0
  779.   * ^FROM_DAEMON
  780.   throwaway
  781.  
  782.   # this lines will BOUNCE the mail to the sender - when it is not delivered to
  783.   # one of above users ... it will send the file "nosuchuser" into the mail
  784.   # body as reply ... be aware ! you need to make such file ! - mine contains
  785.   # some text like "user not found in subject line, please use "Subject: user"
  786.   # to write a mail to the user, like example "subject: freaker" would send a
  787.   # mail to freaker." The file can be long, but also small :) ... the
  788.   # "mailservice@mydomain.dom" will prevent to loop between your server and
  789.   # the other server - it needs to have the EXACT email address used !.
  790.   # Else you could create an endless loop with a server what sends mail
  791.   # to "your email address" with as subject something like "don't spend 500$
  792.   # at your ..." etc...
  793.   :0
  794.     |(/usr/bin/formail -r -k \
  795.        -A"X-loop: mailservice@mydomain.dom "| \
  796.          /usr/bin/gawk '{print }\
  797.          /^/ && !HEADER \
  798.            { system("/bin/cat nosuchuser"); \
  799.            print"--" ;\
  800.            HEADER=1 }' ) |\
  801.            /usr/bin/sendmail -t
  802.  
  803.   exit
  804.   ______________________________________________________________________
  805.  
  806.  
  807.  
  808.  
  809.  
  810.  
  811.   4.3.  "nosuchuserfile"
  812.  
  813.  
  814.        (*** < file > *** text ***)     nosuchuser
  815.  
  816.  
  817.  
  818.  
  819.        ______________________________________________________________________
  820.  
  821.        The user you wanted to contact is not present at this system.
  822.  
  823.        Please use the subject line as recipient - example "subject: freaker" would
  824.        send mail to freaker on this system.
  825.        ______________________________________________________________________
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.   4.4.  "crontab files".
  833.  
  834.   If you don't know how crontab works :) better read the manual :) ...
  835.   You need to create a "checkmail" file - what will see if the link is
  836.   up, as well the cronfile itself ... - i am using a ppp link :) so -
  837.   this is an example how to look when the ppp link is up - and to poll
  838.   every 10 minutes using cron. Looks sloppy - but isn't !.
  839.  
  840.  
  841.  
  842.   4.4.1.  checkformail
  843.  
  844.   the .checkformail file will be called (needs to be executable as well)
  845.   - and will look if the ppp link is up. If it is up - then it will
  846.   fetch for mail.  Crontab will use this file when you are using the
  847.   below cronentry ...
  848.  
  849.  
  850.        (*** < file > *** code ***)     .checkformail
  851.  
  852.  
  853.  
  854.  
  855.  
  856.  
  857.  
  858.  
  859.   ______________________________________________________________________
  860.   #!/bin/sh
  861.   #
  862.  
  863.           cd /home/mailservice
  864.  
  865.           if [ -f /var/run/ppp0.pid ]; then
  866.           /usr/local/bin/fetchmail -s > /dev/null 2>&1
  867.   fi
  868.   ______________________________________________________________________
  869.  
  870.  
  871.  
  872.  
  873.  
  874.   4.4.2.  crontab
  875.  
  876.   This cronentry file needs to been loaded into crontab, and will call
  877.   the .checkformail - every 10 minutes. It won't write any mail or give
  878.   any info to the console - since i'm redirecting everything to null.
  879.  
  880.  
  881.        (*** < file > *** text ***)     cronentry
  882.  
  883.  
  884.  
  885.  
  886.        ______________________________________________________________________
  887.        0,10,20,30,40,50 * * * *  /home/mailservice/.checkformail 1> /dev/null 2> /dev/null
  888.        ______________________________________________________________________
  889.  
  890.  
  891.  
  892.  
  893.  
  894.  
  895.   4.5.  "At the admins site".
  896.  
  897.   Well, this should be done when using the "A method" ... at the admin's
  898.   site, so the email goes all from a complete domain, to one username.
  899.   It is pretty simple, and once you've done it - it works like hell.
  900.   this is NOT neccesary if your system administrator (the uplink) got
  901.   another method, and is NOT neccesary at YOUR side !!!!
  902.  
  903.   When using a newer version of sendmail, the "old sendmail" trick
  904.   probably won't work, so please refer to the "new sendmail" topics to
  905.   let your mailrouting work.
  906.  
  907.  
  908.   4.5.1.  (old sendmail) add some lines to sendmail.cf
  909.  
  910.   add the following lines to your /etc/sendmail.cf file, so the domains
  911.   file will be read.  please be noted that the "ruleset 98" is added as
  912.   underhere, since - once you got errors :) it's a hell to find 'm out !
  913.   (and i can know it :) DuH).
  914.  
  915.  
  916.        (*** < file > *** add ***)    /etc/sendmail.cf
  917.  
  918.  
  919.  
  920.  
  921.  
  922.  
  923.  
  924.  
  925.   ______________________________________________________________________
  926.   # Database of handled domains
  927.  
  928.   Kmaildomains btree /etc/maildomains.db
  929.  
  930.   # Add these lines *IN* Ruleset 98 ! (under Ruleset 98).
  931.  
  932.   R$+ < @ $+  . >         $: $1 < @ $2 > .
  933.   R$+ < @ $+ > $*         $: $(maildomains $1@$2 $: $1 < @ $2 > $3 $)
  934.   R$+ < @ $+ > $*         $: $(maildomains $2 $: $1 < # $2 > $3 $)
  935.   R$+ < @ $* > .          $: $1 < @ $2 . >
  936.   ______________________________________________________________________
  937.  
  938.  
  939.  
  940.  
  941.  
  942.  
  943.   4.5.2.  (new sendmail) Adding some lines to sendmail.cf
  944.  
  945.   With the newer sendmail releases (tested with sendmail v8.8.7, 8.8.8).
  946.   Ignore method A, and add the next lines ...
  947.  
  948.  
  949.        (*** < file > *** add ***)    /etc/sendmail.cf
  950.  
  951.  
  952.  
  953.  
  954.        ______________________________________________________________________
  955.        # Database of handled domains
  956.  
  957.        Fw/etc/sendmail.cw
  958.        Kvirtuser btree /etc/maildomains.db
  959.  
  960.        *OR*
  961.  
  962.        Fw/yourhomedir/sendmail.cw
  963.        Kvirtuser btree /yourhomedir/maildomains.db
  964.        ______________________________________________________________________
  965.  
  966.  
  967.  
  968.  
  969.  
  970.  
  971.   4.5.3.  (new sendmail)editing the /etc/sendmail.cw (or /yourdir/send¡
  972.   mail.cw) file
  973.  
  974.   If you are using another "location" for the sendmail.cw file, then
  975.   please replace the "/etc/sendmail.cw" to
  976.   "/yourhomedirectory/sendmail.cw". The pro points of putting this
  977.   sendmail.cw file into your homedirectory is that you don't need root
  978.   to change the domains to receive on. tough - this can give security
  979.   risks if not used properly !
  980.  
  981.   This file can already exist, or needs to be created, if it already
  982.   exists be sure you don't overwrite the older data - or i need to refer
  983.   you to my fine disclaimer :)
  984.  
  985.   First create a /etc/sendmail.cw file, what will be used to "send" a
  986.   domain to a specific user ... here is an example ... (as you already
  987.   knew, the name "mailservice" can be anything you want - it can even be
  988.   your loginname (like mine is freaker).
  989.  
  990.  
  991.        (*** < file > *** text ***) /etc/sendmail.cw
  992.  
  993.  
  994.  
  995.  
  996.        ______________________________________________________________________
  997.        mydomain.dom            mailservice
  998.        ______________________________________________________________________
  999.  
  1000.  
  1001.  
  1002.  
  1003.  
  1004.  
  1005.   4.5.4.  creating a /etc/maildomains file
  1006.  
  1007.   First create a /etc/maildomains file, what will be used to "send" a
  1008.   domain to a specific user ... here is an example ... (as you already
  1009.   knew, the name "mailservice" can be anything you want - it can even be
  1010.   your loginname (like mine is freaker). (you could have this
  1011.   /etc/maildomains in /yourhomedir/maildomains as mentioned before, just
  1012.   change the paths :)
  1013.  
  1014.   With the OLDER sendmail versions:
  1015.  
  1016.  
  1017.        (*** < file > *** text ***)     /etc/maildomains
  1018.  
  1019.  
  1020.  
  1021.  
  1022.        ______________________________________________________________________
  1023.        mydomain.dom            mailservice
  1024.        ______________________________________________________________________
  1025.  
  1026.  
  1027.  
  1028.  
  1029.   With the NEWER sendmail versions:
  1030.  
  1031.  
  1032.        (*** < file > *** text ***)     /etc/maildomains
  1033.  
  1034.  
  1035.  
  1036.  
  1037.        ______________________________________________________________________
  1038.        @mydomain.dom           mailservice
  1039.        ______________________________________________________________________
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.   4.5.5.  let it work !
  1047.  
  1048.   With the old & new sendmail versionsyou need to generate the btree
  1049.   (database) files, you'll need to do the following:
  1050.  
  1051.  
  1052.   cd /etc    (or /yourhomedir)
  1053.   makemap btree maildomains < maildomains
  1054.  
  1055.  
  1056.  
  1057.   after that, kill the sendmail daemon, and restart it. it should now
  1058.   WORK!  good luck :)
  1059.  
  1060.  
  1061.   5.  Automation
  1062.  
  1063.   Well, now, everything above works ... (if it doesn't work - don't even
  1064.   think about automation before it WILL work ... - now - we need some
  1065.   script so it isn't a pain in the ass for the "mailadministrator" or
  1066.   the root user to add users to the procmailrc file ... The below
  1067.   example will be for "more experienced users" - since some things NEED
  1068.   to be changed as well ... - it is an example with the "B method -
  1069.   Subject lines". It can be easily adapted to the "A method". Since the
  1070.   "B method" will be more used (cheaper) than the "A" method - i decided
  1071.   to use the "B method" ... Am i sounding repetitive or not ? .. well -
  1072.   i meant to write it in this way :)) to bug you :)))..
  1073.  
  1074.  
  1075.   5.1.  The "skeleton".
  1076.  
  1077.   Since the footer needs to be as footer (everything below won't be
  1078.   processed since we are bouncing there); there needs to be a header and
  1079.   a footer file.
  1080.  
  1081.  
  1082.  
  1083.   5.1.1.  the ".procmailrc-header" file
  1084.  
  1085.   This file will now be the "header & user" file .. since here will
  1086.   users been added and removed - it will be a important file ... - best
  1087.   take a backup from it each time you add a user ... - there COULD be
  1088.   something wrong sometime ..  A system can fail ...
  1089.  
  1090.  
  1091.        (*** < file > *** text ***) .procmailrc-header
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097.  
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.   ______________________________________________________________________
  1124.   :0 c
  1125.           passtrough
  1126.  
  1127.   :0
  1128.   * ^To:.*freaker@ibm.net
  1129.   ! freaker
  1130.  
  1131.   :0
  1132.   * ^Subject:.root
  1133.   ! root
  1134.  
  1135.   :0
  1136.   * ^Subject:.barbara
  1137.   ! barbara
  1138.  
  1139.   :0
  1140.   * ^Subject:.paul
  1141.   ! paul@his.personal.emailaddress
  1142.  
  1143.   :0 c
  1144.   * ^Subject:.john
  1145.   ! john@his.personal.emailaddress
  1146.  
  1147.   :0
  1148.   * ^Subject:.john
  1149.   ! john
  1150.  
  1151.   :0
  1152.   * ^From:.*newsletter@ibm.net
  1153.   ! freaker
  1154.  
  1155.   :0
  1156.   * ^FROM_DAEMON
  1157.   throwaway
  1158.   ______________________________________________________________________
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.   5.1.2.  the .procmailrc-footer file ..
  1166.  
  1167.   As mentioned above, this file needs to be as footer - since all data
  1168.   BELOW it won't be used to deliver - this footer contains the "bounce"
  1169.   code to bounce the users not found *ABOVE* this footer !. it is the
  1170.   ABSOLUTE end of the file !
  1171.  
  1172.  
  1173.        (*** < file > *** text ***) .procmailrc-footer
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.   ______________________________________________________________________
  1190.  
  1191.   :0
  1192.     |(/usr/bin/formail -r -k \
  1193.        -A"X-loop: mailservice@mydomain.dom "| \
  1194.          /usr/bin/gawk '{print }\
  1195.          /^/ && !HEADER \
  1196.            { system("/bin/cat nosuchuser"); \
  1197.            print"--" ;\
  1198.            HEADER=1 }' ) |\
  1199.            /usr/bin/sendmail -t
  1200.  
  1201.  
  1202.   exit
  1203.   ______________________________________________________________________
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209.  
  1210.   5.2.  addmail script
  1211.  
  1212.   This script will add a user to the header file, attach the header &
  1213.   footer to eachother - so it will be a complete .procmailrc file. the
  1214.   "#" (comments) are not really needed - and are for your info :).
  1215.  
  1216.  
  1217.        (*** < file > *** code ***)     addmail   (* chmod 500 *)
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.   ______________________________________________________________________
  1256.   #/bin/sh
  1257.   #
  1258.   # Copyright (c)1997 by Gunther Voet. rev 1.0.1
  1259.   # please leave the Copyright in it when it is distributed with any
  1260.   # system using this thingy ...
  1261.  
  1262.   echo ""
  1263.   echo "Addmail v1.0.1 by Gunther Voet, Freaker / TuC'97-98 (21/04/97)"
  1264.   echo ""
  1265.  
  1266.   if [ $1 ]; then
  1267.  
  1268.           if [ $2 ]; then
  1269.  
  1270.   # make a backup file !
  1271.  
  1272.           cp /home/mailserv/.procmailrc-header /home/mailserv/.procmailrc-backup
  1273.  
  1274.   # APPEND (>>) the information to the header file ...
  1275.  
  1276.           echo ":0" >> /home/mailserv/.procmailrc-header
  1277.           echo "* ^Subject:.$1" >> /home/mailserv/.procmailrc-header
  1278.           echo "! $2" >> /home/mailserv/.procmailrc-header
  1279.           echo "" >> /home/mailserv/.procmailrc-header
  1280.  
  1281.   # copy the header file to .procmailrc - and append the footer file to it !
  1282.  
  1283.           cat /home/mailserv/.procmailrc-header > /home/mailserv/.procmailrc
  1284.           cat /home/mailserv/.procmailrc-footer >> /home/mailserv/.procmailrc
  1285.  
  1286.   # make sure it is owned by "mailserv" and the read/write priveleges are ONLY
  1287.   # for the user "mailserv" itself ...
  1288.  
  1289.           chown mailserv /home/mailserv/.procmailrc
  1290.           chgrp users /home/mailserv/.procmailrc
  1291.           chmod 600 /home/mailserv/.procmailrc
  1292.   else
  1293.           echo "No DESTINATION mail address has been given ..."
  1294.   fi
  1295.  
  1296.   else
  1297.           echo "usage:"
  1298.           echo ""
  1299.           echo "syntax:  addmail from_user to_user(domain)"
  1300.           echo ""
  1301.           echo "example: addmail freaker freaker@myemail.dom"
  1302.           echo ""
  1303.   fi
  1304.   ______________________________________________________________________
  1305.  
  1306.  
  1307.  
  1308.  
  1309.   Now, this script will append the information of the user, as well the
  1310.   email address to the header file, it will copy it to the .procmailrc
  1311.   file, and will add the footer to it, so you got a complete .procmailrc
  1312.   to process the mail.  If you want to delete a user- just edit the
  1313.   .procmailrc-header file, and at the next user added it will be deleted
  1314.   at the .procmailrc. To do a instant delete, just delete the user from
  1315.   both the files .procmailrc & .procmailrc- header.
  1316.  
  1317.   I guess you are smart enough to write a script that'll automatically
  1318.   add your users when using both methods - when doing a "adduser" at
  1319.   your box.
  1320.  
  1321.   6.  Help! (sigh)
  1322.  
  1323.   Well, you need help - isn't :) ... hmm .. i could be sarcastic and
  1324.   just say "you could better do it again, 'coz it looks a messy enuf" -
  1325.   or .. i could help ... - I wrote down some common problems - IF you
  1326.   got any problem NOT listed in this HOWTO (section) - then mail me -
  1327.   and i'll put it in this howto even with your name/email addr in it :).
  1328.   **BEFORE** mailing to me - please look if you didn't forgot anything -
  1329.   and IF you want some help from me - send me the MOST DETAILED
  1330.   information - included the scripts & things you needed.  i DON'T need
  1331.   any binaries - since i won't run them.
  1332.  
  1333.  
  1334.   6.1.  The automation script just doesn't work:
  1335.  
  1336.  
  1337.   ╖  is it executable ?
  1338.  
  1339.   ╖  is your (default shell) located at /bin/sh ?
  1340.  
  1341.   6.2.  What do you mean by "anonymous mailserver"?
  1342.  
  1343.  
  1344.   ╖  Well, you could make accounts like "anon0001@yourdom.dom" - and
  1345.      forward it to another email address ... nobody needs to read the
  1346.      .procmailrc file, so YOU ONLY know the address !.
  1347.  
  1348.   6.3.  My cat died
  1349.  
  1350.  
  1351.   ╖  Well, next time don't print this HOWTO out on 200 gram papers,
  1352.      since it are 10 pages it would be 2KG for the cat - it is JUST TOO
  1353.      HEAVY !
  1354.  
  1355.   6.4.  My dog died
  1356.  
  1357.  
  1358.   ╖  hmm - can't do anything about that one - why askin' me ? ...  Just
  1359.      bury it ....
  1360.  
  1361.   6.5.  Linux?
  1362.  
  1363.  
  1364.   ╖  A free-unix - posix compatible - made by Linus Torvalds ... Why are
  1365.      you reading this if you even don't know what Linux is ?
  1366.  
  1367.   6.6.  Can you help me with finding a mail account?
  1368.  
  1369.  
  1370.   ╖  No! - this is a howto for YOUR side, i don't care about the side of
  1371.      your isp, nor how to get your email address.
  1372.  
  1373.   6.7.  Why is the "maybe later i'll make some addition ..." removed ?
  1374.  
  1375.  
  1376.   ╖  Read point 5.5 very carefully :) and you'll see why .. it's 'coz i
  1377.      needed to add it on general request :)
  1378.  
  1379.  
  1380.   6.8.  How do i get a "domain" ?
  1381.  
  1382.  
  1383.   ╖  Ask your local ISP/provider - he will help you with it. It could
  1384.      take days/ even weeks when asking to the Internic - your provider
  1385.      can help.
  1386.  
  1387.   6.9.  Why are you so f*cking lame using this?
  1388.  
  1389.  
  1390.   ╖  coz i don't want to spend money - and - 'coz i feel like being
  1391.      f*cking lame USING it - i *AM* using it - so why bother?
  1392.  
  1393.   6.10.  Nosuchuserfile?
  1394.  
  1395.  
  1396.   ╖  You can put in it what you want - as long you put some "needed"
  1397.      info so the original writer knows what happened with his "never
  1398.      delivered" mail.
  1399.  
  1400.   6.11.  Can my users write/send mail too?
  1401.  
  1402.  
  1403.   ╖  This has nothing to do with the system i explained to you, read the
  1404.      sendmail manual ... - this is to RECEIVE mail - to be "always
  1405.      available at an email address".
  1406.  
  1407.   6.12.  Does every user need a shell account at my server?
  1408.  
  1409.  
  1410.   ╖  Nope .. - but - it will be really hard for users not having
  1411.      internet access :) ... You could have a masq'd network - and use a
  1412.      computer connected to it - so the users can get their mail that
  1413.      way, or you can generate a link between a bulletin board and his
  1414.      mail, you could even forward it to a fidonet gate :) ... reasons
  1415.      enough not to give a shell!.
  1416.  
  1417.   6.13.  skeletion?
  1418.  
  1419.  
  1420.   ╖  i know it is a typo - but - i like this word better.
  1421.  
  1422.   6.14.  Addmail?
  1423.  
  1424.  
  1425.   ╖  No questions - for automation - you better be sure about what you
  1426.      are going to do ... since - it COULD be a trojan ya know :))) (it
  1427.      isn't but what means you need to know what scripting is before
  1428.      asking questions) It IS easy enough to interprete - that's even why
  1429.      i put the comments with it. *IF* you are going to distribute this
  1430.      script - leave my Copyright in it please ! thanks :).
  1431.  
  1432.   6.15.  Why are you so cruel?
  1433.  
  1434.  
  1435.   ╖  I am not cruel :) i am nice :) i am the nicest guy of the world, of
  1436.      the universe ! NOW SCRAM! (i just want to be complete in my HOWTO,
  1437.      and not TOO much "drifting away" from my original point in the doc
  1438.      - so :) that's all).
  1439.  
  1440.   6.16.  Didn't you get a complaint of excessive language ?
  1441.  
  1442.  
  1443.   ╖  Not yet, but, could be i'm filtering everything containing
  1444.      'excessive' and language :) i don't know :))
  1445.  
  1446.   6.17.  Why is this howto different than most others?
  1447.  
  1448.  
  1449.   ╖  coz sometimes reading plain howto's CAN be boring ... i wanted to
  1450.      add something next to it ...
  1451.  
  1452.  
  1453.   6.18.  locally my domain works, but remote it seems not to receive
  1454.  
  1455.  
  1456.   ╖  Check out your "sendmail.cw" file, since the domains NEED to be
  1457.      added in it !
  1458.  
  1459.   6.19.  My dog died
  1460.  
  1461.  
  1462.   ╖  the rulesets don't work, i can't receive any mail, or sendmail dies
  1463.      Refer to the new section "new sendmail" - and disregard the old
  1464.      sendmail tricks. The newer sendmail should be easier to use with
  1465.      virtual domains.
  1466.  
  1467.  
  1468.   7.  The End
  1469.  
  1470.   This sounds like the end ... If you find any unwanted bugs (or
  1471.   features :)), then leave some feedback ... any comments & suggestions
  1472.   -> mail them :).  if you are still bored after reading this, please go
  1473.   to: http://tuc.ml.org/  hehehe.
  1474.  
  1475.   My thanks go out to:
  1476.  
  1477.   Hannes van de Vel: for supporting me (hum) Tetsu Isaji: the japanese
  1478.   offline-mailing & notifying me about errors :) Greg Hankins: for
  1479.   notifying me about some errors in the sgml version.  Linus torvalds:
  1480.   of'course ... without his help this howto wouldn't be here!
  1481.  
  1482.  
  1483.  
  1484.  
  1485.  
  1486.  
  1487.  
  1488.  
  1489.  
  1490.  
  1491.  
  1492.  
  1493.  
  1494.  
  1495.  
  1496.  
  1497.  
  1498.  
  1499.  
  1500.  
  1501.  
  1502.  
  1503.  
  1504.  
  1505.  
  1506.  
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519.