On Fri, Sep 7, 2012 at 4:32 AM, David Walker <davidianwal...@gmail.com> wrote: > Gilles Chehade <gilles () poolp ! org> >> We are getting closer to a stable version of OpenSMTPD > > Which to my mind raises the question of how OpenSMTPD is to be > implemented alongside Sendmail in the base system. > Presumably, as per other items that are included in base but not the > default, i.e. DNS services, etcetera, there will be a perhaps lengthy > period where these systems co-exist and are both intended to be usable > in their own right. > > AFAIUI, currently base contains some specific OpenSMTPD items for use > and documentation, smtpd and smtpd(8), smtpctl and smtpctl(8), > smtpd.conf and smtpd.conf(5) ... > These items exist in their own name space and are accessible. > > These man pages, and by extension these services, reference and depend > on utilities and concomitant man pages which are taxonomically > identical to similar items designed for Sendmail ... > Being labelled identically there's only room for one of each and as > Sendmail is the current default mail system the OpenSMTPD items are > not installed. > > The OpenSMTPD man pages don't make this clear and other than OpenSMTPD > not working when the Sendmail incumbents are used and referenced > there's no indication that something is awry. > > For instance, if I read smtpd.conf(5) I see references like this: > map map source type source > Maps are used to provide additional configuration information for > smtpd(8). > > map may be named freely. > > type may be one of the following: > > db Mappings are stored in a file created using makemap(8). > This is the default type if none is specified. > plain Mappings are stored in a plain text file using the same > format as used to generate makemap(8) mappings. > > On any system from the last year or so, following the reference to > makemap(8) takes me to the installed Sendmail items. > > As the OpenSMTPD makemap(8) man page puts it: > The > .Nm > command first appeared in > .Ox 4.6 > as a replacement for the equivalent command shipped with sendmail. > > So I get some OpenSMTPD items, which depend on other items that are > not installed, but still appear and do something, as identically named > items that Sendmail relies on are installed instead. > > I may be out of touch here, but certainly in the past this was my > experience, using OpenSMTPD items in base and following documentation > and assuming that the included items were correct and appropriate. > Assumption might not be the best idea, but in this case the assumption > was that the Sendmail utilities and documentation were functionally > effective as if this was not the case that OpenSMTPD would have it's > own utilities that were included in base also and of necessity > labelled originally. > > Best wishes. >
You might have missed the mailwrapper(8) reference in smtpd(8) : smtpd is not enabled by default. In order to use it as the system mailer, ensure the mail queue is empty, then stop sendmail(8): # /etc/rc.d/sendmail stop Modify the current mailwrapper(8) settings by editing /etc/mailer.conf: sendmail /usr/sbin/smtpctl send-mail /usr/sbin/smtpctl mailq /usr/sbin/smtpctl makemap /usr/libexec/smtpd/makemap newaliases /usr/libexec/smtpd/makemap Rebuild the aliases database, and enable the daemon: # newaliases # echo "sendmail_flags=NO" >> /etc/rc.conf.local # echo "smtpd_flags=" >> /etc/rc.conf.local # /etc/rc.d/smtpd start