Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

sending mail in an intranet

by archen (Pilgrim)
on Jun 26, 2002 at 02:21 UTC ( #177266=perlquestion: print w/ replies, xml ) Need Help??
archen has asked for the wisdom of the Perl Monks concerning the following question:

This question isn't exactly dealing with Perl. Right now I'm working on a few company intranet projects. Basically I'm just doing simple CGI scripts on a Linux server (nothing special). Now the problem is that the scripts need to communicate with someone - that is, they need to e-mail somebody. The computer that I need to send mail to is actually running MS Exchange. According to nmap it's listening for mail, so that isn't a problem. The problem is that both computers are on an internal intranet, and the exchange server doesn't have a fully qualified domain name. So how do I get a perl script to mail this server? Throwing mail at an ip address doesn't seem to work, as sendmail tries to resolve an ip like a domain name.

Comment on sending mail in an intranet
Replies are listed 'Best First'.
Re: sending mail in an intranet
by screamingeagle (Curate) on Jun 26, 2002 at 05:03 UTC
    you could try using the NetBIOS name rather than the FQDN...
Re: sending mail in an intranet
by Len (Friar) on Jun 26, 2002 at 20:25 UTC
    As you are on linux add the IP-address to /etc/hosts and make sure files is used for host lookups in /etc/nsswitch.conf.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://177266]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2015-11-27 13:52 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (729 votes), past polls