Sorry, I'm just plain slammed trying to get ready for Pycon.

On Mar 08, 2013, at 04:50 PM, Chris Cargile wrote:

>Is the smtp port setting declared in a configuration file used to bind a
>mailman instance to a particular process (such as the MTA) on a particular
>port?

Yes.  The base configuration values are in src/mailman/config/schema.cfg.
These get overridden/specialized by src/mailman/config/mailman.cfg by default,
and whatever mailman.cfg file you might have installed when you run MM3 in
production.

In a testing environment, src/mailman/testing/testing.cfg is the top
configuration file.

Look in the [mta] section and you'll see that by default, Mailman connects to
localhost:25.  This changes to localhost:9025 when running the test suite.

>I tried looking through the configuration files to identify the location to
>which I thought the stmpd was trying to bind but did not figure out how it
>worked

MM3 uses the lazr.config system.  http://pythonhosted.org/lazr.config/

>I am hoping to learn how this works (and to hack my configuration, if
>needed) to get past the SMTP/RestLayer teardowns, and am stuck getting:
>
>[Errno 98] Address already in use (log
>file<http://pastebin.com/raw.php?i=HM6ej8V4>
>)

If you're getting this during the tests, it almost always means that the
Python subprocess binding to that address didn't exit.  The test suite (and
MM3 in general) is pretty careful about shutting down its subprocesses, but
sometimes this fails.  Use killall or friends to actually stop the process.
We use lazr.smtptest <http://pythonhosted.org/lazr.smtptest/> to start up the
SMTPd for testing, and this should properly set the reuse flag on the socket.

Cheers,
-Barry
_______________________________________________
Mailman-Developers mailing list
Mailman-Developers@python.org
http://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9

Reply via email to