issue in mail command


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting issue in mail command
# 1  
Old 07-22-2011
issue in mail command

I have used the mail command from the command line for sending mail from one machine to anther machine.

Example:

mail -s "Test" thillaselvan@xxx.co.in
Testing

But the mail is not getting received.
I have checked the logs in the following file.

tail -f /var/log/exim4/mainlog

It is logging the following message.

2011-07-21 18:07:37 1QjsVV-0001Q9-BS ** thillaiselvan@bksys.co.in R=nonlocal: Mailing to remote domains not supported

Why it is not sending the mails in this machine to other machines?.

What needs to be done?

If I checked the mail from my local machine means it is working.

Kindly guide me.
Thanks in advance!

---------- Post updated 07-22-11 at 08:36 AM ---------- Previous update was 07-21-11 at 06:56 PM ----------

Dear All,
Any solution please...
Thanks in Advance!
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Unable to send mail with 'mail' command

I am unable to cause the 'mail' command to send mail from my linux ubuntu 15.10 computer. File 'mail.log' typically reports Connection timed out. I issue the command: mail -s "my subject" recipient@domain.com < filenamewhere filename is a file containing my message. Specifically, the... (3 Replies)
Discussion started by: tcnm
3 Replies

2. Homework & Coursework Questions

Creating a function that sends a mail using mail command

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: The function will be called m and it will allow you to send an email to someone using the mail command. The... (1 Reply)
Discussion started by: Drucian
1 Replies

3. Solaris

Mail issue

Hi guys ! I am using Oracle Ops Center and have configured it to send Emails using the server itself ( localhost port 25 ). When I goto /var/spool/mqueue folder , there are a few mails residing there but are NOT being sent. A sample of one file is : root@ops # cat qfr16JEh2k022885 V8... (4 Replies)
Discussion started by: Junaid Subhani
4 Replies

4. Shell Programming and Scripting

Not able to send the mail using mail and mailx command

Hi All, I am trying to send a mail from linux server but could'nt able to send the mail. I tried the below syntax's so far but no luck. mail -s “Hello world” abc@xyz.com < /usr/g/txt.log cat "txt.log" | mailx -s "Hello world" abc@xyz.com mailx -s “Hello world” abc@xyz.com <... (2 Replies)
Discussion started by: scriptscript
2 Replies

5. Solaris

Server Mail Issue

Solaris server does not receive email from other servers any more. For example, If we send mail from server A to server B, mail is not reaching server B and there is no message or warning about failure of sending mail in server A. What may be the issue of this? Thankyou in advance!! (1 Reply)
Discussion started by: learner46
1 Replies

6. Red Hat

mail issue

Hi Friends, I wrote one shell script which will send some emails to the customers. I am using the "mail" command on the script to send the mails. As my hostname is "test.xxxx.com" and the username is "noreply", the sender address will become noreply@test.xxxx.com. As test.xxxx.com is not a... (2 Replies)
Discussion started by: arumon
2 Replies

7. Solaris

identify the mail server for mail command

Hi , I am new to unix , i am using the mail and mailx command to send the mail .How come i will know the my mail command using which server as mail box.. Please help me .. Thanks in advance (1 Reply)
Discussion started by: julirani
1 Replies

8. Shell Programming and Scripting

Issue with mail attachment

Hi Unix Gurus, Need your help regarding a weird issue that I'm facing. I have an automated unix script that sends out PGP encrypted reports/feeds to our users as mail attahments. Every thing has been going well and all the users have no issues except one, who instead of getting the attachment,... (1 Reply)
Discussion started by: arunsoman80
1 Replies

9. UNIX for Dummies Questions & Answers

Mail Issue

I am trying to send mail to a pager. I am able to send e-mails to other systems, but this is not sending the message through. The page works but the text message is not displayed. Does anyone see anything wrong with this syntax or have any ideas. We are using Unix 5.2 on an RS6000 box. ... (1 Reply)
Discussion started by: Barb
1 Replies
Login or Register to Ask a Question
msgchk(1)						      General Commands Manual							 msgchk(1)

NAME
msgchk - check for messages (only available within the message handling system, mh) SYNOPSIS
msgchk [-help] [-nodate] [-notify all | | | mail | | | nomail] [users ... ] OPTIONS
Prints a list of the valid options for this command. Prints the date when you last read your mail. This is the default behavior of msgchk. The -nodate option can be used of you do not want to print this date. Indicates under what circumstances msgchk should produce a message. There are three legal values: all, mail, and nomail. The default is -notify all, which reports the status of the maildrop regardless of whether it has mail in it or not. The -notify mail option reports the status of the maildrop only if there is mail waiting. The -notify nomail option reports the status of the maildrop only if there is no mail in it. Specifies the source which are checked for mail. The only value allowed is file, which is the user's maildrop. Additional values are supported only for use with other mail systems. DESCRIPTION
The msgchk program checks all known mail drops for mail that is waiting for you. It displays whether you have mail waiting to be read or not and shows the date that you last read your mail. You can check other user's maildrops by specifying their user names as the users argument on the command line. RESTRICTIONS
msgchk does not understand the $MAILDROP environmental variable. If mail is fetched from a location other than /usr/spool/mail/$USER, msgchk will not be able to determine if new mail has arrived. However, inc can still be used to fetch mail when it arrives. For this version, the -source option only supports the value file. Additional values are supported for use only with other mail systems. EXAMPLES
This example shows a user Smith checking his own maildrop: % msgchk Smith: New file source mail waiting ; last read on Tue, 07 Jun 1988 17:21:49 WET The next example shows a user checking the maildrops of two other local users on the same system, Rabb and Jones: % msgchk Rabb Jones Rabb: No file-source mail waiting ; last read on Tue, 07 Jun 1997 13:22:25 WET Jones: New file source mail waiting ; last read on Tue, 07 Jun 1997 17:30:05 WET FILES
The user profile. The system customization file. The user's maildrop. SEE ALSO
inc(1) msgchk(1)