on 10-24-2014 11:50 AM
I am using emailsmtp powerbuilder application for sending the email. All internal email is going using this program. When I am sending the external email the following error is coming
Server error
550 5.7.1 unable to relay
command:
rcpt to <myemailaddress>
If you have any idea please help
Regards
Pol
Is this an internal Exchange server?
Often times with Exchange you can get away with not passing userid/password because it uses Active Directory to authenticate you. When sending external emails, it might need you to pass in your userid & password.
If adding userid/password doesn't help, there is an Exchange setting "Allow all computer which successfully authenticate to relay, regardless of the list above" that may need to be turned on.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Polachan;
Hmmm ... not much in your description for us to help you solve the issue.
1) What is RCPT?
2) How are you implementing WinSOCK?
3) Did this work before?
4) Any SMTP command diagnostics?
etc
Regards ... Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
IIRC, emailsmtp is a PB tool that implements SMTP protocol for PowerBuilder by Roland Smith.
The "RCPT TO" line is one of the commands you send to a SMTP server while sending / transfering mail to specify the recipient of your message.
A typical message conversation can be prototyped manually with "telnet" (in my example to an AOL mail server):
telnet mailin-01.mx.aol.com 25
HELO yourdomainname.com
MAIL FROM: <you@hostname.com>
Note: You must include the equality(< >) signs
RCPT TO: <postmaster@aol.com>
Note: You must include the equality(< >) signs
DATA
FROM: <you@hostname.com>
Type a brief message, followed by <Enter> . <Enter> (Type a period on a line by itself, then hit ENTER.)
.
That simple example does not handle authentication.
If you want to test plain authentication, you can enter the following after the HELO command (here we are using user=alice pwd=wonderland encoded in base64)
AUTH PLAIN AGFsaWNlAHdvbmRlcmxhbmQ=
235 Authentication succeeded
You can generate the login with a perl one-liner :
perl -MMIME::Base64=encode_base64 -e "print encode_base64(\"\0user\0password\");"
You can either test the LOGIN authentication that consist in providing the login and password separately, with base64 encoded prompts:
AUTH LOGIN
334 VXNlcm5hbWU6 (base64 for Username:)
YWxpY2U= (base64 for alice)
334 UGFzc3dvcmQ6 (base64 for Password:)
d29uZGVybGFuZA== (base64 for wonderland)
235 Authentication succeeded
Please can u let me know how to test my setting is right or not using telent
Example
sending email address = ppp@testmail.com
to email address = john@receiveemail.com
ipaddress = 20.30.10.5
Where do need to give login authentication and password to test the email
Regards
Pol
The function of_SetLogin is used to set the userid & password. Make sure you have the correct server name/IP and port. Then call the correct Send function, of_SendSSLMail for SSL for example.
I haven't used Telnet so I can't help with that. Is there an administrator for your mail server that can help you?
Just replace your settings in my example :
telnet 20.30.10.5 25
HELO your-local-fqdn.or-ip.com
MAIL FROM: <ppp@testmail.com>
RCPT TO: <john@receiveemail.com>
DATA
FROM: <ppp@testmail.com>
This is a test message
.
You should get a status back after each end of line that you send telling if there is a problem or not.
To end a SMTP session, just enter the "QUIT" command.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.