Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (13)
As of 2014-08-20 20:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (123 votes), past polls