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*66242Seric * @(#)conf.h 8.91 (Berkeley) 02/22/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 */ 269*66242Seric # 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 */ 27465135Seric # ifdef vax 27565135Seric # define LA_TYPE LA_FLOAT 27665135Seric # else 27765135Seric # define LA_TYPE LA_INT 27865135Seric # define LA_AVENRUN "avenrun" 27965135Seric # endif 28065749Seric # define SFS_TYPE SFS_MOUNT /* use <sys/mount.h> statfs() impl */ 28165167Seric # ifndef IDENTPROTO 28265167Seric # define IDENTPROTO 0 /* TCP/IP implementation is broken */ 28365167Seric # endif 28460564Seric #endif 28560564Seric 28664314Seric 28763902Seric /* 28863902Seric ** OSF/1 (tested on Alpha) 28963902Seric */ 29063902Seric 29163787Seric #ifdef __osf__ 29263962Seric # define HASUNSETENV 1 /* has unsetenv(3) call */ 29364035Seric # define HASSETREUID 1 /* has setreuid(2) call */ 29464035Seric # define HASINITGROUPS 1 /* has initgroups(3) call */ 29566226Seric # ifndef HASFLOCK 29665830Seric # define HASFLOCK 1 /* has flock(2) call */ 29765830Seric # endif 29863962Seric # define LA_TYPE LA_INT 29965749Seric # define SFS_TYPE SFS_MOUNT /* use <sys/mount.h> statfs() impl */ 30064813Seric # ifndef _PATH_SENDMAILPID 30165504Seric # define _PATH_SENDMAILPID "/var/run/sendmail.pid" 30264813Seric # endif 30359287Seric #endif 30459287Seric 30564314Seric 30663902Seric /* 30763902Seric ** NeXTstep 30863902Seric */ 30963902Seric 31064076Seric #ifdef NeXT 31164035Seric # define HASINITGROUPS 1 /* has initgroups(3) call */ 31265830Seric # ifndef HASFLOCK 31365830Seric # define HASFLOCK 1 /* has flock(2) call */ 31465830Seric # endif 31564125Seric # define NEEDGETOPT 1 /* need a replacement for getopt(3) */ 31664563Seric # define WAITUNION 1 /* use "union wait" as wait argument type */ 31763753Seric # define sleep sleepX 31864155Seric # define setpgid setpgrp 31964295Seric # ifndef LA_TYPE 32064295Seric # define LA_TYPE LA_MACH 32164295Seric # endif 32265749Seric # define SFS_TYPE SFS_VFS /* use <sys/vfs.h> statfs() implementation */ 32364500Seric # ifndef _POSIX_SOURCE 32464035Seric typedef int pid_t; 32564500Seric # undef WEXITSTATUS 32664500Seric # undef WIFEXITED 32764500Seric # endif 32864072Seric # ifndef _PATH_SENDMAILCF 32964072Seric # define _PATH_SENDMAILCF "/etc/sendmail/sendmail.cf" 33064072Seric # endif 33164072Seric # ifndef _PATH_SENDMAILPID 33264072Seric # define _PATH_SENDMAILPID "/etc/sendmail/sendmail.pid" 33364072Seric # endif 33459288Seric #endif 33559288Seric 33664314Seric 33763902Seric /* 33863962Seric ** 4.4 BSD 33964831Seric ** 34064831Seric ** See also BSD defines. 34163902Seric */ 34263902Seric 34360568Seric #ifdef BSD4_4 34464072Seric # define HASUNSETENV 1 /* has unsetenv(3) call */ 34560568Seric # include <sys/cdefs.h> 34663838Seric # define ERRLIST_PREDEFINED /* don't declare sys_errlist */ 34764072Seric # ifndef LA_TYPE 34864072Seric # define LA_TYPE LA_SUBR 34964072Seric # endif 35065749Seric # define SFS_TYPE SFS_MOUNT /* use <sys/mount.h> statfs() impl */ 35160568Seric #endif 35260568Seric 35364314Seric 35463902Seric /* 35565982Seric ** BSD/386 (all versions) 35665982Seric ** From Tony Sanders, BSDI 35765982Seric */ 35865982Seric 35965982Seric #ifdef __bsdi__ 36065982Seric # define HASUNSETENV 1 /* has the unsetenv(3) call */ 36165982Seric # define HASSETSID 1 /* has the setsid(2) POSIX syscall */ 36266030Seric # define SFS_TYPE SFS_MOUNT /* use <sys/mount.h> statfs() impl */ 36365982Seric # if defined(_BSDI_VERSION) && _BSDI_VERSION >= 199312 36465982Seric # define HASSETPROCTITLE 1 /* setproctitle is in libc */ 36565982Seric # else 36665982Seric # define SETPROCTITLE 1 36765982Seric # endif 36865982Seric # include <sys/cdefs.h> 36965982Seric # define ERRLIST_PREDEFINED /* don't declare sys_errlist */ 37065982Seric # ifndef LA_TYPE 37165982Seric # define LA_TYPE LA_SUBR 37265982Seric # endif 37365982Seric #endif 37465982Seric 37565982Seric 37665982Seric 37765982Seric /* 37865049Seric ** 386BSD / FreeBSD 1.0E / NetBSD (all architectures, all versions) 37964733Seric ** 38064733Seric ** 4.3BSD clone, closer to 4.4BSD 38164831Seric ** 38264831Seric ** See also BSD defines. 38364733Seric */ 38464733Seric 38565049Seric #if defined(__386BSD__) || defined(__FreeBSD__) || defined(__NetBSD__) 38664733Seric # define HASUNSETENV 1 /* has unsetenv(3) call */ 38764733Seric # define HASSETSID 1 /* has the setsid(2) POSIX syscall */ 38864733Seric # include <sys/cdefs.h> 38964733Seric # define ERRLIST_PREDEFINED /* don't declare sys_errlist */ 39064733Seric # ifndef LA_TYPE 39164733Seric # define LA_TYPE LA_SUBR 39264733Seric # endif 39365749Seric # define SFS_TYPE SFS_MOUNT /* use <sys/mount.h> statfs() impl */ 39464733Seric #endif 39564733Seric 39664733Seric 39764733Seric /* 39864813Seric ** Mach386 39964813Seric ** 40064813Seric ** For mt Xinu's Mach386 system. 40164813Seric */ 40264813Seric 40364813Seric #if defined(MACH) && defined(i386) 40464813Seric # define MACH386 1 40564813Seric # define HASUNSETENV 1 /* has unsetenv(3) call */ 40664813Seric # define HASINITGROUPS 1 /* has initgroups(3) call */ 40766226Seric # ifndef HASFLOCK 40865830Seric # define HASFLOCK 1 /* has flock(2) call */ 40965830Seric # endif 41064813Seric # define NEEDGETOPT 1 /* need a replacement for getopt(3) */ 41164813Seric # define NEEDSTRTOL 1 /* need the strtol() function */ 41264813Seric # define setpgid setpgrp 41364813Seric # ifndef LA_TYPE 41464813Seric # define LA_TYPE LA_FLOAT 41564813Seric # endif 41665749Seric # define SFS_TYPE SFS_VFS /* use <sys/vfs.h> statfs() implementation */ 41764962Seric # undef HASSETVBUF /* don't actually have setvbuf(3) */ 41864813Seric # undef WEXITSTATUS 41964813Seric # undef WIFEXITED 42064813Seric # ifndef _PATH_SENDMAILCF 42164813Seric # define _PATH_SENDMAILCF "/usr/lib/sendmail.cf" 42264813Seric # endif 42364813Seric # ifndef _PATH_SENDMAILPID 42464813Seric # define _PATH_SENDMAILPID "/etc/sendmail.pid" 42564813Seric # endif 42664813Seric #endif 42764813Seric 42864813Seric 42964813Seric /* 43063969Seric ** 4.3 BSD -- this is for very old systems 43163969Seric ** 43265949Seric ** Should work for mt Xinu MORE/BSD and Mips UMIPS-BSD 2.1. 43365949Seric ** 43463969Seric ** You'll also have to install a new resolver library. 43563969Seric ** I don't guarantee that support for this environment is complete. 43663969Seric */ 43763969Seric 43865949Seric #if defined(oldBSD43) || defined(MORE_BSD) || defined(umipsbsd) 43963969Seric # define NEEDVPRINTF 1 /* need a replacement for vprintf(3) */ 44063969Seric # define NEEDGETOPT 1 /* need a replacement for getopt(3) */ 44163970Seric # define ARBPTR_T char * 44264155Seric # define setpgid setpgrp 44363969Seric # ifndef LA_TYPE 44463969Seric # define LA_TYPE LA_FLOAT 44563969Seric # endif 44663969Seric # ifndef _PATH_SENDMAILCF 44763969Seric # define _PATH_SENDMAILCF "/usr/lib/sendmail.cf" 44863969Seric # endif 44965167Seric # ifndef IDENTPROTO 45065167Seric # define IDENTPROTO 0 /* TCP/IP implementation is broken */ 45165167Seric # endif 45264834Seric # undef WEXITSTATUS 45364834Seric # undef WIFEXITED 45464834Seric typedef short pid_t; 45564834Seric extern int errno; 45663969Seric #endif 45763969Seric 45864314Seric 45963969Seric /* 46063902Seric ** SCO Unix 46165087Seric ** 46265087Seric ** This includes two parts -- the first is for SCO Open Server 3.2v4 46365087Seric ** (contributed by Philippe Brand <phb@colombo.telesys-innov.fr>). 46465087Seric ** The second is, I believe, for an older version. 46563902Seric */ 46663902Seric 46765087Seric #ifdef _SCO_unix_4_2 46865087Seric # define _SCO_unix_ 46965087Seric # define HASSETREUID 1 /* has setreuid(2) call */ 47065087Seric # define _PATH_UNIX "/unix" 47165087Seric # ifndef _PATH_SENDMAILCF 47265087Seric # define _PATH_SENDMAILCF "/usr/lib/sendmail.cf" 47365087Seric # endif 47465087Seric # ifndef _PATH_SENDMAILPID 47565087Seric # define _PATH_SENDMAILPID "/etc/sendmail.pid" 47665087Seric # endif 47765087Seric #endif 47865087Seric 47963838Seric #ifdef _SCO_unix_ 48063838Seric # define SYSTEM5 1 /* include all the System V defines */ 48164035Seric # define SYS5SIGNALS 1 /* SysV signal semantics -- reset on each sig */ 48265212Seric # define HASGETUSERSHELL 0 /* does not have getusershell(3) call */ 48363838Seric # define FORK fork 48463838Seric # define MAXPATHLEN PATHSIZE 48564718Seric # define LA_TYPE LA_SHORT 48665749Seric # define SFS_TYPE SFS_STATFS /* use <sys/statfs.h> statfs() impl */ 48764813Seric # undef NETUNIX /* no unix domain socket support */ 48863838Seric #endif 48963838Seric 49064314Seric 49163962Seric /* 49263962Seric ** ConvexOS 11.0 and later 49365949Seric ** 49465949Seric ** "Todd C. Miller" <millert@mroe.cs.colorado.edu> claims this 49565949Seric ** works on 9.1 as well. 49663962Seric */ 49763962Seric 49863962Seric #ifdef _CONVEX_SOURCE 49963977Seric # define BSD 1 /* include all the BSD defines */ 50063977Seric # define HASUNAME 1 /* use System V uname(2) system call */ 50163962Seric # define HASSETSID 1 /* has POSIX setsid(2) call */ 50263977Seric # define NEEDGETOPT 1 /* need replacement for getopt(3) */ 50363962Seric # define LA_TYPE LA_FLOAT 50465749Seric # define SFS_TYPE SFS_VFS /* use <sys/vfs.h> statfs() implementation */ 50565949Seric # ifndef _PATH_SENDMAILCF 50665949Seric # define _PATH_SENDMAILCF "/usr/lib/sendmail.cf" 50765949Seric # endif 50865949Seric # ifndef S_IREAD 50965949Seric # define S_IREAD _S_IREAD 51065949Seric # define S_IWRITE _S_IWRITE 51165949Seric # define S_IEXEC _S_IEXEC 51265949Seric # define S_IFMT _S_IFMT 51365949Seric # define S_IFCHR _S_IFCHR 51465949Seric # define S_IFBLK _S_IFBLK 51565949Seric # endif 51665167Seric # ifndef IDENTPROTO 51765167Seric # define IDENTPROTO 0 /* TCP/IP implementation is broken */ 51865167Seric # endif 51963962Seric #endif 52063962Seric 52164314Seric 52263962Seric /* 52364999Seric ** RISC/os 4.52 52463962Seric ** 52564999Seric ** Gives a ton of warning messages, but otherwise compiles. 52663962Seric */ 52763962Seric 52863965Seric #ifdef RISCOS 52964999Seric 53063962Seric # define HASUNSETENV 1 /* has unsetenv(3) call */ 53166226Seric # ifndef HASFLOCK 53265830Seric # define HASFLOCK 1 /* has flock(2) call */ 53365830Seric # endif 53464999Seric # define WAITUNION 1 /* use "union wait" as wait argument type */ 53564999Seric # define NEEDGETOPT 1 /* need a replacement for getopt(3) */ 53663962Seric # define LA_TYPE LA_INT 53763962Seric # define LA_AVENRUN "avenrun" 53863962Seric # define _PATH_UNIX "/unix" 53964999Seric # undef WIFEXITED 54064999Seric 54164999Seric # define setpgid setpgrp 54264999Seric 54364999Seric extern int errno; 54464999Seric typedef int pid_t; 54564999Seric #define SIGFUNC_DEFINED 54664999Seric typedef int (*sigfunc_t)(); 54764999Seric extern char *getenv(); 54864999Seric extern void *malloc(); 54964999Seric 55063962Seric #endif 55163962Seric 55264314Seric 55364155Seric /* 55464155Seric ** Linux 0.99pl10 and above... 55564155Seric ** From Karl London <karl@borg.demon.co.uk>. 55664155Seric */ 55764155Seric 55864770Seric #ifdef __linux__ 55964155Seric # define BSD 1 /* pretend to be BSD based today */ 56064155Seric # undef NEEDVPRINTF 1 /* need a replacement for vprintf(3) */ 56164155Seric # define NEEDGETOPT 1 /* need a replacement for getopt(3) */ 56264380Seric # define HASUNSETENV 1 /* has unsetenv(3) call */ 56364155Seric # ifndef LA_TYPE 56464155Seric # define LA_TYPE LA_FLOAT 56564155Seric # endif 56664763Seric # include <sys/sysmacros.h> 56765046Seric # define GIDSET_T gid_t 56864155Seric #endif 56964155Seric 57064155Seric 57164345Seric /* 57264345Seric ** DELL SVR4 Issue 2.2, and others 57364345Seric ** From Kimmo Suominen <kim@grendel.lut.fi> 57464345Seric ** 57564345Seric ** It's on #ifdef DELL_SVR4 because Solaris also gets __svr4__ 57664345Seric ** defined, and the definitions conflict. 57764924Seric ** 57864924Seric ** Peter Wemm <peter@perth.DIALix.oz.au> claims that the setreuid 57964924Seric ** trick works on DELL 2.2 (SVR4.0/386 version 4.0) and ESIX 4.0.3A 58064924Seric ** (SVR4.0/386 version 3.0). 58164345Seric */ 58264345Seric 58364345Seric #ifdef DELL_SVR4 58465189Seric /* no changes necessary */ 58565189Seric /* see general __svr4__ defines below */ 58664345Seric #endif 58764345Seric 58864345Seric 58964380Seric /* 59064380Seric ** Apple A/UX 3.0 59164380Seric */ 59264345Seric 59364380Seric #ifdef _AUX_SOURCE 59464729Seric # include <sys/sysmacros.h> 59564380Seric # define BSD /* has BSD routines */ 59664380Seric # define HASUNAME 1 /* use System V uname(2) system call */ 59764380Seric # define HASSETVBUF 1 /* we have setvbuf(3) in libc */ 59864561Seric # define SIGFUNC_DEFINED /* sigfunc_t already defined */ 59965167Seric # ifndef IDENTPROTO 60065167Seric # define IDENTPROTO 0 /* TCP/IP implementation is broken */ 60165167Seric # endif 60264380Seric # define FORK fork 60364380Seric # ifndef _PATH_SENDMAILCF 60464380Seric # define _PATH_SENDMAILCF "/usr/lib/sendmail.cf" 60564380Seric # endif 60664380Seric # ifndef LA_TYPE 60764380Seric # define LA_TYPE LA_ZERO 60864380Seric # endif 60965749Seric # define SFS_TYPE SFS_VFS /* use <sys/vfs.h> statfs() implementation */ 61064560Seric # undef WIFEXITED 61164560Seric # undef WEXITSTATUS 61264380Seric #endif 61364380Seric 61464380Seric 61564705Seric /* 61664705Seric ** Encore UMAX V 61764705Seric ** 61864705Seric ** Not extensively tested. 61964705Seric */ 62064380Seric 62164705Seric #ifdef UMAXV 62264705Seric # include <limits.h> 62364705Seric # define HASUNAME 1 /* use System V uname(2) system call */ 62464705Seric # define HASSETVBUF 1 /* we have setvbuf(3) in libc */ 62564705Seric # define HASINITGROUPS 1 /* has initgroups(3) call */ 62665211Seric # define HASGETUSERSHELL 0 /* does not have getusershell(3) call */ 62764705Seric # define SYS5SIGNALS 1 /* SysV signal semantics -- reset on each sig */ 62864705Seric # define SYS5SETPGRP 1 /* use System V setpgrp(2) syscall */ 62964705Seric # define FORK fork /* no vfork(2) primitive available */ 63065749Seric # define SFS_TYPE SFS_4ARGS /* four argument statfs() call */ 63164705Seric # define MAXPATHLEN PATH_MAX 63264705Seric extern struct passwd *getpwent(), *getpwnam(), *getpwuid(); 63364705Seric extern struct group *getgrent(), *getgrnam(), *getgrgid(); 63464705Seric # undef WIFEXITED 63564705Seric # undef WEXITSTATUS 63664705Seric #endif 63764705Seric 63864705Seric 63964939Seric /* 64064939Seric ** Stardent Titan 3000 running TitanOS 4.2. 64164939Seric ** 64264939Seric ** Must be compiled in "cc -43" mode. 64364939Seric ** 64464944Seric ** From Kate Hedstrom <kate@ahab.rutgers.edu>. 64564939Seric ** 64664939Seric ** Note the tweaking below after the BSD defines are set. 64764939Seric */ 64864705Seric 64964939Seric #ifdef titan 65064939Seric # define setpgid setpgrp 65164939Seric typedef int pid_t; 65264939Seric # undef WIFEXITED 65364939Seric # undef WEXITSTATUS 65464939Seric #endif 65564939Seric 65664939Seric 65764962Seric /* 65864962Seric ** Sequent DYNIX 3.2.0 65964962Seric ** 66064962Seric ** From Jim Davis <jdavis@cs.arizona.edu>. 66164962Seric */ 66264939Seric 66364962Seric #ifdef sequent 66466038Seric 66564962Seric # define BSD 1 66664962Seric # define HASUNSETENV 1 66764962Seric # define BSD4_3 1 /* to get signal() in conf.c */ 66864962Seric # define WAITUNION 1 66964962Seric # define LA_TYPE LA_FLOAT 67064962Seric # ifdef _POSIX_VERSION 67164962Seric # undef _POSIX_VERSION /* set in <unistd.h> */ 67264962Seric # endif 67364962Seric # undef HASSETVBUF /* don't actually have setvbuf(3) */ 67464962Seric # define setpgid setpgrp 67564962Seric 67664962Seric /* Have to redefine WIFEXITED to take an int, to work with waitfor() */ 67764962Seric # undef WIFEXITED 67864962Seric # define WIFEXITED(s) (((union wait*)&(s))->w_stopval != WSTOPPED && \ 67964962Seric ((union wait*)&(s))->w_termsig == 0) 68064962Seric # define WEXITSTATUS(s) (((union wait*)&(s))->w_retcode) 68164962Seric typedef int pid_t; 68264962Seric # define isgraph(c) (isprint(c) && (c != ' ')) 68364962Seric 68466144Seric # ifndef IDENTPROTO 68566144Seric # define IDENTPROTO 0 /* TCP/IP implementation is broken */ 68666144Seric # endif 68766144Seric 68864962Seric # ifndef _PATH_UNIX 68964962Seric # define _PATH_UNIX "/dynix" 69064962Seric # endif 69164962Seric # ifndef _PATH_SENDMAILCF 69264962Seric # define _PATH_SENDMAILCF "/usr/lib/sendmail.cf" 69364962Seric # endif 69464962Seric 69564962Seric #endif 69664962Seric 69764962Seric 69865748Seric /* 69966038Seric ** Sequent DYNIX/ptx v2.0 (and higher) 70066038Seric ** 70166038Seric ** For DYNIX/ptx v1.x, undefine HASSETREUID. 70266038Seric ** 70366038Seric ** From Tim Wright <timw@sequent.com>. 70466038Seric */ 70566038Seric 70666038Seric #ifdef _SEQUENT_ 70766038Seric # define SYSTEM5 1 /* include all the System V defines */ 70866038Seric # define HASSETSID 1 /* has POSIX setsid(2) call */ 70966038Seric # define HASINITGROUPS 1 /* has initgroups(3) call */ 71066038Seric # define HASSETREUID 1 /* has setreuid(2) call */ 71166038Seric # define HASGETUSERSHELL 0 /* does not have getusershell(3) call */ 71266038Seric # define GIDSET_T gid_t 71366038Seric # define LA_TYPE LA_INT 71466038Seric # define SFS_TYPE SFS_STATFS /* use <sys/statfs.h> statfs() impl */ 71566038Seric # undef SETPROCTITLE 71666144Seric # ifndef IDENTPROTO 71766144Seric # define IDENTPROTO 0 /* TCP/IP implementation is broken */ 71866144Seric # endif 71966038Seric # ifndef _PATH_SENDMAILCF 72066038Seric # define _PATH_SENDMAILCF "/usr/lib/sendmail.cf" 72166038Seric # endif 72266038Seric # ifndef _PATH_SENDMAILPID 72366038Seric # define _PATH_SENDMAILPID "/etc/sendmail.pid" 72466038Seric # endif 72566038Seric #endif 72666038Seric 72766038Seric 72866038Seric /* 72965748Seric ** Cray Unicos 73065748Seric ** 73165748Seric ** Ported by David L. Kensiski, Sterling Sofware <kensiski@nas.nasa.gov> 73265748Seric */ 73364962Seric 73465748Seric #ifdef UNICOS 73565748Seric # define SYSTEM5 1 /* include all the System V defines */ 73665748Seric # define SYS5SIGNALS 1 /* SysV signal semantics -- reset on each sig */ 73765748Seric # define MAXPATHLEN PATHSIZE 73865748Seric # define LA_TYPE LA_ZERO 73965749Seric # define SFS_TYPE SFS_4ARGS /* four argument statfs() call */ 74065748Seric #endif 74164962Seric 74265748Seric 74365820Seric /* 74465820Seric ** Apollo DomainOS 74565820Seric ** 74665820Seric ** From Todd Martin <tmartint@tus.ssi1.com> & Don Lewis <gdonl@gv.ssi1.com> 74765982Seric ** 74865820Seric ** 15 Jan 1994 74965820Seric ** 75065820Seric */ 75165748Seric 75265820Seric #ifdef apollo 75365820Seric # define HASSETREUID 1 /* has setreuid(2) call */ 75465820Seric # define HASINITGROUPS 1 /* has initgroups(2) call */ 75565820Seric # undef SETPROCTITLE 75665820Seric # define LA_TYPE LA_SUBR /* use getloadavg.c */ 75766044Seric # define SFS_TYPE SFS_4ARGS /* four argument statfs() call */ 75865820Seric # ifndef _PATH_SENDMAILCF 75965820Seric # define _PATH_SENDMAILCF "/usr/lib/sendmail.cf" 76065820Seric # endif 76165820Seric # ifndef _PATH_SENDMAILPID 76265820Seric # define _PATH_SENDMAILPID "/etc/sendmail.pid" 76365820Seric # endif 76465820Seric # undef S_IFSOCK /* S_IFSOCK and S_IFIFO are the same */ 76565820Seric # undef S_IFIFO 76665820Seric # define S_IFIFO 0010000 76765820Seric # ifndef IDENTPROTO 76865820Seric # define IDENTPROTO 0 /* TCP/IP implementation is broken */ 76965820Seric # endif 77065982Seric #endif 77165820Seric 77265820Seric 77365820Seric 77465820Seric 77563902Seric /********************************************************************** 77663787Seric ** End of Per-Operating System defines 77763902Seric **********************************************************************/ 77863787Seric 77963949Seric /********************************************************************** 78063949Seric ** More general defines 78163949Seric **********************************************************************/ 78263949Seric 78363962Seric /* general BSD defines */ 78463962Seric #ifdef BSD 78564035Seric # define HASGETDTABLESIZE 1 /* has getdtablesize(2) call */ 78664035Seric # define HASSETREUID 1 /* has setreuid(2) call */ 78764035Seric # define HASINITGROUPS 1 /* has initgroups(2) call */ 78865830Seric # ifndef HASFLOCK 78965830Seric # define HASFLOCK 1 /* has flock(2) call */ 79065830Seric # endif 79163962Seric #endif 79263962Seric 79365189Seric /* general System V Release 4 defines */ 79465189Seric #ifdef __svr4__ 79565189Seric # define SYSTEM5 1 79665189Seric # define HASSETREUID 1 /* has seteuid(2) call & working saved uids */ 79765211Seric # ifndef HASGETUSERSHELL 79865211Seric # define HASGETUSERSHELL 0 /* does not have getusershell(3) call */ 79965210Seric # endif 80065189Seric # define setreuid(r, e) seteuid(e) 80165189Seric 80265189Seric # ifndef _PATH_UNIX 80365189Seric # define _PATH_UNIX "/unix" 80465189Seric # endif 80565189Seric # ifndef _PATH_SENDMAILCF 80665189Seric # define _PATH_SENDMAILCF "/usr/ucblib/sendmail.cf" 80765189Seric # endif 80865189Seric # ifndef _PATH_SENDMAILPID 80965189Seric # define _PATH_SENDMAILPID "/usr/ucblib/sendmail.pid" 81065189Seric # endif 81165189Seric # ifndef SYSLOG_BUFSIZE 81265189Seric # define SYSLOG_BUFSIZE 128 81365189Seric # endif 81465189Seric #endif 81565189Seric 81663787Seric /* general System V defines */ 81763787Seric # ifdef SYSTEM5 81864813Seric # include <sys/sysmacros.h> 81963949Seric # define HASUNAME 1 /* use System V uname(2) system call */ 82064705Seric # define SYS5SETPGRP 1 /* use System V setpgrp(2) syscall */ 82164962Seric # define HASSETVBUF 1 /* we have setvbuf(3) in libc */ 82263962Seric # ifndef LA_TYPE 82365749Seric # define LA_TYPE LA_INT /* assume integer load average */ 82463962Seric # endif 82565749Seric # ifndef SFS_TYPE 82665749Seric # define SFS_TYPE SFS_USTAT /* use System V ustat(2) syscall */ 82765749Seric # endif 82863949Seric # define bcopy(s, d, l) (memmove((d), (s), (l))) 82963949Seric # define bzero(d, l) (memset((d), '\0', (l))) 83063949Seric # define bcmp(s, d, l) (memcmp((s), (d), (l))) 83163787Seric # endif 83263787Seric 83363949Seric /* general POSIX defines */ 83463949Seric #ifdef _POSIX_VERSION 83564718Seric # define HASSETSID 1 /* has Posix setsid(2) call */ 83664718Seric # define HASWAITPID 1 /* has Posix waitpid(2) call */ 83763949Seric #endif 83863949Seric 83963787Seric /* 84063937Seric ** If no type for argument two of getgroups call is defined, assume 84163937Seric ** it's an integer -- unfortunately, there seem to be several choices 84263937Seric ** here. 84363937Seric */ 84463937Seric 84563937Seric #ifndef GIDSET_T 84663937Seric # define GIDSET_T int 84763937Seric #endif 84863937Seric 84964939Seric /* 85064939Seric ** Tweaking for systems that (for example) claim to be BSD but 85164939Seric ** don't have all the standard BSD routines (boo hiss). 85264939Seric */ 85364439Seric 85464939Seric #ifdef titan 85564939Seric # undef HASINITGROUPS /* doesn't have initgroups(3) call */ 85664939Seric #endif 85764939Seric 85865830Seric 85965167Seric /* 86065167Seric ** Due to a "feature" in some operating systems such as Ultrix 4.3 and 86165167Seric ** HPUX 8.0, if you receive a "No route to host" message (ICMP message 86265167Seric ** ICMP_UNREACH_HOST) on _any_ connection, all connections to that host 86365167Seric ** are closed. Some firewalls return this error if you try to connect 86465167Seric ** to the IDENT port (113), so you can't receive email from these hosts 86565167Seric ** on these systems. The firewall really should use a more specific 86665167Seric ** message such as ICMP_UNREACH_PROTOCOL or _PORT or _NET_PROHIB. If 86765167Seric ** not explicitly set to zero above, default it on. 86865167Seric */ 86964939Seric 87065167Seric #ifndef IDENTPROTO 87165167Seric # define IDENTPROTO 1 /* use IDENT proto (RFC 1413) */ 87265167Seric #endif 87365167Seric 87465211Seric #ifndef HASGETUSERSHELL 87565211Seric # define HASGETUSERSHELL 1 /* libc has getusershell(3) call */ 87665210Seric #endif 87765167Seric 87865830Seric #ifndef HASFLOCK 87965830Seric # define HASFLOCK 0 /* assume no flock(2) support */ 88065830Seric #endif 88165210Seric 88265830Seric 88364439Seric /********************************************************************** 88459023Seric ** Remaining definitions should never have to be changed. They are 88559023Seric ** primarily to provide back compatibility for older systems -- for 88659287Seric ** example, it includes some POSIX compatibility definitions 88764439Seric **********************************************************************/ 88859023Seric 88959388Seric /* System 5 compatibility */ 89059388Seric #ifndef S_ISREG 89164944Seric # define S_ISREG(foo) ((foo & S_IFMT) == S_IFREG) 89259388Seric #endif 89364944Seric #if !defined(S_ISLNK) && defined(S_IFLNK) 89464944Seric # define S_ISLNK(foo) ((foo & S_IFMT) == S_IFLNK) 89564944Seric #endif 89659388Seric #ifndef S_IWGRP 89759388Seric #define S_IWGRP 020 89859388Seric #endif 89959388Seric #ifndef S_IWOTH 90059388Seric #define S_IWOTH 002 90159388Seric #endif 90259388Seric 90359023Seric /* 90450537Seric ** Older systems don't have this error code -- it should be in 90550537Seric ** /usr/include/sysexits.h. 90650537Seric */ 90750537Seric 90850537Seric # ifndef EX_CONFIG 90950537Seric # define EX_CONFIG 78 /* configuration error */ 91050537Seric # endif 91156852Seric 91264718Seric /* pseudo-code used in server SMTP */ 91364718Seric # define EX_QUIT 22 /* drop out of server immediately */ 91464718Seric 91564718Seric 91663993Seric /* 91763993Seric ** These are used in a few cases where we need some special 91863993Seric ** error codes, but where the system doesn't provide something 91963993Seric ** reasonable. They are printed in errstring. 92063993Seric */ 92163993Seric 92263993Seric #ifndef E_PSEUDOBASE 92363993Seric # define E_PSEUDOBASE 256 92463993Seric #endif 92563993Seric 92663993Seric #define EOPENTIMEOUT (E_PSEUDOBASE + 0) /* timeout on open */ 92763993Seric #define E_DNSBASE (E_PSEUDOBASE + 20) /* base for DNS h_errno */ 92863993Seric 92963970Seric /* type of arbitrary pointer */ 93063970Seric #ifndef ARBPTR_T 93163970Seric # define ARBPTR_T void * 93263970Seric #endif 93363970Seric 93460568Seric #ifndef __P 93560568Seric # include "cdefs.h" 93660568Seric #endif 93760568Seric 93856852Seric /* 93958778Seric ** Do some required dependencies 94058778Seric */ 94158778Seric 94258778Seric #if defined(NETINET) || defined(NETISO) 94359107Seric # define SMTP 1 /* enable user and server SMTP */ 94459107Seric # define QUEUE 1 /* enable queueing */ 94559107Seric # define DAEMON 1 /* include the daemon (requires IPC & SMTP) */ 94658778Seric #endif 94758778Seric 94858778Seric 94958778Seric /* 95056852Seric ** Arrange to use either varargs or stdargs 95156852Seric */ 95256852Seric 95356852Seric # ifdef __STDC__ 95456852Seric 95556852Seric # include <stdarg.h> 95656852Seric 95756852Seric # define VA_LOCAL_DECL va_list ap; 95856852Seric # define VA_START(f) va_start(ap, f) 95956852Seric # define VA_END va_end(ap) 96056852Seric 96156852Seric # else 96256852Seric 96356852Seric # include <varargs.h> 96456852Seric 96556852Seric # define VA_LOCAL_DECL va_list ap; 96656852Seric # define VA_START(f) va_start(ap) 96756852Seric # define VA_END va_end(ap) 96856852Seric 96956852Seric # endif 97057631Seric 97157943Seric #ifdef HASUNAME 97257631Seric # include <sys/utsname.h> 97357631Seric # ifdef newstr 97457631Seric # undef newstr 97557631Seric # endif 97657943Seric #else /* ! HASUNAME */ 97757631Seric # define NODE_LENGTH 32 97857631Seric struct utsname 97957631Seric { 98057631Seric char nodename[NODE_LENGTH+1]; 98157631Seric }; 98257943Seric #endif /* HASUNAME */ 98357642Seric 98463838Seric #if !defined(MAXHOSTNAMELEN) && !defined(_SCO_unix_) 98563838Seric # define MAXHOSTNAMELEN 256 98657735Seric #endif 98758153Seric 98858153Seric #if !defined(SIGCHLD) && defined(SIGCLD) 98958153Seric # define SIGCHLD SIGCLD 99058153Seric #endif 99158153Seric 99258153Seric #ifndef STDIN_FILENO 99358153Seric #define STDIN_FILENO 0 99458153Seric #endif 99558153Seric 99658153Seric #ifndef STDOUT_FILENO 99758153Seric #define STDOUT_FILENO 1 99858153Seric #endif 99958153Seric 100058153Seric #ifndef STDERR_FILENO 100158153Seric #define STDERR_FILENO 2 100258153Seric #endif 100358689Seric 100464072Seric #ifndef LOCK_SH 100564035Seric # define LOCK_SH 0x01 /* shared lock */ 100664035Seric # define LOCK_EX 0x02 /* exclusive lock */ 100764035Seric # define LOCK_NB 0x04 /* non-blocking lock */ 100864035Seric # define LOCK_UN 0x08 /* unlock */ 100964035Seric #endif 101058692Seric 101164035Seric #ifndef SIG_ERR 101264035Seric # define SIG_ERR ((void (*)()) -1) 101358689Seric #endif 101458702Seric 101564500Seric #ifndef WEXITSTATUS 101664500Seric # define WEXITSTATUS(st) (((st) >> 8) & 0377) 101764500Seric #endif 101864500Seric #ifndef WIFEXITED 101964500Seric # define WIFEXITED(st) (((st) & 0377) == 0) 102064500Seric #endif 102164500Seric 102264561Seric #ifndef SIGFUNC_DEFINED 102364561Seric typedef void (*sigfunc_t) __P((int)); 102464561Seric #endif 102564561Seric 102665053Seric /* size of syslog buffer */ 102765053Seric #ifndef SYSLOG_BUFSIZE 102865053Seric # define SYSLOG_BUFSIZE 1024 102965053Seric #endif 103065053Seric 103158702Seric /* 103258702Seric ** Size of tobuf (deliver.c) 103358702Seric ** Tweak this to match your syslog implementation. It will have to 103458702Seric ** allow for the extra information printed. 103558702Seric */ 103658702Seric 103758702Seric #ifndef TOBUFSIZE 103865053Seric # if (SYSLOG_BUFSIZE) > 512 103965053Seric # define TOBUFSIZE (SYSLOG_BUFSIZE - 256) 104065053Seric # else 104165053Seric # define TOBUFSIZE 256 104265053Seric # endif 104358702Seric #endif 104460219Seric 104565015Seric /* 104665015Seric ** Size of prescan buffer. 104765015Seric ** Despite comments in the _sendmail_ book, this probably should 104865015Seric ** not be changed; there are some hard-to-define dependencies. 104965015Seric */ 105065015Seric 105165015Seric # define PSBUFSIZE (MAXNAME + MAXATOM) /* size of prescan buffer */ 105260219Seric /* fork routine -- set above using #ifdef _osname_ or in Makefile */ 105360219Seric # ifndef FORK 105460219Seric # define FORK vfork /* function to call to fork mailer */ 105560219Seric # endif 105665955Seric 105765955Seric /* 105865955Seric ** If we are going to link scanf anyway, use it in readcf 105965955Seric */ 106065955Seric 106165955Seric #if !defined(HASUNAME) && !defined(SCANF) 106265955Seric # define SCANF 1 106365955Seric #endif 1064