Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks , I just downloaded Sendmail::Mail module. I am new to it. I am trying to configure the mail server but not sure how ? How do I find the mail server I am using on the box? I have windows server 2003 installed .
unshift @{$Mail::Sendmail::mailcfg{'smtp'}} , 'my.mail.server';
error:
connect to localhost failed (Unknown error) no (more) retries!connect +to my.mail.server fai led (Unknown error) connect to my.mail.server failed connect to localhost failed (Unknown error) connect to localhost failed connect to localhost failed (Unknown error) no (more) retries!

2005-10-03 Retitled by Arunbear, as per Monastery guidelines
Original title: 'Sendmail::Mail'

Replies are listed 'Best First'.
Re: Mail::Sendmail - how to configure mail server?
by marto (Cardinal) on Oct 03, 2005 at 16:23 UTC
Re: Mail::Sendmail - how to configure mail server?
by atcroft (Abbot) on Oct 03, 2005 at 16:20 UTC

    Try telnetting to port 25 on my.mail.server (or localhost, or whatever machine you are pointing this at). If you get a connection, type 'QUIT' and you know there is an SMTP server listening there-if it fails to connect, you know either there isn't a mailserver running there, or something is blocking your connection to it.

    HTH.

Re: Mail::Sendmail - how to configure mail server?
by Skeeve (Parson) on Oct 03, 2005 at 20:55 UTC
    Simply check what is entered in you mail client's configuration as outgoing mail server (or similar). Use that one for the module. "my.mail.server." is wrong for sure. localhost will be wrong too on windows, I guess.

    $\=~s;s*.*;q^|D9JYJ^^qq^\//\\\///^;ex;print
Re: Mail::Sendmail - how to configure mail server?
by cognizant (Pilgrim) on Oct 04, 2005 at 04:20 UTC
    Check your outgoing mail (smtp) port and smtp server information (Example: 192.125.1.45). In sendmail.pm, default port value given is 25 (change it if you always use a non-standard port).
    unshift @{$Mail::Sendmail::mailcfg{'smtp'}} , "192.125.1.45";