home *** CD-ROM | disk | FTP | other *** search
- # Local configuration details for ftpmail.
- #
- # $Header: /a/swan/home/swan/staff/csg/lmjm/src/perl/mirror/ftpmail/RCS/config.pl,v 1.10 1993/04/25 20:27:48 lmjm Exp lmjm $
- # $Log: config.pl,v $
- # Revision 1.10 1993/04/25 20:27:48 lmjm
- # Added mail_overhead.
- #
- # Revision 1.9 1993/04/25 14:14:58 lmjm
- # Allow for multiple help files (one per language).
- #
- # Revision 1.8 1993/04/23 23:27:03 lmjm
- # Massive renaming for sys5.
- #
- # Revision 1.7 1993/04/23 17:23:37 lmjm
- # Renamed ftpmail-local-config.pl to ftpmail-config.pl
- # Made pathnames relative to $ftpmail_dir
- #
- # Revision 1.6 1993/04/20 20:15:37 lmjm
- # Don't attempt to reply to mail from ftpmail!
- # Allow for a message of the day file.
- #
- # Revision 1.5 1993/04/15 14:17:44 lmjm
- # Typos fixed.
- # Ignore system and admin mail on advice from Christophe
- #
- # Revision 1.4 1993/04/13 10:34:37 lmjm
- # Added more variables to tailor help messages.
- # Dont recommend using ftpmail-request
- # Changed job pausing.
- #
- # Revision 1.3 1993/03/30 20:32:21 lmjm
- # By default use sendmail.
- # By default use immediate.
- # Max user settable limit to 100 K.
- #
- # Revision 1.2 1993/03/23 21:40:13 lmjm
- # Now ftpmail_dir is ftpmail's home directory
- # Added sendmail, mime and batched processing
- # based on work by Christophe.Wolfhugel@grasp.insa-lyon.fr.
- #
-
- #-- Needs tailoring ----------------------------------------------------------
-
- # Parent directory of the system
- # This is now the home direcory of the ftpmail account.
- # $ftpmail_dir = "/src.doc.ic.ac.uk/public/ic.doc/ftpmail";
-
- # Default site to connect to
- $default_site = 'src.doc.ic.ac.uk';
-
- # My hostname for Mime multipart message ids and help messages
- $hostname = 'src.doc.ic.ac.uk';
-
- # ftpmail's full email address in help messages
- $ftpmail_email = "ftpmail@$hostname";
-
- # Managers email address in help messages
- $managers_email = "ukuug-soft@$hostname";
-
- # How to send mail - has "-s 'subj'" and the reply-to name appended
- # Or use sendmail - this is a much better option. Also the mime support
- # is only available under sendmail.
- # If you give the -f ftpmail-request then all mail will appear to be
- # sent by ftpmail-request. This means that it will require a mailbox or
- # alias. Also beware that a *LOT* of users submit requests to ftpmail by
- # replying to older messages to you will have to look out for this. Using
- # -f is therefor NOT recommended.
- #$mail_cmd = "/usr/lib/sendmail -t -odi -f ftpmail-request";
- $mail_cmd = "/usr/lib/sendmail -t -odi";
- # $mail_cmd = "/usr/ucb/mail -v ";
-
- # A dumber mailer is one which thinks:
- # mail 'Lee McLoughlin <lmjm@doc>' is a message to 3 accounts 'Lee', 'McLoughlin'
- # and '<lmjm@doc>. Most mailers these days are NOT dumb so leave this set to
- # 0.
- $dumb_mailer = 0;
-
- # ftpmail can process jobs in one of two ways
- # immediate: after each get/dir/ls mail the result back to the user
- # non-immedaite: keep all the files received by get/dir/ls till the
- # entire jobs is done then mail the results back. This may
- # use a lot of space.
- $immediate = 0;
-
- # Cleanup input copies once queued. If this is set to 0 then
- # copies of all input will be left lying around - so cron will have
- # to clean it.
- $cleanup = 1;
-
- # If this file exists exit before the next parse of the queue.
- $ftpmail_scan_end = "scan-end";
-
- # If set to 1 limit to just login=anonymous, passwd=-ftpmail/$replyto
- $restricted = 0;
-
- # TODO:
- # If set is the name of a file containing restrictions on when to
- # attempt to connect to certain sites. This can be used to allow only
- # traffic to the local archive during busy times but allow connections
- # everywhere the rest of the time.
- # Each line in the file is either a comment '#.*' or
- # day of week: mon|tue|wed|thur|fri|say|sun, an hour range and a site pattern
- # eg: mon|tue|wed|thru|fri 9-18 src.doc.ic.ac.uk
- # only try jobs to the local site during working hours.
- $time_restrictions = "restrictions";
-
- # TODO:
- # Only allow ftp sessions to these sites - default is to all
- # it is a regexp matching the sites
- # $ftp_permitted = '^.*\.doc\.ic\.ac\.uk$';
-
- #-- needs checking -----------------------------------------------------------
-
- # Paths for various commands
- $btoa = '/usr/local/bin/btoa';
- $uuencode = '/usr/local/bin/uuencode';
- $compress = '/usr/ucb/compress';
-
- # -1 because the higher settings take a lot more time for only
- # a little improvement.
- $gzip = '/usr/local/bin/gzip -1';
-
- # Mime stuff
- $mime_version = '1.0';
- $mmencode = '/usr/local/mailcap/mmencode';
-
- # Any reply-to name matching this pattern should not be replied to
- $dont_reply_to = 'ftpmail|postmaster|mmdf|mailer-daemon|system|admin';
-
- #-- may tweek ---------------------------------------------------------------
-
- # How long to pause between parses of the queue
- $between_runs_pause = 60; # seconds
-
- # Max no of commands in a job
- $max_cmds = 100;
-
- # If a job fails how long to pause before retrying
- $retry_pause = 6 * (60 * 60); # 6 hours
-
- # Never try a job more than this many times.
- $max_tries = 3;
-
- # Pause for this much after each mail sent to avoid flooding the email
- # system. Only set to 0 if using mail does NOT submit in background -
- # so sendmail should have mail_pause set to 0.
- $mail_pause = 0; # seconds
-
- # Files bigger than this are split up - can be reset by 'size num' in job
- $def_max_size = 60 * 1024;
-
- # Upper limit on what the user can ask for in a size command
- $max_size = 100 * 1024;
-
- # Asking to split up files smaller than this is ignored
- $min_size = 10 * 1024;
-
- # This is the size, in bytes, of the extra bits that your mailer adds
- # to messages. It usuall the size of the mail headers (From:..,Date:...)
- # Be careful is you have an X.400 mailer as the overheads may be larger.
- $mail_overhead = 2048;
-
- # Files bigger than this are aborted - to avoid overflowing the
- # mail system
- $max_processing_size = 10 * 1024 * 1024;
-
- # When trying to connect to the ftp daemon
- $ftp_port = 21;
- $retry_call = 1; # Do retry
- $retry_attempts = 1; # but only ONCE
-
-
- #-- probably OK ------------------------------------------------------------
-
- # All file/directory names are relative to ftpmail_dir
-
- # Where temp files are stored (including files being pulled back from
- # remote sites).
- $tmpdir = "tmp";
-
- # Where the ftpmail queue is stored.
- $quedir = "queue";
-
- # Where copies of the input are kept (you have to remove these manually
- # or via a cron job).
- $incopydir = "tmp";
-
- # Where the authorisation file resides
- $authfile = "auth";
-
- # Where to keep track of goings on!
- $logfile = "log";
-
- # Directory containing help files. helpdir/help is the
- # default one returned. I have this as a symlink to english.
- $helpdir = "help";
-
- # Message of the day file. If present then it is emailed back at
- # the start of any email response.
- $motdfile = "motd";
-
- # This file is used to lock processing by dq
- # Not releative to $ftpmail_dir. Keep it in /tmp so it gets wiped automatically
- # on a system crash.
- $lock = "/tmp/ftpmail.lock";
-
- # Used to log an ftp session (this is email back to the user)
- $xferlog = "$tmpdir/xferlog";
-
- # Temp file where get's and dir's copy into before being emailed
- $incoming = "$tmpdir/infile";
-
- #-- leave at very end-----------------------------------------------------
-
- # Make sure this package returns TRUE
- 1;
-