CVSROOT:        /cvs
Module name:    src
Changes by:     jac...@cvs.openbsd.org  2009/04/16 09:35:06

Modified files:
        usr.sbin/smtpd : control.c enqueue.c mfa.c queue.c smtp.c 
                         smtp_session.c smtpctl.c smtpd.h 

Log message:
Total rewrite of the sendmail interface. Adds support for -t, -v,
and -F cmdline args. Also, date and Message-Id headers are added
when missing.

The main trouble with the current enqueue code is that it requires
dealing with problems in the control process that are already solved
in the smtp process, ie. duplicating a lot of code which interacts
with untrusted clients. This diff solves this by making sendmail
obtain a SMTP socket from smtp via smtpd.sock, and using that socket
to deliver the message. For smtpd it looks as if connection was
made from the network, only difference being the F_MESSAGE_ENQUEUED
message flag, handy when differentation between local and remote
deliveries is wanted.

Most of the features come from the femail program, created by henn...@.

Additional testing by Nigel J. Taylor.

ok gilles@, henning@ happy with smtpd using femail code

Reply via email to