19147Seric /* 234920Sbostic * Copyright (c) 1983 Eric P. Allman 362522Sbostic * Copyright (c) 1988, 1993 462522Sbostic * The Regents of the University of California. All rights reserved. 533728Sbostic * 642825Sbostic * %sccs.include.redist.c% 733728Sbostic * 8*66318Seric * @(#)conf.h 8.95 (Berkeley) 03/06/94 933728Sbostic */ 109147Seric 1122726Sdist /* 1222726Sdist ** CONF.H -- All user-configurable parameters for sendmail 1322726Sdist */ 149147Seric 1557232Seric # include <sys/param.h> 1664705Seric # include <sys/types.h> 1759389Seric # include <sys/stat.h> 1864380Seric # include <sys/file.h> 1964500Seric # include <sys/wait.h> 2058689Seric # include <fcntl.h> 2164035Seric # include <signal.h> 2257232Seric 2363902Seric /********************************************************************** 249147Seric ** Table sizes, etc.... 259147Seric ** There shouldn't be much need to change these.... 2663902Seric **********************************************************************/ 279147Seric 2859303Seric # define MAXLINE 2048 /* max line length */ 2924945Seric # define MAXNAME 256 /* max length of a name */ 309147Seric # define MAXPV 40 /* max # of parms to mailers */ 3159303Seric # define MAXATOM 200 /* max atoms per address */ 329147Seric # define MAXMAILERS 25 /* maximum mailers known to system */ 3357143Seric # define MAXRWSETS 100 /* max # of sets of rewriting rules */ 349147Seric # define MAXPRIORITIES 25 /* max values for Precedence: field */ 3557143Seric # define MAXMXHOSTS 20 /* max # of MX records */ 3652106Seric # define SMTPLINELIM 990 /* maximum SMTP line length */ 3757232Seric # define MAXKEY 128 /* maximum size of a database key */ 3857232Seric # define MEMCHUNKSIZE 1024 /* chunk size for memory allocation */ 3959056Seric # define MAXUSERENVIRON 100 /* max envars saved, must be >= 3 */ 4059667Seric # define MAXALIASDB 12 /* max # of alias databases */ 4157143Seric 4257143Seric # ifndef QUEUESIZE 4357143Seric # define QUEUESIZE 1000 /* max # of jobs per queue run */ 4457143Seric # endif 4557143Seric 4663902Seric /********************************************************************** 479147Seric ** Compilation options. 4825673Seric ** 4925673Seric ** #define these if they are available; comment them out otherwise. 5063902Seric **********************************************************************/ 519147Seric 5225673Seric # define LOG 1 /* enable logging */ 5325673Seric # define UGLYUUCP 1 /* output ugly UUCP From lines */ 5464813Seric # define NETUNIX 1 /* include unix domain support */ 5558778Seric # define NETINET 1 /* include internet support */ 5625673Seric # define SETPROCTITLE 1 /* munge argv to display current status */ 5735651Seric # define NAMED_BIND 1 /* use Berkeley Internet Domain Server */ 5853735Seric # define MATCHGECOS 1 /* match user names from gecos field */ 5963753Seric # define XDEBUG 1 /* enable extended debugging */ 6036483Sbostic 6156337Seric # ifdef NEWDB 6256337Seric # define USERDB 1 /* look in user database (requires NEWDB) */ 6356337Seric # endif 6456337Seric 6564032Seric /* 6664944Seric ** Most systems have symbolic links today, so default them on. You 6764944Seric ** can turn them off by #undef'ing this below. 6864944Seric */ 6964944Seric 7064944Seric # define HASLSTAT 1 /* has lstat(2) call */ 7164944Seric 7264962Seric /* 7364962Seric ** General "standard C" defines. 7464962Seric ** 7564962Seric ** These may be undone later, to cope with systems that claim to 7664962Seric ** be Standard C but aren't. Gcc is the biggest offender -- it 7764962Seric ** doesn't realize that the library is part of the language. 7864962Seric ** 7964962Seric ** Life would be much easier if we could get rid of this sort 8064962Seric ** of bozo problems. 8164962Seric */ 8264962Seric 8364962Seric #ifdef __STDC__ 8464962Seric # define HASSETVBUF 1 /* we have setvbuf(3) in libc */ 8564962Seric #endif 8664962Seric 8763902Seric /********************************************************************** 8859023Seric ** Operating system configuration. 8959023Seric ** 9059023Seric ** Unless you are porting to a new OS, you shouldn't have to 9159023Seric ** change these. 9263902Seric **********************************************************************/ 9356823Seric 9463787Seric /* 9563787Seric ** Per-Operating System defines 9663787Seric */ 9763787Seric 9864314Seric 9963902Seric /* 10065565Seric ** HP-UX -- tested for 8.07, 9.00, and 9.01. 10163902Seric */ 10263902Seric 10359348Seric # ifdef __hpux 10464727Seric /* avoid m_flags conflict between db.h & sys/sysmacros.h on HP 300 */ 10564727Seric # undef m_flags 10663787Seric # define SYSTEM5 1 /* include all the System V defines */ 10764035Seric # define HASINITGROUPS 1 /* has initgroups(3) call */ 10864035Seric # define HASSETREUID 1 /* has setreuid(2) call */ 10965982Seric # define setreuid(r, e) setresuid(r, e, -1) 11063962Seric # define LA_TYPE LA_FLOAT 11165749Seric # define SFS_TYPE SFS_VFS /* use <sys/vfs.h> statfs() implementation */ 11265354Seric # define GIDSET_T gid_t 11363962Seric # define _PATH_UNIX "/hp-ux" 11465354Seric # ifndef _PATH_SENDMAILCF 11565354Seric # define _PATH_SENDMAILCF "/usr/lib/sendmail.cf" 11665354Seric # endif 11765167Seric # ifndef IDENTPROTO 11865167Seric # define IDENTPROTO 0 /* TCP/IP implementation is broken */ 11956823Seric # endif 12065581Seric # ifndef HASGETUSERSHELL 12165581Seric # define HASGETUSERSHELL 0 /* getusershell(3) causes core dumps */ 12265581Seric # endif 12365504Seric # define syslog hard_syslog 12465581Seric # ifdef __STDC__ 12565581Seric extern int syslog(int, char *, ...); 12665167Seric # endif 12765581Seric # endif 12856823Seric 12964314Seric 13063902Seric /* 13163902Seric ** IBM AIX 3.x -- actually tested for 3.2.3 13263902Seric */ 13363902Seric 13460224Seric # ifdef _AIX3 13564035Seric # define HASINITGROUPS 1 /* has initgroups(3) call */ 13664840Seric # define HASUNAME 1 /* use System V uname(2) system call */ 13765211Seric # define HASGETUSERSHELL 0 /* does not have getusershell(3) call */ 13860219Seric # define FORK fork /* no vfork primitive available */ 13964494Seric # undef SETPROCTITLE /* setproctitle confuses AIX */ 14065749Seric # define SFS_TYPE SFS_STATFS /* use <sys/statfs.h> statfs() impl */ 14160219Seric # endif 14260219Seric 14364314Seric 14463902Seric /* 14563902Seric ** Silicon Graphics IRIX 14663902Seric ** 14763965Seric ** Compiles on 4.0.1. 14863902Seric */ 14963902Seric 15063753Seric # ifdef IRIX 15164727Seric # include <sys/sysmacros.h> 15264035Seric # define HASSETREUID 1 /* has setreuid(2) call */ 15364035Seric # define HASINITGROUPS 1 /* has initgroups(3) call */ 15465211Seric # define HASGETUSERSHELL 0 /* does not have getusershell(3) call */ 15563753Seric # define FORK fork /* no vfork primitive available */ 15664562Seric # define WAITUNION 1 /* use "union wait" as wait argument type */ 15764155Seric # define setpgid BSDsetpgrp 15863937Seric # define GIDSET_T gid_t 15965749Seric # define SFS_TYPE SFS_4ARGS /* four argument statfs() call */ 16063753Seric # endif 16163753Seric 16263902Seric 16363902Seric /* 16464813Seric ** SunOS and Solaris 16564813Seric ** 16664813Seric ** Tested on SunOS 4.1.x (a.k.a. Solaris 1.1.x) and 16764813Seric ** Solaris 2.2 (a.k.a. SunOS 5.2). 16863902Seric */ 16963902Seric 17063787Seric #if defined(sun) && !defined(BSD) 17159074Seric 17264035Seric # define HASINITGROUPS 1 /* has initgroups(3) call */ 17364813Seric # define HASUNAME 1 /* use System V uname(2) system call */ 17465211Seric # define HASGETUSERSHELL 1 /* DOES have getusershell(3) call in libc */ 17565749Seric # define LA_TYPE LA_INT 17660564Seric 17764842Seric # ifdef SOLARIS_2_3 17864842Seric # define SOLARIS 17964842Seric # endif 18064842Seric 18160602Seric # ifdef SOLARIS 18263902Seric /* Solaris 2.x (a.k.a. SunOS 5.x) */ 18365222Seric # ifndef __svr4__ 18465222Seric # define __svr4__ /* use all System V Releae 4 defines below */ 18565222Seric # endif 18663787Seric # include <sys/time.h> 18764832Seric # define gethostbyname solaris_gethostbyname /* get working version */ 18864832Seric # define gethostbyaddr solaris_gethostbyaddr /* get working version */ 18965172Seric # define GIDSET_T gid_t 19065189Seric # ifndef _PATH_UNIX 19165189Seric # define _PATH_UNIX "/kernel/unix" 19265189Seric # endif 19363962Seric # ifndef _PATH_SENDMAILCF 19463962Seric # define _PATH_SENDMAILCF "/etc/mail/sendmail.cf" 19564072Seric # endif 19664072Seric # ifndef _PATH_SENDMAILPID 19763962Seric # define _PATH_SENDMAILPID "/etc/mail/sendmail.pid" 19863962Seric # endif 19966022Seric # ifndef SYSLOG_BUFSIZE 20066022Seric # define SYSLOG_BUFSIZE 1024 /* allow full size syslog buffer */ 20166022Seric # endif 20263787Seric 20360602Seric # else 20465105Seric /* SunOS 4.0.3 or 4.1.x */ 20565189Seric # define HASSETREUID 1 /* has setreuid(2) call */ 20665830Seric # ifndef HASFLOCK 20765830Seric # define HASFLOCK 1 /* has flock(2) call */ 20865830Seric # endif 20965749Seric # define SFS_TYPE SFS_VFS /* use <sys/vfs.h> statfs() implementation */ 21060564Seric # include <vfork.h> 21163787Seric 21265105Seric # ifdef SUNOS403 21365105Seric /* special tweaking for SunOS 4.0.3 */ 21465105Seric # include <malloc.h> 21565105Seric # define SYS5SIGNALS 1 /* SysV signal semantics -- reset on each sig */ 21665105Seric # define WAITUNION 1 /* use "union wait" as wait argument type */ 21765105Seric # undef WIFEXITED 21865105Seric # undef WEXITSTATUS 21965105Seric # undef HASUNAME 22065105Seric # define setpgid setpgrp 22165105Seric typedef int pid_t; 22265105Seric extern char *getenv(); 22365105Seric 22465105Seric # endif 22560564Seric # endif 22659023Seric #endif 22759023Seric 22864718Seric /* 22964813Seric ** DG/UX 23064813Seric ** 23164813Seric ** Tested on 5.4.2 23264718Seric */ 23364314Seric 23464718Seric #ifdef DGUX 23564718Seric # define SYSTEM5 1 23664718Seric # define LA_TYPE LA_SUBR 23764718Seric # define HASSETREUID 1 /* has setreuid(2) call */ 23864718Seric # define HASUNAME 1 /* use System V uname(2) system call */ 23964718Seric # define HASSETSID 1 /* has Posix setsid(2) call */ 24064718Seric # define HASINITGROUPS 1 /* has initgroups(3) call */ 24166036Seric # define HASGETUSERSHELL 0 /* does not have getusershell(3) */ 24265167Seric # ifndef IDENTPROTO 24365167Seric # define IDENTPROTO 0 /* TCP/IP implementation is broken */ 24465167Seric # endif 24564718Seric # undef SETPROCTITLE 24665749Seric # define SFS_TYPE SFS_4ARGS /* four argument statfs() call */ 24764813Seric 24864813Seric /* these include files must be included early on DG/UX */ 24964813Seric # include <netinet/in.h> 25064813Seric # include <arpa/inet.h> 25164813Seric 25264718Seric # define inet_addr dgux_inet_addr 25364718Seric extern long dgux_inet_addr(); 25464718Seric #endif 25564718Seric 25664718Seric 25763902Seric /* 25863902Seric ** Digital Ultrix 4.2A or 4.3 25964264Seric ** 26064264Seric ** Apparently, fcntl locking is broken on 4.2A, in that locks are 26164264Seric ** not dropped when the process exits. This causes major problems, 26264264Seric ** so flock is the only alternative. 26363902Seric */ 26463902Seric 26560564Seric #ifdef ultrix 26664035Seric # define HASSETREUID 1 /* has setreuid(2) call */ 26763962Seric # define HASUNSETENV 1 /* has unsetenv(3) call */ 26864035Seric # define HASINITGROUPS 1 /* has initgroups(3) call */ 26966242Seric # define HASUNAME 1 /* use System V uname(2) system call */ 27065830Seric # ifndef HASFLOCK 27165830Seric # define HASFLOCK 1 /* has flock(2) call */ 27265830Seric # endif 27365211Seric # define HASGETUSERSHELL 0 /* does not have getusershell(3) call */ 274*66318Seric # define BROKEN_RES_SEARCH 1 /* res_search(unknown) returns h_errno=0 */ 27565135Seric # ifdef vax 27665135Seric # define LA_TYPE LA_FLOAT 27765135Seric # else 27865135Seric # define LA_TYPE LA_INT 27965135Seric # define LA_AVENRUN "avenrun" 28065135Seric # endif 28165749Seric # define SFS_TYPE SFS_MOUNT /* use <sys/mount.h> statfs() impl */ 28265167Seric # ifndef IDENTPROTO 28365167Seric # define IDENTPROTO 0 /* TCP/IP implementation is broken */ 28465167Seric # endif 28560564Seric #endif 28660564Seric 28764314Seric 28863902Seric /* 28963902Seric ** OSF/1 (tested on Alpha) 29063902Seric */ 29163902Seric 29263787Seric #ifdef __osf__ 29363962Seric # define HASUNSETENV 1 /* has unsetenv(3) call */ 29464035Seric # define HASSETREUID 1 /* has setreuid(2) call */ 29564035Seric # define HASINITGROUPS 1 /* has initgroups(3) call */ 29666226Seric # ifndef HASFLOCK 29765830Seric # define HASFLOCK 1 /* has flock(2) call */ 29865830Seric # endif 29963962Seric # define LA_TYPE LA_INT 30065749Seric # define SFS_TYPE SFS_MOUNT /* use <sys/mount.h> statfs() impl */ 30164813Seric # ifndef _PATH_SENDMAILPID 30265504Seric # define _PATH_SENDMAILPID "/var/run/sendmail.pid" 30364813Seric # endif 30459287Seric #endif 30559287Seric 30664314Seric 30763902Seric /* 30863902Seric ** NeXTstep 30963902Seric */ 31063902Seric 31164076Seric #ifdef NeXT 31264035Seric # define HASINITGROUPS 1 /* has initgroups(3) call */ 31365830Seric # ifndef HASFLOCK 31465830Seric # define HASFLOCK 1 /* has flock(2) call */ 31565830Seric # endif 31664125Seric # define NEEDGETOPT 1 /* need a replacement for getopt(3) */ 31764563Seric # define WAITUNION 1 /* use "union wait" as wait argument type */ 31863753Seric # define sleep sleepX 31964155Seric # define setpgid setpgrp 32064295Seric # ifndef LA_TYPE 32164295Seric # define LA_TYPE LA_MACH 32264295Seric # endif 32365749Seric # define SFS_TYPE SFS_VFS /* use <sys/vfs.h> statfs() implementation */ 32464500Seric # ifndef _POSIX_SOURCE 32564035Seric typedef int pid_t; 32664500Seric # undef WEXITSTATUS 32764500Seric # undef WIFEXITED 32864500Seric # endif 32964072Seric # ifndef _PATH_SENDMAILCF 33064072Seric # define _PATH_SENDMAILCF "/etc/sendmail/sendmail.cf" 33164072Seric # endif 33264072Seric # ifndef _PATH_SENDMAILPID 33364072Seric # define _PATH_SENDMAILPID "/etc/sendmail/sendmail.pid" 33464072Seric # endif 33559288Seric #endif 33659288Seric 33764314Seric 33863902Seric /* 33963962Seric ** 4.4 BSD 34064831Seric ** 34164831Seric ** See also BSD defines. 34263902Seric */ 34363902Seric 34460568Seric #ifdef BSD4_4 34564072Seric # define HASUNSETENV 1 /* has unsetenv(3) call */ 34660568Seric # include <sys/cdefs.h> 34763838Seric # define ERRLIST_PREDEFINED /* don't declare sys_errlist */ 34864072Seric # ifndef LA_TYPE 34964072Seric # define LA_TYPE LA_SUBR 35064072Seric # endif 35165749Seric # define SFS_TYPE SFS_MOUNT /* use <sys/mount.h> statfs() impl */ 35260568Seric #endif 35360568Seric 35464314Seric 35563902Seric /* 35665982Seric ** BSD/386 (all versions) 35765982Seric ** From Tony Sanders, BSDI 35865982Seric */ 35965982Seric 36065982Seric #ifdef __bsdi__ 36165982Seric # define HASUNSETENV 1 /* has the unsetenv(3) call */ 36265982Seric # define HASSETSID 1 /* has the setsid(2) POSIX syscall */ 36366030Seric # define SFS_TYPE SFS_MOUNT /* use <sys/mount.h> statfs() impl */ 36465982Seric # if defined(_BSDI_VERSION) && _BSDI_VERSION >= 199312 36565982Seric # define HASSETPROCTITLE 1 /* setproctitle is in libc */ 36665982Seric # else 36765982Seric # define SETPROCTITLE 1 36865982Seric # endif 36965982Seric # include <sys/cdefs.h> 37065982Seric # define ERRLIST_PREDEFINED /* don't declare sys_errlist */ 37165982Seric # ifndef LA_TYPE 37265982Seric # define LA_TYPE LA_SUBR 37365982Seric # endif 37465982Seric #endif 37565982Seric 37665982Seric 37765982Seric 37865982Seric /* 37965049Seric ** 386BSD / FreeBSD 1.0E / NetBSD (all architectures, all versions) 38064733Seric ** 38164733Seric ** 4.3BSD clone, closer to 4.4BSD 38264831Seric ** 38364831Seric ** See also BSD defines. 38464733Seric */ 38564733Seric 38665049Seric #if defined(__386BSD__) || defined(__FreeBSD__) || defined(__NetBSD__) 38764733Seric # define HASUNSETENV 1 /* has unsetenv(3) call */ 38864733Seric # define HASSETSID 1 /* has the setsid(2) POSIX syscall */ 38964733Seric # include <sys/cdefs.h> 39064733Seric # define ERRLIST_PREDEFINED /* don't declare sys_errlist */ 39164733Seric # ifndef LA_TYPE 39264733Seric # define LA_TYPE LA_SUBR 39364733Seric # endif 39465749Seric # define SFS_TYPE SFS_MOUNT /* use <sys/mount.h> statfs() impl */ 39564733Seric #endif 39664733Seric 39764733Seric 39864733Seric /* 39964813Seric ** Mach386 40064813Seric ** 40164813Seric ** For mt Xinu's Mach386 system. 40264813Seric */ 40364813Seric 40464813Seric #if defined(MACH) && defined(i386) 40564813Seric # define MACH386 1 40664813Seric # define HASUNSETENV 1 /* has unsetenv(3) call */ 40764813Seric # define HASINITGROUPS 1 /* has initgroups(3) call */ 40866226Seric # ifndef HASFLOCK 40965830Seric # define HASFLOCK 1 /* has flock(2) call */ 41065830Seric # endif 41164813Seric # define NEEDGETOPT 1 /* need a replacement for getopt(3) */ 41264813Seric # define NEEDSTRTOL 1 /* need the strtol() function */ 41364813Seric # define setpgid setpgrp 41464813Seric # ifndef LA_TYPE 41564813Seric # define LA_TYPE LA_FLOAT 41664813Seric # endif 41765749Seric # define SFS_TYPE SFS_VFS /* use <sys/vfs.h> statfs() implementation */ 41864962Seric # undef HASSETVBUF /* don't actually have setvbuf(3) */ 41964813Seric # undef WEXITSTATUS 42064813Seric # undef WIFEXITED 42164813Seric # ifndef _PATH_SENDMAILCF 42264813Seric # define _PATH_SENDMAILCF "/usr/lib/sendmail.cf" 42364813Seric # endif 42464813Seric # ifndef _PATH_SENDMAILPID 42564813Seric # define _PATH_SENDMAILPID "/etc/sendmail.pid" 42664813Seric # endif 42764813Seric #endif 42864813Seric 42964813Seric 43064813Seric /* 43163969Seric ** 4.3 BSD -- this is for very old systems 43263969Seric ** 43365949Seric ** Should work for mt Xinu MORE/BSD and Mips UMIPS-BSD 2.1. 43465949Seric ** 43563969Seric ** You'll also have to install a new resolver library. 43663969Seric ** I don't guarantee that support for this environment is complete. 43763969Seric */ 43863969Seric 43965949Seric #if defined(oldBSD43) || defined(MORE_BSD) || defined(umipsbsd) 44063969Seric # define NEEDVPRINTF 1 /* need a replacement for vprintf(3) */ 44163969Seric # define NEEDGETOPT 1 /* need a replacement for getopt(3) */ 44263970Seric # define ARBPTR_T char * 44364155Seric # define setpgid setpgrp 44463969Seric # ifndef LA_TYPE 44563969Seric # define LA_TYPE LA_FLOAT 44663969Seric # endif 44763969Seric # ifndef _PATH_SENDMAILCF 44863969Seric # define _PATH_SENDMAILCF "/usr/lib/sendmail.cf" 44963969Seric # endif 45065167Seric # ifndef IDENTPROTO 45165167Seric # define IDENTPROTO 0 /* TCP/IP implementation is broken */ 45265167Seric # endif 45364834Seric # undef WEXITSTATUS 45464834Seric # undef WIFEXITED 45564834Seric typedef short pid_t; 45664834Seric extern int errno; 45763969Seric #endif 45863969Seric 45964314Seric 46063969Seric /* 46163902Seric ** SCO Unix 46265087Seric ** 46365087Seric ** This includes two parts -- the first is for SCO Open Server 3.2v4 46465087Seric ** (contributed by Philippe Brand <phb@colombo.telesys-innov.fr>). 46565087Seric ** The second is, I believe, for an older version. 46663902Seric */ 46763902Seric 46865087Seric #ifdef _SCO_unix_4_2 46965087Seric # define _SCO_unix_ 47065087Seric # define HASSETREUID 1 /* has setreuid(2) call */ 47165087Seric # define _PATH_UNIX "/unix" 47265087Seric # ifndef _PATH_SENDMAILCF 47365087Seric # define _PATH_SENDMAILCF "/usr/lib/sendmail.cf" 47465087Seric # endif 47565087Seric # ifndef _PATH_SENDMAILPID 47665087Seric # define _PATH_SENDMAILPID "/etc/sendmail.pid" 47765087Seric # endif 47865087Seric #endif 47965087Seric 48063838Seric #ifdef _SCO_unix_ 48163838Seric # define SYSTEM5 1 /* include all the System V defines */ 48264035Seric # define SYS5SIGNALS 1 /* SysV signal semantics -- reset on each sig */ 48365212Seric # define HASGETUSERSHELL 0 /* does not have getusershell(3) call */ 48463838Seric # define FORK fork 48563838Seric # define MAXPATHLEN PATHSIZE 48664718Seric # define LA_TYPE LA_SHORT 48765749Seric # define SFS_TYPE SFS_STATFS /* use <sys/statfs.h> statfs() impl */ 48864813Seric # undef NETUNIX /* no unix domain socket support */ 48963838Seric #endif 49063838Seric 49164314Seric 49263962Seric /* 49363962Seric ** ConvexOS 11.0 and later 49465949Seric ** 49565949Seric ** "Todd C. Miller" <millert@mroe.cs.colorado.edu> claims this 49665949Seric ** works on 9.1 as well. 49763962Seric */ 49863962Seric 49963962Seric #ifdef _CONVEX_SOURCE 50063977Seric # define BSD 1 /* include all the BSD defines */ 50163977Seric # define HASUNAME 1 /* use System V uname(2) system call */ 50263962Seric # define HASSETSID 1 /* has POSIX setsid(2) call */ 50363977Seric # define NEEDGETOPT 1 /* need replacement for getopt(3) */ 50463962Seric # define LA_TYPE LA_FLOAT 50565749Seric # define SFS_TYPE SFS_VFS /* use <sys/vfs.h> statfs() implementation */ 50665949Seric # ifndef _PATH_SENDMAILCF 50765949Seric # define _PATH_SENDMAILCF "/usr/lib/sendmail.cf" 50865949Seric # endif 50965949Seric # ifndef S_IREAD 51065949Seric # define S_IREAD _S_IREAD 51165949Seric # define S_IWRITE _S_IWRITE 51265949Seric # define S_IEXEC _S_IEXEC 51365949Seric # define S_IFMT _S_IFMT 51465949Seric # define S_IFCHR _S_IFCHR 51565949Seric # define S_IFBLK _S_IFBLK 51665949Seric # endif 51765167Seric # ifndef IDENTPROTO 51865167Seric # define IDENTPROTO 0 /* TCP/IP implementation is broken */ 51965167Seric # endif 52063962Seric #endif 52163962Seric 52264314Seric 52363962Seric /* 52464999Seric ** RISC/os 4.52 52563962Seric ** 52664999Seric ** Gives a ton of warning messages, but otherwise compiles. 52763962Seric */ 52863962Seric 52963965Seric #ifdef RISCOS 53064999Seric 53163962Seric # define HASUNSETENV 1 /* has unsetenv(3) call */ 53266226Seric # ifndef HASFLOCK 53365830Seric # define HASFLOCK 1 /* has flock(2) call */ 53465830Seric # endif 53564999Seric # define WAITUNION 1 /* use "union wait" as wait argument type */ 53664999Seric # define NEEDGETOPT 1 /* need a replacement for getopt(3) */ 53763962Seric # define LA_TYPE LA_INT 53863962Seric # define LA_AVENRUN "avenrun" 53963962Seric # define _PATH_UNIX "/unix" 54064999Seric # undef WIFEXITED 54164999Seric 54264999Seric # define setpgid setpgrp 54364999Seric 54464999Seric extern int errno; 54564999Seric typedef int pid_t; 54664999Seric #define SIGFUNC_DEFINED 54764999Seric typedef int (*sigfunc_t)(); 54864999Seric extern char *getenv(); 54964999Seric extern void *malloc(); 55064999Seric 55163962Seric #endif 55263962Seric 55364314Seric 55464155Seric /* 55564155Seric ** Linux 0.99pl10 and above... 55666300Seric ** 55766300Seric ** Thanks to, in reverse order of contact: 55866300Seric ** 55966300Seric ** John Kennedy <warlock@csuchico.edu> 56066300Seric ** Florian La Roche <rzsfl@rz.uni-sb.de> 56166300Seric ** Karl London <karl@borg.demon.co.uk> 56266300Seric ** 56366300Seric ** Last compiled against: [03/02/94 @ 05:34 PM (Wednesday)] 56466300Seric ** sendmail 8.6.6.b9 named 4.9.2-931205-p1 db-1.73 56566300Seric ** gcc 2.5.8 libc.so.4.5.19 56666300Seric ** slackware 1.1.2 linux 0.99.15 56764155Seric */ 56864155Seric 56964770Seric #ifdef __linux__ 57066298Seric # define BSD 1 /* include BSD defines */ 57164155Seric # define NEEDGETOPT 1 /* need a replacement for getopt(3) */ 57266298Seric # define HASUNAME 1 /* use System V uname(2) system call */ 57364380Seric # define HASUNSETENV 1 /* has unsetenv(3) call */ 57466298Seric # define ERRLIST_PREDEFINED /* don't declare sys_errlist */ 57566300Seric # define GIDSET_T gid_t /* from <linux/types.h> */ 57664155Seric # ifndef LA_TYPE 57766301Seric # define LA_TYPE LA_PROCSTR 57864155Seric # endif 57966300Seric # define SFS_TYPE SFS_VFS /* use <sys/vfs.h> statfs() impl */ 58064763Seric # include <sys/sysmacros.h> 58166300Seric # undef atol /* wounded in <stdlib.h> */ 58264155Seric #endif 58364155Seric 58464155Seric 58564345Seric /* 58664345Seric ** DELL SVR4 Issue 2.2, and others 58764345Seric ** From Kimmo Suominen <kim@grendel.lut.fi> 58864345Seric ** 58964345Seric ** It's on #ifdef DELL_SVR4 because Solaris also gets __svr4__ 59064345Seric ** defined, and the definitions conflict. 59164924Seric ** 59264924Seric ** Peter Wemm <peter@perth.DIALix.oz.au> claims that the setreuid 59364924Seric ** trick works on DELL 2.2 (SVR4.0/386 version 4.0) and ESIX 4.0.3A 59464924Seric ** (SVR4.0/386 version 3.0). 59564345Seric */ 59664345Seric 59764345Seric #ifdef DELL_SVR4 59865189Seric /* no changes necessary */ 59965189Seric /* see general __svr4__ defines below */ 60064345Seric #endif 60164345Seric 60264345Seric 60364380Seric /* 60464380Seric ** Apple A/UX 3.0 60564380Seric */ 60664345Seric 60764380Seric #ifdef _AUX_SOURCE 60864729Seric # include <sys/sysmacros.h> 60964380Seric # define BSD /* has BSD routines */ 61064380Seric # define HASUNAME 1 /* use System V uname(2) system call */ 61164380Seric # define HASSETVBUF 1 /* we have setvbuf(3) in libc */ 61264561Seric # define SIGFUNC_DEFINED /* sigfunc_t already defined */ 61365167Seric # ifndef IDENTPROTO 61465167Seric # define IDENTPROTO 0 /* TCP/IP implementation is broken */ 61565167Seric # endif 61664380Seric # define FORK fork 61764380Seric # ifndef _PATH_SENDMAILCF 61864380Seric # define _PATH_SENDMAILCF "/usr/lib/sendmail.cf" 61964380Seric # endif 62064380Seric # ifndef LA_TYPE 62164380Seric # define LA_TYPE LA_ZERO 62264380Seric # endif 62365749Seric # define SFS_TYPE SFS_VFS /* use <sys/vfs.h> statfs() implementation */ 62464560Seric # undef WIFEXITED 62564560Seric # undef WEXITSTATUS 62664380Seric #endif 62764380Seric 62864380Seric 62964705Seric /* 63064705Seric ** Encore UMAX V 63164705Seric ** 63264705Seric ** Not extensively tested. 63364705Seric */ 63464380Seric 63564705Seric #ifdef UMAXV 63664705Seric # include <limits.h> 63764705Seric # define HASUNAME 1 /* use System V uname(2) system call */ 63864705Seric # define HASSETVBUF 1 /* we have setvbuf(3) in libc */ 63964705Seric # define HASINITGROUPS 1 /* has initgroups(3) call */ 64065211Seric # define HASGETUSERSHELL 0 /* does not have getusershell(3) call */ 64164705Seric # define SYS5SIGNALS 1 /* SysV signal semantics -- reset on each sig */ 64264705Seric # define SYS5SETPGRP 1 /* use System V setpgrp(2) syscall */ 64364705Seric # define FORK fork /* no vfork(2) primitive available */ 64465749Seric # define SFS_TYPE SFS_4ARGS /* four argument statfs() call */ 64564705Seric # define MAXPATHLEN PATH_MAX 64664705Seric extern struct passwd *getpwent(), *getpwnam(), *getpwuid(); 64764705Seric extern struct group *getgrent(), *getgrnam(), *getgrgid(); 64864705Seric # undef WIFEXITED 64964705Seric # undef WEXITSTATUS 65064705Seric #endif 65164705Seric 65264705Seric 65364939Seric /* 65464939Seric ** Stardent Titan 3000 running TitanOS 4.2. 65564939Seric ** 65664939Seric ** Must be compiled in "cc -43" mode. 65764939Seric ** 65864944Seric ** From Kate Hedstrom <kate@ahab.rutgers.edu>. 65964939Seric ** 66064939Seric ** Note the tweaking below after the BSD defines are set. 66164939Seric */ 66264705Seric 66364939Seric #ifdef titan 66464939Seric # define setpgid setpgrp 66564939Seric typedef int pid_t; 66664939Seric # undef WIFEXITED 66764939Seric # undef WEXITSTATUS 66864939Seric #endif 66964939Seric 67064939Seric 67164962Seric /* 67264962Seric ** Sequent DYNIX 3.2.0 67364962Seric ** 67464962Seric ** From Jim Davis <jdavis@cs.arizona.edu>. 67564962Seric */ 67664939Seric 67764962Seric #ifdef sequent 67866038Seric 67964962Seric # define BSD 1 68064962Seric # define HASUNSETENV 1 68164962Seric # define BSD4_3 1 /* to get signal() in conf.c */ 68264962Seric # define WAITUNION 1 68364962Seric # define LA_TYPE LA_FLOAT 68464962Seric # ifdef _POSIX_VERSION 68564962Seric # undef _POSIX_VERSION /* set in <unistd.h> */ 68664962Seric # endif 68764962Seric # undef HASSETVBUF /* don't actually have setvbuf(3) */ 68864962Seric # define setpgid setpgrp 68964962Seric 69064962Seric /* Have to redefine WIFEXITED to take an int, to work with waitfor() */ 69164962Seric # undef WIFEXITED 69264962Seric # define WIFEXITED(s) (((union wait*)&(s))->w_stopval != WSTOPPED && \ 69364962Seric ((union wait*)&(s))->w_termsig == 0) 69464962Seric # define WEXITSTATUS(s) (((union wait*)&(s))->w_retcode) 69564962Seric typedef int pid_t; 69664962Seric # define isgraph(c) (isprint(c) && (c != ' ')) 69764962Seric 69866144Seric # ifndef IDENTPROTO 69966144Seric # define IDENTPROTO 0 /* TCP/IP implementation is broken */ 70066144Seric # endif 70166144Seric 70264962Seric # ifndef _PATH_UNIX 70364962Seric # define _PATH_UNIX "/dynix" 70464962Seric # endif 70564962Seric # ifndef _PATH_SENDMAILCF 70664962Seric # define _PATH_SENDMAILCF "/usr/lib/sendmail.cf" 70764962Seric # endif 70864962Seric 70964962Seric #endif 71064962Seric 71164962Seric 71265748Seric /* 71366038Seric ** Sequent DYNIX/ptx v2.0 (and higher) 71466038Seric ** 71566038Seric ** For DYNIX/ptx v1.x, undefine HASSETREUID. 71666038Seric ** 71766038Seric ** From Tim Wright <timw@sequent.com>. 71866038Seric */ 71966038Seric 72066038Seric #ifdef _SEQUENT_ 72166038Seric # define SYSTEM5 1 /* include all the System V defines */ 72266038Seric # define HASSETSID 1 /* has POSIX setsid(2) call */ 72366038Seric # define HASINITGROUPS 1 /* has initgroups(3) call */ 72466038Seric # define HASSETREUID 1 /* has setreuid(2) call */ 72566038Seric # define HASGETUSERSHELL 0 /* does not have getusershell(3) call */ 72666038Seric # define GIDSET_T gid_t 72766038Seric # define LA_TYPE LA_INT 72866038Seric # define SFS_TYPE SFS_STATFS /* use <sys/statfs.h> statfs() impl */ 72966038Seric # undef SETPROCTITLE 73066144Seric # ifndef IDENTPROTO 73166144Seric # define IDENTPROTO 0 /* TCP/IP implementation is broken */ 73266144Seric # endif 73366038Seric # ifndef _PATH_SENDMAILCF 73466038Seric # define _PATH_SENDMAILCF "/usr/lib/sendmail.cf" 73566038Seric # endif 73666038Seric # ifndef _PATH_SENDMAILPID 73766038Seric # define _PATH_SENDMAILPID "/etc/sendmail.pid" 73866038Seric # endif 73966038Seric #endif 74066038Seric 74166038Seric 74266038Seric /* 74365748Seric ** Cray Unicos 74465748Seric ** 74565748Seric ** Ported by David L. Kensiski, Sterling Sofware <kensiski@nas.nasa.gov> 74665748Seric */ 74764962Seric 74865748Seric #ifdef UNICOS 74965748Seric # define SYSTEM5 1 /* include all the System V defines */ 75065748Seric # define SYS5SIGNALS 1 /* SysV signal semantics -- reset on each sig */ 75165748Seric # define MAXPATHLEN PATHSIZE 75265748Seric # define LA_TYPE LA_ZERO 75365749Seric # define SFS_TYPE SFS_4ARGS /* four argument statfs() call */ 75465748Seric #endif 75564962Seric 75665748Seric 75765820Seric /* 75865820Seric ** Apollo DomainOS 75965820Seric ** 76065820Seric ** From Todd Martin <tmartint@tus.ssi1.com> & Don Lewis <gdonl@gv.ssi1.com> 76165982Seric ** 76265820Seric ** 15 Jan 1994 76365820Seric ** 76465820Seric */ 76565748Seric 76665820Seric #ifdef apollo 76765820Seric # define HASSETREUID 1 /* has setreuid(2) call */ 76865820Seric # define HASINITGROUPS 1 /* has initgroups(2) call */ 76965820Seric # undef SETPROCTITLE 77065820Seric # define LA_TYPE LA_SUBR /* use getloadavg.c */ 77166044Seric # define SFS_TYPE SFS_4ARGS /* four argument statfs() call */ 77265820Seric # ifndef _PATH_SENDMAILCF 77365820Seric # define _PATH_SENDMAILCF "/usr/lib/sendmail.cf" 77465820Seric # endif 77565820Seric # ifndef _PATH_SENDMAILPID 77665820Seric # define _PATH_SENDMAILPID "/etc/sendmail.pid" 77765820Seric # endif 77865820Seric # undef S_IFSOCK /* S_IFSOCK and S_IFIFO are the same */ 77965820Seric # undef S_IFIFO 78065820Seric # define S_IFIFO 0010000 78165820Seric # ifndef IDENTPROTO 78265820Seric # define IDENTPROTO 0 /* TCP/IP implementation is broken */ 78365820Seric # endif 78465982Seric #endif 78565820Seric 78665820Seric 78765820Seric 78865820Seric 78963902Seric /********************************************************************** 79063787Seric ** End of Per-Operating System defines 79163902Seric **********************************************************************/ 79263787Seric 79363949Seric /********************************************************************** 79463949Seric ** More general defines 79563949Seric **********************************************************************/ 79663949Seric 79763962Seric /* general BSD defines */ 79863962Seric #ifdef BSD 79964035Seric # define HASGETDTABLESIZE 1 /* has getdtablesize(2) call */ 80064035Seric # define HASSETREUID 1 /* has setreuid(2) call */ 80164035Seric # define HASINITGROUPS 1 /* has initgroups(2) call */ 80265830Seric # ifndef HASFLOCK 80365830Seric # define HASFLOCK 1 /* has flock(2) call */ 80465830Seric # endif 80563962Seric #endif 80663962Seric 80765189Seric /* general System V Release 4 defines */ 80865189Seric #ifdef __svr4__ 80965189Seric # define SYSTEM5 1 81065189Seric # define HASSETREUID 1 /* has seteuid(2) call & working saved uids */ 81165211Seric # ifndef HASGETUSERSHELL 81265211Seric # define HASGETUSERSHELL 0 /* does not have getusershell(3) call */ 81365210Seric # endif 81465189Seric # define setreuid(r, e) seteuid(e) 81565189Seric 81665189Seric # ifndef _PATH_UNIX 81765189Seric # define _PATH_UNIX "/unix" 81865189Seric # endif 81965189Seric # ifndef _PATH_SENDMAILCF 82065189Seric # define _PATH_SENDMAILCF "/usr/ucblib/sendmail.cf" 82165189Seric # endif 82265189Seric # ifndef _PATH_SENDMAILPID 82365189Seric # define _PATH_SENDMAILPID "/usr/ucblib/sendmail.pid" 82465189Seric # endif 82565189Seric # ifndef SYSLOG_BUFSIZE 82665189Seric # define SYSLOG_BUFSIZE 128 82765189Seric # endif 82865189Seric #endif 82965189Seric 83063787Seric /* general System V defines */ 83166298Seric #ifdef SYSTEM5 83264813Seric # include <sys/sysmacros.h> 83363949Seric # define HASUNAME 1 /* use System V uname(2) system call */ 83464705Seric # define SYS5SETPGRP 1 /* use System V setpgrp(2) syscall */ 83564962Seric # define HASSETVBUF 1 /* we have setvbuf(3) in libc */ 83663962Seric # ifndef LA_TYPE 83765749Seric # define LA_TYPE LA_INT /* assume integer load average */ 83863962Seric # endif 83965749Seric # ifndef SFS_TYPE 84065749Seric # define SFS_TYPE SFS_USTAT /* use System V ustat(2) syscall */ 84165749Seric # endif 84263949Seric # define bcopy(s, d, l) (memmove((d), (s), (l))) 84363949Seric # define bzero(d, l) (memset((d), '\0', (l))) 84463949Seric # define bcmp(s, d, l) (memcmp((s), (d), (l))) 84566298Seric #endif 84663787Seric 84763949Seric /* general POSIX defines */ 84863949Seric #ifdef _POSIX_VERSION 84964718Seric # define HASSETSID 1 /* has Posix setsid(2) call */ 85064718Seric # define HASWAITPID 1 /* has Posix waitpid(2) call */ 85163949Seric #endif 85263949Seric 85363787Seric /* 85463937Seric ** If no type for argument two of getgroups call is defined, assume 85563937Seric ** it's an integer -- unfortunately, there seem to be several choices 85663937Seric ** here. 85763937Seric */ 85863937Seric 85963937Seric #ifndef GIDSET_T 86063937Seric # define GIDSET_T int 86163937Seric #endif 86263937Seric 86364939Seric /* 86464939Seric ** Tweaking for systems that (for example) claim to be BSD but 86564939Seric ** don't have all the standard BSD routines (boo hiss). 86664939Seric */ 86764439Seric 86864939Seric #ifdef titan 86964939Seric # undef HASINITGROUPS /* doesn't have initgroups(3) call */ 87064939Seric #endif 87164939Seric 87265830Seric 87365167Seric /* 87465167Seric ** Due to a "feature" in some operating systems such as Ultrix 4.3 and 87565167Seric ** HPUX 8.0, if you receive a "No route to host" message (ICMP message 87665167Seric ** ICMP_UNREACH_HOST) on _any_ connection, all connections to that host 87765167Seric ** are closed. Some firewalls return this error if you try to connect 87865167Seric ** to the IDENT port (113), so you can't receive email from these hosts 87965167Seric ** on these systems. The firewall really should use a more specific 88065167Seric ** message such as ICMP_UNREACH_PROTOCOL or _PORT or _NET_PROHIB. If 88165167Seric ** not explicitly set to zero above, default it on. 88265167Seric */ 88364939Seric 88465167Seric #ifndef IDENTPROTO 88565167Seric # define IDENTPROTO 1 /* use IDENT proto (RFC 1413) */ 88665167Seric #endif 88765167Seric 88865211Seric #ifndef HASGETUSERSHELL 88965211Seric # define HASGETUSERSHELL 1 /* libc has getusershell(3) call */ 89065210Seric #endif 89165167Seric 89265830Seric #ifndef HASFLOCK 89365830Seric # define HASFLOCK 0 /* assume no flock(2) support */ 89465830Seric #endif 89565210Seric 89665830Seric 89764439Seric /********************************************************************** 89859023Seric ** Remaining definitions should never have to be changed. They are 89959023Seric ** primarily to provide back compatibility for older systems -- for 90059287Seric ** example, it includes some POSIX compatibility definitions 90164439Seric **********************************************************************/ 90259023Seric 90359388Seric /* System 5 compatibility */ 90459388Seric #ifndef S_ISREG 90564944Seric # define S_ISREG(foo) ((foo & S_IFMT) == S_IFREG) 90659388Seric #endif 90764944Seric #if !defined(S_ISLNK) && defined(S_IFLNK) 90864944Seric # define S_ISLNK(foo) ((foo & S_IFMT) == S_IFLNK) 90964944Seric #endif 91059388Seric #ifndef S_IWGRP 91159388Seric #define S_IWGRP 020 91259388Seric #endif 91359388Seric #ifndef S_IWOTH 91459388Seric #define S_IWOTH 002 91559388Seric #endif 91659388Seric 91759023Seric /* 91850537Seric ** Older systems don't have this error code -- it should be in 91950537Seric ** /usr/include/sysexits.h. 92050537Seric */ 92150537Seric 92250537Seric # ifndef EX_CONFIG 92350537Seric # define EX_CONFIG 78 /* configuration error */ 92450537Seric # endif 92556852Seric 92664718Seric /* pseudo-code used in server SMTP */ 92764718Seric # define EX_QUIT 22 /* drop out of server immediately */ 92864718Seric 92964718Seric 93063993Seric /* 93163993Seric ** These are used in a few cases where we need some special 93263993Seric ** error codes, but where the system doesn't provide something 93363993Seric ** reasonable. They are printed in errstring. 93463993Seric */ 93563993Seric 93663993Seric #ifndef E_PSEUDOBASE 93763993Seric # define E_PSEUDOBASE 256 93863993Seric #endif 93963993Seric 94063993Seric #define EOPENTIMEOUT (E_PSEUDOBASE + 0) /* timeout on open */ 94163993Seric #define E_DNSBASE (E_PSEUDOBASE + 20) /* base for DNS h_errno */ 94263993Seric 94363970Seric /* type of arbitrary pointer */ 94463970Seric #ifndef ARBPTR_T 94563970Seric # define ARBPTR_T void * 94663970Seric #endif 94763970Seric 94860568Seric #ifndef __P 94960568Seric # include "cdefs.h" 95060568Seric #endif 95160568Seric 95256852Seric /* 95358778Seric ** Do some required dependencies 95458778Seric */ 95558778Seric 95658778Seric #if defined(NETINET) || defined(NETISO) 95759107Seric # define SMTP 1 /* enable user and server SMTP */ 95859107Seric # define QUEUE 1 /* enable queueing */ 95959107Seric # define DAEMON 1 /* include the daemon (requires IPC & SMTP) */ 96058778Seric #endif 96158778Seric 96258778Seric 96358778Seric /* 96456852Seric ** Arrange to use either varargs or stdargs 96556852Seric */ 96656852Seric 96756852Seric # ifdef __STDC__ 96856852Seric 96956852Seric # include <stdarg.h> 97056852Seric 97156852Seric # define VA_LOCAL_DECL va_list ap; 97256852Seric # define VA_START(f) va_start(ap, f) 97356852Seric # define VA_END va_end(ap) 97456852Seric 97556852Seric # else 97656852Seric 97756852Seric # include <varargs.h> 97856852Seric 97956852Seric # define VA_LOCAL_DECL va_list ap; 98056852Seric # define VA_START(f) va_start(ap) 98156852Seric # define VA_END va_end(ap) 98256852Seric 98356852Seric # endif 98457631Seric 98557943Seric #ifdef HASUNAME 98657631Seric # include <sys/utsname.h> 98757631Seric # ifdef newstr 98857631Seric # undef newstr 98957631Seric # endif 99057943Seric #else /* ! HASUNAME */ 99157631Seric # define NODE_LENGTH 32 99257631Seric struct utsname 99357631Seric { 99457631Seric char nodename[NODE_LENGTH+1]; 99557631Seric }; 99657943Seric #endif /* HASUNAME */ 99757642Seric 99863838Seric #if !defined(MAXHOSTNAMELEN) && !defined(_SCO_unix_) 99963838Seric # define MAXHOSTNAMELEN 256 100057735Seric #endif 100158153Seric 100258153Seric #if !defined(SIGCHLD) && defined(SIGCLD) 100358153Seric # define SIGCHLD SIGCLD 100458153Seric #endif 100558153Seric 100658153Seric #ifndef STDIN_FILENO 100758153Seric #define STDIN_FILENO 0 100858153Seric #endif 100958153Seric 101058153Seric #ifndef STDOUT_FILENO 101158153Seric #define STDOUT_FILENO 1 101258153Seric #endif 101358153Seric 101458153Seric #ifndef STDERR_FILENO 101558153Seric #define STDERR_FILENO 2 101658153Seric #endif 101758689Seric 101864072Seric #ifndef LOCK_SH 101964035Seric # define LOCK_SH 0x01 /* shared lock */ 102064035Seric # define LOCK_EX 0x02 /* exclusive lock */ 102164035Seric # define LOCK_NB 0x04 /* non-blocking lock */ 102264035Seric # define LOCK_UN 0x08 /* unlock */ 102364035Seric #endif 102458692Seric 102564035Seric #ifndef SIG_ERR 102664035Seric # define SIG_ERR ((void (*)()) -1) 102758689Seric #endif 102858702Seric 102964500Seric #ifndef WEXITSTATUS 103064500Seric # define WEXITSTATUS(st) (((st) >> 8) & 0377) 103164500Seric #endif 103264500Seric #ifndef WIFEXITED 103364500Seric # define WIFEXITED(st) (((st) & 0377) == 0) 103464500Seric #endif 103564500Seric 103664561Seric #ifndef SIGFUNC_DEFINED 103764561Seric typedef void (*sigfunc_t) __P((int)); 103864561Seric #endif 103964561Seric 104065053Seric /* size of syslog buffer */ 104165053Seric #ifndef SYSLOG_BUFSIZE 104265053Seric # define SYSLOG_BUFSIZE 1024 104365053Seric #endif 104465053Seric 104558702Seric /* 104658702Seric ** Size of tobuf (deliver.c) 104758702Seric ** Tweak this to match your syslog implementation. It will have to 104858702Seric ** allow for the extra information printed. 104958702Seric */ 105058702Seric 105158702Seric #ifndef TOBUFSIZE 105265053Seric # if (SYSLOG_BUFSIZE) > 512 105365053Seric # define TOBUFSIZE (SYSLOG_BUFSIZE - 256) 105465053Seric # else 105565053Seric # define TOBUFSIZE 256 105665053Seric # endif 105758702Seric #endif 105860219Seric 105965015Seric /* 106065015Seric ** Size of prescan buffer. 106165015Seric ** Despite comments in the _sendmail_ book, this probably should 106265015Seric ** not be changed; there are some hard-to-define dependencies. 106365015Seric */ 106465015Seric 106565015Seric # define PSBUFSIZE (MAXNAME + MAXATOM) /* size of prescan buffer */ 106660219Seric /* fork routine -- set above using #ifdef _osname_ or in Makefile */ 106760219Seric # ifndef FORK 106860219Seric # define FORK vfork /* function to call to fork mailer */ 106960219Seric # endif 107065955Seric 107165955Seric /* 107265955Seric ** If we are going to link scanf anyway, use it in readcf 107365955Seric */ 107465955Seric 107565955Seric #if !defined(HASUNAME) && !defined(SCANF) 107665955Seric # define SCANF 1 107765955Seric #endif 1078