OpenBSD Journal

Heads up! Gilles Chehade comments recent OpenSMTPD changes

Contributed by johan on from the you-got-mail dept.

Gilles Chehade (gilles@) commented on one of his own commits on the source-changes mailing list asking users of OpenSMTPD to submit information about any issues detected after the recent separation of virtual domains and aliases resolution code and instructions how to best make the transition.

Please see below for the comment:
On Mon, Oct 12, 2009 at 04:34:37PM -0600, Gilles Chehade wrote:
> CVSROOT:	/cvs
> Module name:	src
> Changes by:	gilles@cvs.openbsd.org	2009/10/12 16:34:37
> 
> Modified files:
> 	usr.sbin/smtpd : aliases.c lka.c mfa.c queue.c runner.c smtpd.h 
> 
> Log message:
> - fix a null deref which could happen after a couple iterations of the
> aliases/virtual domains resolution code.
> 
> - fix a logic bug which caused virtual domains not to be correctly
> handled after one iteration of the aliases resolution code.
> 
> - introduce a few helper functions to help clean up and simplify the
> lka code.
> 
> - simplify the IS_EXT/IS_MAILBOX/IS_RELAY macros so they manipulate a
> struct path * instead of the mess of dereferences we were passing them.
> 

guys, this was commited to fix a couple issues that came after the
virtual domains support was separated from the aliases resolution.

the logic behind aliases resolution has changed a bit, i did quite
a bit of cleanup, you really want to update smtpd and let jacek or
me know of issues you run into.

some structures have changed a bit, make sure to flush your queues
and make clean before you update and rebuild.

Gilles

-- 
Gilles Chehade
freelance developer/sysadmin/consultant

Please don't forget to update your setup and submit information about any issues to gilles@ and jacekm@.

(Comments are closed)


Comments
  1. By Kami Petersen (kokamomi) kokamomi@gueststars.net on

    BTW: How do you envision setting up authentication of users, particularly in virtual domain setups? What would be the storage mechanism for usernames/passwords?

    Comments
    1. By Gilles Chehade (gilles) on http://www.poolp.org/~gilles/

      > BTW: How do you envision setting up authentication of users, particularly in virtual domain setups? What would be the storage mechanism for usernames/passwords?

      smtpd has a map API which, providing some glue code, abstracts backends for key/value kind of lookups.

      currently auth doesn't use that API but uses getpwnam() calls, it's on my todo list of stuff to fix (probably in a few days) and then we only need to write the glue code to support other backends.

      Gilles

Latest Articles

Credits

Copyright © - Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to as well as images and HTML templates were copied from the fabulous original deadly.org with Jose's and Jim's kind permission. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]