ensure that regcomp() errors get logged by having regerror() syslog them, and by having smtpd capture send's stderr and logging it even if send's exit status is good. i also changed "smtpd" to "smtpd.db" for the log file for -d output; feel free to keep or discard that change.