Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,22 @@ Running localmail

.. code-block:: bash

twistd localmail
twistd -y localmail mail

This will run localmail in the background, SMTP on port 2025 and IMAP on 2143,
It will log to a file ./twistd.log. Use the -n option if you want to run in
the foreground, like so.

.. code-block:: bash

twistd -n localmail
twistd -n -y localmail mail


You can pass in arguments to control parameters.

.. code-block:: bash

twistd localmail --imap <port> --smtp <port> --http <port> --file localmail.mbox
twistd localmail --imap <port> --smtp <port> --http <port> --file localmail.mbox


You can have localmail use random ports if you like. The port numbers will be logged.
Expand Down
8 changes: 7 additions & 1 deletion localmail/cred.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
from zope.interface import implements
try:
# old
from zope.interface import implements
except:
# 6.0+
from zope.interface import classImplements as implements

from twisted.internet import defer
from twisted.cred import portal, checkers, credentials
from twisted.mail import smtp, imap4
Expand Down
6 changes: 5 additions & 1 deletion twisted/plugins/localmail_tap.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
from zope.interface import implements
try:
from zope.interface import implements
except:
# 6.0+
from zope.interface import classImplements as implements

from twisted.application import service
from twisted import plugin
Expand Down