Need to send mail using mail command

 
Thread Tools Search this Thread
Operating Systems Linux Fedora Need to send mail using mail command
# 22  
Old 10-17-2012
have you checked
Code:
mailq -v

# 23  
Old 10-17-2012
Code:
mailq
/var/spool/mqueue is empty

# 24  
Old 10-17-2012
Quote:
Originally Posted by Adhi
Code:
mailq
/var/spool/mqueue is empty

restart your mail service. that shouldn't be empty.
# 25  
Old 10-17-2012
Am not a root user. And one more thing we are working with a huge server. If i do this surely it will make some serious trouble!! So have any other options to overcome this???
# 26  
Old 10-17-2012
that is a vital information my friend if your not a root user there are things you just can not do to troubleshoot this problem. based on what i can gather its a communication block with the ports (most likely) - if this is a default install or fresh install you need to enable smtp services, which you'll need root access for. selinux might even be blocking your email's from going though. there's a lot of things to look into but you'll need root access.
# 27  
Old 10-17-2012
Quote:
Originally Posted by vpundit
that is a vital information my friend if your not a root user there are things you just can not do to troubleshoot this problem. based on what i can gather its a communication block with the ports (most likely) - if this is a default install or fresh install you need to enable smtp services, which you'll need root access for. selinux might even be blocking your email's from going though. there's a lot of things to look into but you'll need root access.
Yeah.. I can able to switch as root.. But am doing this with out privilege. So if i do anything sensitive, that could make a serious issues..
# 28  
Old 10-17-2012
to narrow it down...

try this:

ping your local machine with port 25 and a trace, then try and ping your destination machine with the port and try a trace. I don't know the rules of the organization so i'm not sure of your policies to restart smtp services but with root access you will be able to see if it is active or not without restarting it.

you may want to try telnet to your local server with port 25 as well to confirm it's working as well since your "localhost" is your mail server.

also try on both machines to send a email to the same machine.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm

I am having trouble getting mail to work on a red hat server. At first I was getting this message. Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies

2. 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

3. Shell Programming and Scripting

How to send mail using PHP mail function On apache server.?

Hello, I am using centos-6.2 I have apache server,php5 on my system and I want to send mail using sendmail on my system. when I try to send mail from shell that time mail is succesfully sent to respective address() but when I try to send it through webbrowser I am not able to send it.... (1 Reply)
Discussion started by: Kiran ursal
1 Replies

4. UNIX for Advanced & Expert Users

How can I send a mail from my outlook or other mail accounts to UNIX server?

Hi all, I want to send a mail for my business needs from outlook account to an unix server (HP-UX) but I don't send any mail. While I can send from the unix server to my outlook account, I can't send from outlook to unix. How can I achieve this ? How can I send a mail from my outlook or other... (2 Replies)
Discussion started by: igelegin
2 Replies

5. 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

6. UNIX for Advanced & Expert Users

need to configure mail setting to send mail to outlook mail server

i have sun machines having solaris 9 & 10 OS . Now i need to send mail from the machines to my outlook account . I have the ip adress of OUTLOOK mail server. Now what are the setting i need to do in solaris machines so that i can use mailx or sendmail. actually i am trying to automate the high... (2 Replies)
Discussion started by: amitranjansahu
2 Replies

7. UNIX for Dummies Questions & Answers

How to send html file in a mail not as an attachment but it should display in the mail in table for

Hi The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment . cat Employee.sql SET VERIFY OFF SET PAGESIZE 200 SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON - HEAD... (0 Replies)
Discussion started by: mani_isha
0 Replies

8. Shell Programming and Scripting

Pull E-mail address from file, send e-mail

Hello, I am new to perl and need to create a script that will read a file and pull a name from the file and send e-mail. How can I use the following awk statement in a perl script? grep UNIXadmins /root/mail.conf | awk '{ print $2}' and use the output to send a e-mail. Any help would... (1 Reply)
Discussion started by: DC Heard
1 Replies

9. UNIX for Dummies Questions & Answers

I am not able to send mail form unix to other mail accounts.

Using Mailx command i.e mailx -s "subject" chinni@hotmail.com < \tmp\chin this command executed sucessfully but not able to receive the mail in chinni@hotmail.com please help. (1 Reply)
Discussion started by: chinnigd
1 Replies

10. UNIX for Dummies Questions & Answers

can not send mail from unix server to company/yahoo mail

hi, Gurus, I need some help with sending mail out from my UNIX server: It is running Solaris 2.6 and the sendmail version is 8.8. Output of :/usr/lib/sendmail -d0.1 -bt < /dev/null Version 8.8.8+Sun Compiled with: LOG MATCHGECOS MIME7TO8 MIME8TO7 NAMED_BIND NDBM NETINET ... (5 Replies)
Discussion started by: b5fnpct
5 Replies
Login or Register to Ask a Question