LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-05-2006, 02:46 PM   #1
consty
Member
 
Registered: Feb 2004
Location: Douala-Cameroun
Distribution: RedHAt 9 ES
Posts: 85

Rep: Reputation: 15
Sending msg with smtp


Hi,
I exit as if the foreign host has refused the
connexion when trying to execute the following script.
What could be the error ?
Thanks


#!bin/ksh
telnet 173.142.12.19 25 <<BEGIN
EHLO webmail.company.com
MAIL FROM:<malik@company.com>
RCPT TO:<malik@company.com>
DATA
DATE: 05 may 2006 19:42:00
From: malik@company.com
To: malik@company.com
Cc: muself@company.com
Subject: License

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb

quit
BEGIN
 
Old 05-05-2006, 03:34 PM   #2
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
have you tried entering it manually?

IF the connection is refused, the most probable reasons would be that the firewall isnšt letting the query through or that the smtpd isn't running.
 
Old 05-07-2006, 01:11 PM   #3
consty
Member
 
Registered: Feb 2004
Location: Douala-Cameroun
Distribution: RedHAt 9 ES
Posts: 85

Original Poster
Rep: Reputation: 15
Hi Artanicus,
It works manually.
Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sending msg through linux theep Linux - Software 1 02-09-2006 03:22 AM
sending through IMAP (not SMTP)? Moebius Linux - Networking 6 10-03-2005 04:29 PM
Simple SMTP Mail Sending? usulsuspct Linux - Software 3 01-27-2005 04:11 PM
sending smtp mail the-chains Linux - General 0 12-08-2004 08:44 PM
Postfix Help - Sending via third party smtp scarstens Linux - Networking 3 01-27-2004 06:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration