Simon Burge <[EMAIL PROTECTED]> writes:
> Here's a patch that allows you to add
> 
>       --with-smtpserver=<some.host.name>
> 
> to the ./configure command line that sets the "servers: " line in
> etc/mts.conf, defaulting to "localhost" (the current value).  Around
> here, we use "mailhost" so that all machines in the current domain just
> talk to a central machine and nothing else runs an MTA.  Now, I can use
> 
>       --with-smtpserver=mailhost
> 
> instead of having to remember to fix this by hand (and often forgetting
> to do so!).
> 
> Hopefully this will be of use to someone else as well...

Excellent idea, Simon!  

I've applied your patch, although I did make a few minor changes.  First
off, I've renamed it -- there's no reason one couldn't specify multiple
servers with the option (just like the "servers: " line in mts.conf), so
it's now --with-smtpservers.
                          ^
Also, unless I'm severely mistaken, it's not necessary to propagate the
$(smtpservers) make value from the top level Makefile to etc/Makefile, since
the latter has an explicit setting for it (and it's not used elsewhere), so
I put the top-level Makefile.in back the way it was.

Speaking of the Makefiles, a problem with your new configure/mts.conf
interaction was that re-running configure (i.e. with a changed value of
--with-smtpservers) would not result in an updated copy of mts.conf, so I
added a new dependency for mts.conf: Makefile.  I could have also made it
depend on ../config.status, I guess, but a minor advantage of depending on
Makefile is that mts.conf will also get regenerated if a user manually edits
the setting of $(smtpservers) in Makefile.

One thing you forgot to do was add documentation of your --with flag to the
INSTALL file, so I did that.

Finally, inspired by your idea, I added an --enable-masquerade option to
configure.  Any subset of "draft_from mmailid username_extension" may be
specified, and the values will be written to the "masquerade:" line of
mts.conf.  As a shortcut, --enable-masquerade can be specified without any
values to enable all three types.

Very nice to no longer have to manually edit mts.conf after every single
reinstall.  Thanks again for the patch.

-----------------------------------------------------------------------
Dan Harkless                   | To prevent SPAM contamination, please 
[EMAIL PROTECTED]      | do not post this private email address
SpeedGate Communications, Inc. | to the USENET or WWW.  Thank you.     

Reply via email to