smtpd: includes cleanup

2021-05-26 Thread Eric Faurot
Cruft has accumulated on that front. This diff cleans it up: the few headers that are directly required for smtpd.h are included there, and unnecessary includes are removed from the rest of the files. Eric. Index: aliases.c === RCS

Re: smtpd: err/errx -> fatal/fatalx

2021-05-26 Thread Todd C . Miller
On Wed, 26 May 2021 16:24:42 +0200, Eric Faurot wrote: > This diff replaces calls to err(3)/errx(3) with fatal()/fatalx() from > log.c for code that runs in the deamon (we want errors logged to > syslog, not stderr). It's pretty mechanical, with two things to note: > > The call to default_config(

smtpd: err/errx -> fatal/fatalx

2021-05-26 Thread Eric Faurot
This diff replaces calls to err(3)/errx(3) with fatal()/fatalx() from log.c for code that runs in the deamon (we want errors logged to syslog, not stderr). It's pretty mechanical, with two things to note: The call to default_config() has to be done after log_init() in smtpd.c, and log_init() is c