Menu

#2 Patch to specify hostname to bind SMTP server to

open-rejected
nobody
None
5
2005-04-28
2005-04-25
No

Dumbster 1.6 allows the server to listen on any port, but the
hostname is not selectable. This is a simple--and I think backward
compatible--patch so that you can construct a SimpleSmtpServer
instance and specifiy a hostname as well as a port. The hostname
and port can also be specified to the start() method.

Enjoy.

Discussion

  • Casey Duncan

    Casey Duncan - 2005-04-25

    Patch for SimpleSmtpServer.java

     
  • Jason Kitchen

    Jason Kitchen - 2005-04-28

    Logged In: YES
    user_id=752825

    Maybe it's just me but I'm really not sure what value this
    is adding. What is the purpose of setting the hostname? It
    is never accessed from outside of SimpleSmtpServer and is
    not passed to any other objects ?

     
  • Jason Kitchen

    Jason Kitchen - 2005-04-28
    • status: open --> open-rejected
     
  • David D. Kilzer

    David D. Kilzer - 2006-04-21

    Logged In: YES
    user_id=84089

    > What is the purpose of setting the hostname?

    By default, Java will bind to a port on EVERY IP address on
    EVERY ethernet interface available on a host. Many consider
    this a security risk since you're listening on something
    other than localhost, and any other system on the network
    can attempt to connect to your host via port 25.

    This patch allows the user to limit Dumbster to bind to a
    single IP address and port on a host. Most people will want
    to bind to localhost.

     

Log in to post a comment.

MongoDB Logo MongoDB