Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Search Forums:



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-06-2012
Registered User
 

Join Date: Oct 2011
Posts: 19
Thanks: 2
Thanked 0 Times in 0 Posts
Server error: 501 #5.1.3 in UNIX

HI All ,

I am getting below errors .

Server error:501#5.1.3 Partial domain NOT allowed:'' or

Error IN sending mail Server error:501#5.1.3 Partial domain NOT allowed:'
I am using unix script to call filename.csv and send into outlook mail as attachment.Though file is present but i never receive the mail .

This issue is not permanent .Sometimes i find no error ,it executes successfully with smtp server. Not sure what is the rootcause as no logs are captured . Is it because of server/outlook/network issue ? please guide
Sponsored Links
    #2  
Old 02-06-2012
methyl methyl is offline Forum Staff  
Moderator
 

Join Date: Mar 2008
Posts: 5,652
Thanks: 205
Thanked 560 Times in 539 Posts
What Operating System and version are you using? What Shell do you use?
What mail client do you use?
Can you post the script which is failing?
Is there only one mail relay server involved here?

Ps. You probably have a space character in the addressee email address.

Last edited by methyl; 02-06-2012 at 06:56 AM..
Sponsored Links
    #3  
Old 02-06-2012
Registered User
 

Join Date: Oct 2011
Posts: 19
Thanks: 2
Thanked 0 Times in 0 Posts
Hi Methyl ,

Using UNIX-HP F-secure SSH Client 5.3 ( Ksh )

Mail Client - Windows 7 using Microsoft office outlook3.

Code snippet failing :

Code:
&Exact::SendMail::sendMailMessage(
            $Exact::Config::MAIL_TO_ADDRESS,
            "File_Info",
            "Counts | $PERIOD",
            $mailBody,
            $FILE_NAME);
 
        &Exact::Logging::debug(__FILE__, __PACKAGE__,"Mail sent.");
print $dec;
} catch Error with {
        my $err = shift;
        &Exact::Logging::Trace::endWithError(__FILE__,$err);
    die;
} finally {
        $globTrDbHandle->disconnect;

I verified sending mail to 'MAIL_TO_ADDRESS' , it works fine .
I face issue with 3 out of 5 , when same script is run @different intervals/days. Its not problem with code . any help appreciated

Last edited by Franklin52; 02-06-2012 at 08:12 AM.. Reason: Please use code tags for data and code samples, thank you
    #4  
Old 02-06-2012
methyl methyl is offline Forum Staff  
Moderator
 

Join Date: Mar 2008
Posts: 5,652
Thanks: 205
Thanked 560 Times in 539 Posts
Sorry, I meant the mail client on the unix box. Though it looks like it is going to be "sendmail", but I am not 100% sure because "sendmail" is always lower-case.

The code you post is completely alien to me. What computer language is this? (Update: It's Perl).

I don't recognise your description of your unix Operating System (seems more like a PC terminal emulator with a virus scanner). Is the unix Operating System HP-UX? If so, you should be able to find the outgoing email logged in /usr/adm/syslog/mail.log including the actual email address which triggered the 501 error.
One way to trigger this error is to send to say "microsoft .com" (note the extra space character).

Last edited by methyl; 02-06-2012 at 09:26 AM.. Reason: worked out what language it is
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Error in installing mysql on unix server aish11 Shell Programming and Scripting 6 02-01-2012 03:37 AM
Crash error on my unix server danilosevilla SCO 3 04-12-2011 07:28 PM
Error copying files from Unix (Solaris10) to Windows Server 2003 using scp/sftp ajaykumarb Shell Programming and Scripting 0 07-21-2010 08:44 AM
Error while connecting to MySQl Server 5.1.34 on UNIX platform. amit_27 UNIX and Linux Applications 2 02-02-2010 08:27 AM
Receiving error on Unix server-- java.lang.UnsatisfiedLinkError: registerNatives loveToBlade UNIX for Dummies Questions & Answers 4 08-23-2006 06:00 AM



All times are GMT -4. The time now is 04:30 AM.