Robert Chalmers: > > I don't have the luxury of having access to a useable computer from a site > remote to my server, but I still need to test my email server, the TLS/SSL > setup, smtp and smtpd. > There are some remote test sites that also want a valid email and password! > But I'm a bit reluctant obviously. > I suspect my site is not quite right, but can't find a way to test it, and to > explain results of tests. Especially the TLS/SSL ones. > Does anyone know of any reliable testing options?
A crude hack is to give the machine an IP address alias, with the IP address that you want to impersonate, then connect from the machine itself to that address and port 25. That should work for both plaintext and "openssl s_client". BSD syntax: ifconfig em0 inet 1.2.3.4 netmask 255.255.255.255 alias BSD syntax: ifconfig em0 inet 1.2.3.4 netmask 255.255.255.255 -alias MacOS seems to support similar syntax. At a higher level, Postfix XCLIENT allows you to pretend to have any client IP address. http://www.postfix.org/XCLIENT_README.html. This is certainly sufficient for plaintext tests, but may require some hackery for tests with "openssl s_client". Wietse