Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Don't know what you're doing exactly, but it sounds that the script wants the name of a machine running sendmail. Safest bet is to run sendmail or postfix and to point the script at localhost.
i want to run sendmail with the machine that the script is running on here is a piece of my script:
-------------------------------
my $mail_relay = "localhost";
my $mail_from = "ron.srnka\@winner-net.com";
my $mail_to = "ron.srnka\@winner-net.com";
my $smtp = Net::SMTP->new($mail_relay, Hello => "helo there") or die ("errrr");
--------------------------------
instead of localhost i have tried : www.winner-net.com www.winner-net.uk.com
winner-net.com
winner-net.uk.com
these are meaning less to you but anyway, it always dies when Net::SMTP->new is run...
i got in with this and tried to send an email:
[root@WINNERNET-01 maint]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 WINNERNET-01 ESMTP Sendmail 8.11.6/8.11.6; Wed, 20 Aug 2003 17:38:55 +0100
set local_echo
500 5.5.1 Command unrecognized: "set local_echo"
Helo maint
250 WINNERNET-01 Hello localhost.localdomain [127.0.0.1], pleased to meet you
mail from:
501 5.5.2 Syntax error in parameters scanning "from"
mail from: ron.srnka@winner-net.com
250 2.1.0 ron.srnka@winner-net.com... Sender ok
rcpt to: ronsrnka@hotmail.com
250 2.1.5 ronsrnka@hotmail.com... Recipient ok
data hello ronny
354 Enter mail, end with "." on a line by itself
.
250 2.0.0 h7KGfm805112 Message accepted for delivery
quit
221 2.0.0 WINNERNET-01 closing connection
Connection closed by foreign host.
Don't worry too much about that relay word. It does seem however that your sendmail is unsuccessful in talking to any outside mailserver. That does not increase its usefulness.
Could it be you have outgoing connections on port 25 blocked by any chance? (perhaps your company has blocked it on the firewall, I don't know. In that case, use the company mail server as a relay host instead. You never know :-)) Have you used sendmail on this machine successfully before (to send mail to the world, that is.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.