Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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.

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2018-02-25 10:35 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (312 votes). Check out past polls.