1*86d7f5d3SJohn Marino /* Copyright 1988,1990,1993,1994 by Paul Vixie 2*86d7f5d3SJohn Marino * All rights reserved 3*86d7f5d3SJohn Marino * 4*86d7f5d3SJohn Marino * Distribute freely, except: don't remove my name from the source or 5*86d7f5d3SJohn Marino * documentation (don't take credit for my work), mark your changes (don't 6*86d7f5d3SJohn Marino * get me blamed for your possible bugs), don't alter or remove this 7*86d7f5d3SJohn Marino * notice. May be sold if buildable source is provided to buyer. No 8*86d7f5d3SJohn Marino * warrantee of any kind, express or implied, is included with this 9*86d7f5d3SJohn Marino * software; use at your own risk, responsibility for damages (if any) to 10*86d7f5d3SJohn Marino * anyone resulting from the use of this software rests entirely with the 11*86d7f5d3SJohn Marino * user. 12*86d7f5d3SJohn Marino * 13*86d7f5d3SJohn Marino * Send bug reports, bug fixes, enhancements, requests, flames, etc., and 14*86d7f5d3SJohn Marino * I'll try to keep a version up to date. I can be reached as follows: 15*86d7f5d3SJohn Marino * Paul Vixie <paul@vix.com> uunet!decwrl!vixie!paul 16*86d7f5d3SJohn Marino */ 17*86d7f5d3SJohn Marino 18*86d7f5d3SJohn Marino /* config.h - configurables for Vixie Cron 19*86d7f5d3SJohn Marino * 20*86d7f5d3SJohn Marino * $FreeBSD: src/usr.sbin/cron/cron/config.h,v 1.8 1999/08/28 01:15:49 peter Exp $ 21*86d7f5d3SJohn Marino * $DragonFly: src/usr.sbin/cron/cron/config.h,v 1.2 2003/06/17 04:29:53 dillon Exp $ 22*86d7f5d3SJohn Marino */ 23*86d7f5d3SJohn Marino 24*86d7f5d3SJohn Marino #if !defined(_PATH_SENDMAIL) 25*86d7f5d3SJohn Marino # define _PATH_SENDMAIL "/usr/lib/sendmail" 26*86d7f5d3SJohn Marino #endif /*SENDMAIL*/ 27*86d7f5d3SJohn Marino 28*86d7f5d3SJohn Marino /* 29*86d7f5d3SJohn Marino * these are site-dependent 30*86d7f5d3SJohn Marino */ 31*86d7f5d3SJohn Marino 32*86d7f5d3SJohn Marino #ifndef DEBUGGING 33*86d7f5d3SJohn Marino #define DEBUGGING 1 /* 1 or 0 -- do you want debugging code built in? */ 34*86d7f5d3SJohn Marino #endif 35*86d7f5d3SJohn Marino 36*86d7f5d3SJohn Marino /* 37*86d7f5d3SJohn Marino * choose one of these MAILCMD commands. I use 38*86d7f5d3SJohn Marino * /bin/mail for speed; it makes biff bark but doesn't 39*86d7f5d3SJohn Marino * do aliasing. /usr/lib/sendmail does aliasing but is 40*86d7f5d3SJohn Marino * a hog for short messages. aliasing is not needed 41*86d7f5d3SJohn Marino * if you make use of the MAILTO= feature in crontabs. 42*86d7f5d3SJohn Marino * (hint: MAILTO= was added for this reason). 43*86d7f5d3SJohn Marino */ 44*86d7f5d3SJohn Marino 45*86d7f5d3SJohn Marino #define MAILCMD _PATH_SENDMAIL /*-*/ 46*86d7f5d3SJohn Marino #define MAILARGS "%s -FCronDaemon -odi -oem -oi -t" /*-*/ 47*86d7f5d3SJohn Marino /* -Fx = set full-name of sender 48*86d7f5d3SJohn Marino * -odi = Option Deliverymode Interactive 49*86d7f5d3SJohn Marino * -oem = Option Errors Mailedtosender 50*86d7f5d3SJohn Marino * -oi = Option dot message terminator 51*86d7f5d3SJohn Marino * -t = read recipients from header of message 52*86d7f5d3SJohn Marino */ 53*86d7f5d3SJohn Marino 54*86d7f5d3SJohn Marino /* #define MAILCMD "/bin/mail" */ /*-*/ 55*86d7f5d3SJohn Marino /* #define MAILARGS "%s -d %s" */ /*-*/ 56*86d7f5d3SJohn Marino /* -d = undocumented but common flag: deliver locally? 57*86d7f5d3SJohn Marino */ 58*86d7f5d3SJohn Marino 59*86d7f5d3SJohn Marino /* #define MAILCMD "/usr/mmdf/bin/submit" */ /*-*/ 60*86d7f5d3SJohn Marino /* #define MAILARGS "%s -mlrxto %s" */ /*-*/ 61*86d7f5d3SJohn Marino 62*86d7f5d3SJohn Marino /* #define MAIL_DATE */ /*-*/ 63*86d7f5d3SJohn Marino /* should we include an ersatz Date: header in 64*86d7f5d3SJohn Marino * generated mail? if you are using sendmail 65*86d7f5d3SJohn Marino * for MAILCMD, it is better to let sendmail 66*86d7f5d3SJohn Marino * generate the Date: header. 67*86d7f5d3SJohn Marino */ 68*86d7f5d3SJohn Marino 69*86d7f5d3SJohn Marino /* if ALLOW_FILE and DENY_FILE are not defined or are 70*86d7f5d3SJohn Marino * defined but neither exists, should crontab(1) be 71*86d7f5d3SJohn Marino * usable only by root? 72*86d7f5d3SJohn Marino */ 73*86d7f5d3SJohn Marino /* #define ALLOW_ONLY_ROOT */ /*-*/ 74*86d7f5d3SJohn Marino 75*86d7f5d3SJohn Marino /* if you want to use syslog(3) instead of appending 76*86d7f5d3SJohn Marino * to CRONDIR/LOG_FILE (/var/cron/log, e.g.), define 77*86d7f5d3SJohn Marino * SYSLOG here. Note that quite a bit of logging 78*86d7f5d3SJohn Marino * info is written, and that you probably don't want 79*86d7f5d3SJohn Marino * to use this on 4.2bsd since everything goes in 80*86d7f5d3SJohn Marino * /usr/spool/mqueue/syslog. On 4.[34]bsd you can 81*86d7f5d3SJohn Marino * tell /etc/syslog.conf to send cron's logging to 82*86d7f5d3SJohn Marino * a separate file. 83*86d7f5d3SJohn Marino * 84*86d7f5d3SJohn Marino * Note that if this and LOG_FILE in "pathnames.h" 85*86d7f5d3SJohn Marino * are both defined, then logging will go to both 86*86d7f5d3SJohn Marino * places. 87*86d7f5d3SJohn Marino */ 88*86d7f5d3SJohn Marino #define SYSLOG /*-*/ 89