003 File Manager
Current Path:
/usr/src/contrib/sendmail/src
usr
/
src
/
contrib
/
sendmail
/
src
/
📁
..
📄
Makefile
(347 B)
📄
Makefile.m4
(4.37 KB)
📄
README
(81.76 KB)
📄
SECURITY
(7.5 KB)
📄
TRACEFLAGS
(3.1 KB)
📄
TUNING
(10.22 KB)
📄
alias.c
(22.22 KB)
📄
aliases
(1.43 KB)
📄
aliases.5
(3.15 KB)
📄
arpadate.c
(4.01 KB)
📄
bf.c
(17.58 KB)
📄
bf.h
(1007 B)
📄
collect.c
(24.45 KB)
📄
conf.c
(152.23 KB)
📄
conf.h
(7.13 KB)
📄
control.c
(8.91 KB)
📄
convtime.c
(3.56 KB)
📄
daemon.c
(99.13 KB)
📄
daemon.h
(1.46 KB)
📄
deliver.c
(151.7 KB)
📄
domain.c
(36.74 KB)
📄
envelope.c
(31.71 KB)
📄
err.c
(26.52 KB)
📄
headers.c
(50.32 KB)
📄
helpfile
(5.53 KB)
📄
macro.c
(14.86 KB)
📄
mailq.1
(3.46 KB)
📄
main.c
(108.07 KB)
📄
map.c
(177.38 KB)
📄
map.h
(3.81 KB)
📄
mci.c
(35.37 KB)
📄
milter.c
(103.43 KB)
📄
mime.c
(30.7 KB)
📄
newaliases.1
(1.27 KB)
📄
parseaddr.c
(80.3 KB)
📄
queue.c
(206.08 KB)
📄
ratectrl.c
(13.01 KB)
📄
ratectrl.h
(3.94 KB)
📄
readcf.c
(119.73 KB)
📄
recipient.c
(48.48 KB)
📄
sasl.c
(5.7 KB)
📄
savemail.c
(43.3 KB)
📄
sendmail.8
(17.31 KB)
📄
sendmail.h
(103.76 KB)
📄
sfsasl.c
(21.01 KB)
📄
sfsasl.h
(644 B)
📄
shmticklib.c
(1.51 KB)
📄
sm_resolve.c
(33.24 KB)
📄
sm_resolve.h
(5.25 KB)
📄
srvrsmtp.c
(133.04 KB)
📄
stab.c
(8.73 KB)
📄
stats.c
(4.17 KB)
📄
statusd_shm.h
(945 B)
📄
sysexits.c
(3.61 KB)
📄
timers.c
(4.29 KB)
📄
timers.h
(800 B)
📄
tls.c
(62.13 KB)
📄
tls.h
(8.1 KB)
📄
tlsh.c
(4.73 KB)
📄
trace.c
(4.25 KB)
📄
udb.c
(28.98 KB)
📄
usersmtp.c
(76.98 KB)
📄
util.c
(56.62 KB)
📄
version.c
(539 B)
Editing: sysexits.c
/* * Copyright (c) 1998-2001 Proofpoint, Inc. and its suppliers. * All rights reserved. * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved. * Copyright (c) 1988, 1993 * The Regents of the University of California. All rights reserved. * * By using this file, you agree to the terms and conditions set * forth in the LICENSE file which can be found at the top level of * the sendmail distribution. * */ #include <sendmail.h> SM_RCSID("@(#)$Id: sysexits.c,v 8.35 2013-11-22 20:51:57 ca Exp $") /* ** DSNTOEXITSTAT -- convert DSN-style error code to EX_ style. ** ** Parameters: ** dsncode -- the text of the DSN-style code. ** ** Returns: ** The corresponding exit status. */ int dsntoexitstat(dsncode) char *dsncode; { int code2, code3; /* first the easy cases.... */ if (*dsncode == '2') return EX_OK; if (*dsncode == '4') return EX_TEMPFAIL; /* reject other illegal values */ if (*dsncode != '5') return EX_CONFIG; /* now decode the other two field parts */ if (*++dsncode == '.') dsncode++; code2 = atoi(dsncode); while (*dsncode != '\0' && *dsncode != '.') dsncode++; if (*dsncode != '\0') dsncode++; code3 = atoi(dsncode); /* and do a nested switch to work them out */ switch (code2) { case 0: /* Other or Undefined status */ return EX_UNAVAILABLE; case 1: /* Address Status */ switch (code3) { case 0: /* Other Address Status */ return EX_DATAERR; case 1: /* Bad destination mailbox address */ case 6: /* Mailbox has moved, No forwarding address */ return EX_NOUSER; case 2: /* Bad destination system address */ case 8: /* Bad senders system address */ return EX_NOHOST; case 3: /* Bad destination mailbox address syntax */ case 7: /* Bad senders mailbox address syntax */ return EX_USAGE; case 4: /* Destination mailbox address ambiguous */ return EX_UNAVAILABLE; case 5: /* Destination address valid */ /* According to RFC1893, this can't happen */ return EX_CONFIG; } break; case 2: /* Mailbox Status */ switch (code3) { case 0: /* Other or Undefined mailbox status */ case 1: /* Mailbox disabled, not accepting messages */ case 2: /* Mailbox full */ case 4: /* Mailing list expansion problem */ return EX_UNAVAILABLE; case 3: /* Message length exceeds administrative lim */ return EX_DATAERR; } break; case 3: /* System Status */ return EX_OSERR; case 4: /* Network and Routing Status */ switch (code3) { case 0: /* Other or undefined network or routing stat */ return EX_IOERR; case 1: /* No answer from host */ case 3: /* Routing server failure */ case 5: /* Network congestion */ return EX_TEMPFAIL; case 2: /* Bad connection */ return EX_IOERR; case 4: /* Unable to route */ return EX_PROTOCOL; case 6: /* Routing loop detected */ return EX_CONFIG; case 7: /* Delivery time expired */ return EX_UNAVAILABLE; } break; case 5: /* Protocol Status */ return EX_PROTOCOL; case 6: /* Message Content or Media Status */ return EX_UNAVAILABLE; case 7: /* Security Status */ return EX_DATAERR; } return EX_UNAVAILABLE; } /* ** EXITSTAT -- convert EX_ value to error text. ** ** Parameters: ** excode -- rstatus which might consists of an EX_* value. ** ** Returns: ** The corresponding error text or the original string. */ char * exitstat(excode) char *excode; { char *c; int i; char *exitmsg; if (excode == NULL || *excode == '\0') return excode; i = (int) strtol(excode, &c, 10); if (*c != '\0') return excode; exitmsg = sm_sysexitmsg(i); if (exitmsg != NULL) return exitmsg; return excode; }
Upload File
Create Folder