Windows Server 2003
1830899 Members
2526 Online
110017 Solutions
New Discussion

Unable to send main via smtp server

 
cool...
Frequent Advisor

Unable to send main via smtp server

Hi,
I have checked the server for smtp connectivity it seems to be fine ,but when I run the script for sending mail it is giving following error
" The server rejected one or more recipient addresses. The server response was: 554 SPAM-
Relay detected"

But when I run the same script from other server it is running fine .What could be the problem ? this is server problem or script problem ?

or can u give me the simple steps to send mail from command prompt without using scripts
2 REPLIES 2
Dennis Handly
Acclaimed Contributor

Re: Unable to send main via smtp server

>554 SPAM-Relay detected"
>But when I run the same script from other server it is running fine.

It appears your mail server thinks your server is a SPAM-Relay and rejects it.
Edgar Zapata
Esteemed Contributor

Re: Unable to send main via smtp server

Hi,

If it's an Exchange server you'll need to enable relaying.
Open Excahnge system mgr, expand Administrative Group and browse to the selected server. Expand protocols, SMTP and default SMTP Virtual Server, properties, Access tab and once there, just configure the relay restrictions. Add the client IP address for the computer that you want to send mails from.

There's this one utility I have attached:
This can do the job for you but it will still need a relay SMTP server.


C:\>smtpsend /?

SMTPSend v3.05 (WinNT 4.x)
(c) copyright DataEnter, Michael Kocum 1993-1998
portions (c) Microsoft Corp.

Error: No destination address!
SMTPSend uses the following arguments:

-f
From Address
-t
Destination addresses
-c CC Address
-h SmartHost
-s Subject for message
-a File(s) to attach to message
-i File to import for message body
-r Disable adding linebreaks at column 78
-1 Enable Single To Mode
-v Verbose Mode ( Show Message Transfer )
-4 SOCKS4 host
-5 SOCKS5 host
-g Sends SMTP File ( Ignores -c,-a,-i,-s,-r )
-@ Read additional arguments from a file (-@FILE.EXT)

Example:
SMTPSend -fmk@domain.com -tbg@msn.com -hmx.domain.com -iBODY.TXT -aATTACH.XLS


Hope it helps.