File:  [Research Unix] / researchv10no / cmd / nupas / smtp / smtpd.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:35 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

#include <stdio.h>
#include "smtp.h"
#include "sys.h"

int norun;
int log;
int debug = 0;

char *progname, *helohost, *thishost;
extern char *sysname_read();


main(argc, argv)
char *argv[];
{
	int c;
	extern int optind;
	extern char *optarg;

	progname = argv[0];
	Openlog("smtpd", LOG_PID, LOG_SMTPD);
	setlogmask(LOG_UPTO(LOG_INFO));

	umask(2);

	while((c = getopt(argc, argv, "H:h:DnL:")) != EOF) {
		switch(c) {

		case 'H':	helohost = optarg;	break;
		case 'h':	thishost = optarg;	break;
		case 'L':	setloglevel(optarg);	break;
		case 'n':	norun++;
		case 'D':	debug++;		break;
		case '?':
		default:
			Syslog(LOG_CRIT, "%s: usage\n", progname);
			exit(2);
		}
	}
	if(helohost == NULL)
		helohost=sysname_read();
	converse(stdin, stdout);
	/* NOTREACHED */
	return 0;
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.