pablomelo / subethasmtp

Automatically exported from code.google.com/p/subethasmtp
Other
0 stars 0 forks source link

need to bind smtp server to all addresses #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. have a server with two ip addresses, one is static, and the second is 
appearing when entering VPN or something
2. running unit tests with wiser in random times

What is the expected output? What do you see instead?

unit tests expect wiser to be bound to certain ip address (e.g. first) instead 
we got it bound to a random ip address, depending on situation

ubuntu 11, old wiser 1.2, also tried wiser 3.1.6

Original issue reported on code.google.com by gmazur...@gmail.com on 15 Dec 2011 at 6:55

GoogleCodeExporter commented 9 years ago
You can call wiser.getServer() which returns an instance of the SMTPServer 
where you can call:

 /** null means all interfaces */
        public void setBindAddress(InetAddress bindAddress)

I hope that helps.

Original comment by latch...@gmail.com on 15 Dec 2011 at 7:18