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
praliases(1)							   User Commands						      praliases(1)

NAME
praliases - display system mail aliases SYNOPSIS
praliases [-C configfile] [-f aliasfile] [key] DESCRIPTION
The praliases utility displays system mail aliases. When no key is given, praliases displays the current system aliases, one per line, in no particular order. The form is key:value. If a key is given, only that key is looked up and the appropriate key:value is displayed if found. OPTIONS
The following options are supported: -C configfile Specifies a sendmail configuration file. -f aliasfile Reads the specified file aliasfile instead of the default sendmail system aliases file. OPERANDS
The following operands are supported: key A specific alias key to look up. EXIT STATUS
The following exit values are returned: 0 Successful operation. >0 An error occurred. FILES
/etc/mail/aliases Default sendmail system aliases file /etc/mail/aliases.db Database versions of the /etc/mail/aliases file /etc/mail/aliases.dir Database versions of the /etc/mail/aliases file /etc/mail/aliases.pag /etc/mail/sendmail.cf Default sendmail configuration file ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWsndmu | +-----------------------------+-----------------------------+ SEE ALSO
mailq(1), newaliases(1M), sendmail(1M), attributes(5) SunOS 5.11 29 Mar 2004 praliases(1)