Ben Barrett wrote:

> PS - I had to do some minor sleuthing to figure out the SMTP server for
> this free wifi location; they are running InterMail vM.5.01.05.32 and I
> used both the message source of a mail I was able to send to myself from
> my home ISP's SMTP, and'dig MX<domain>' (then'telnet<mailhost> 25') to
> figure that out... glory be to FOSS!  BTW, does anyone have any
> suggestions to more-easily figure out local SMTP's for random internet
> access locations?  traceroute didn't work...
> (they also seem to block some pings, incidentally -- I couldn't ping
> home, even though I could access home by web -- but I can ping google)

If you have a home base, use ssh to tunnel SMTP through your home base
to your normal SMTP server.

E.g., if your home box is home.base.example.org, and your usual
mail server is mail.example.net, use this command (as root).

    # ssh -f -L 25:mail.example.net:25 home.base.example.org

Then you never need to find the local smtp server or worry about how
it might restrict/mangle/destroy your mail.

If you're determined to let an unknown mail server butcher your mail,
then you could start by reverse-DNS mapping your IP address, then look
for MX records for the enclosing domain.

Another example:

    $ ifconfig eth0
    ... inet addr 1.2.3.4 ...
    $ host 1.2.3.4
    4.3.2.1.in-addr.arpa domain name pointer dhcp-1-2-3-4.unknown-isp.net
    $ host -t mx unknown-isp.net
    unknown-isp.net mail is handled by 10 postoffice.unknown-isp.net
    $ nc postoffice.unknown-isp.net
    220 queue.unknown-isp.net -- ESMTP
    ...

And there you are (if you're lucky).    
        
-- 
Bob Miller                              K<bob>
kbobsoft software consulting
http://kbobsoft.com                     [EMAIL PROTECTED]
_______________________________________________
EuG-LUG mailing list
[EMAIL PROTECTED]
http://mailman.efn.org/cgi-bin/listinfo/eug-lug

Reply via email to