LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-15-2015, 04:23 AM   #1
Pearl123
LQ Newbie
 
Registered: May 2013
Posts: 17

Rep: Reputation: Disabled
Mail sending help


Hi Experts,

I have Linux server.
I am testing for the disk space and sending email. However sending email is not working. when I try

echo 'test' | mail -s 'test' abc@domain.com
There is no error but no email is also sent.

Can any one please suggest what is the steps to check for email sending
 
Old 06-15-2015, 04:45 AM   #2
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora
Posts: 1,687

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Quote:
Originally Posted by Pearl123 View Post
Hi Experts,

I have Linux server.
I am testing for the disk space and sending email. However sending email is not working. when I try

echo 'test' | mail -s 'test' abc@domain.com
There is no error but no email is also sent.

Can any one please suggest what is the steps to check for email sending
You need to have an email server installed and running, such as sendmail, postfix, exim etc. If that is the case, you may have to configure it to send email to domain.com. Check the log file (might be /var/log/mail, depending on mail server used) for indications what went wrong.
 
Old 06-15-2015, 05:32 AM   #3
Pearl123
LQ Newbie
 
Registered: May 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
Hi

Thank you for your email

I checked in the /var/log/mail

below is the message . Please help

Jun 15 17:33:44 xxx postfix/cleanup[30950]: warning: 9A4F027E015: body_checks map lookup problem -- deferring delivery
Jun 15 17:33:44 xxx postfix/pickup[30737]: warning: maildrop/0BB39300003: error writing 9A4F027E015: queue file write error

Thank you

Regards
 
Old 06-15-2015, 10:23 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,350
Blog Entries: 12

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
Email may be the most complex internet thing.

Are you trying to send email within your own domain or over the internet? They are two different things, but, in any event, you need to configure a mail transfer agent (MTA) such as sendmail or postfix, a mail delivery agent (MDA) such as procmail, and a mail user agent (MUA) such as mutt or mail.

Do you want to run your own mail server or connect to a mail server on the internet, such as Gmail or you ISP's mail service? Note that many ISPs frown on users running public-facing email servers unless they have business-level accounts because of (what I consider) quite legitimate concerns about spam.

Here is an excellent tutorial about setting up Mutt to send and receive your email via an external mail service. I did a podcast earlier this year about my own experiences in learning how to use Mutt.

After a little research, you should be able to frame your question more precisely.

I think it would help for you to do a little research and determine what exactly you are trying to accomplish, as email is such a complex thing with so many variations.
 
Old 06-16-2015, 01:26 AM   #5
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora
Posts: 1,687

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Quote:
Originally Posted by Pearl123 View Post
Hi
I checked in the /var/log/mail

below is the message . Please help

Jun 15 17:33:44 xxx postfix/cleanup[30950]: warning: 9A4F027E015: body_checks map lookup problem -- deferring delivery
Jun 15 17:33:44 xxx postfix/pickup[30737]: warning: maildrop/0BB39300003: error writing 9A4F027E015: queue file write error
So it looks like Postfix is installed and running. That's good.

Unfortunately I don't know enough about this subject to help you. I would need to google those messages - perhaps you can do that yourself?
The second message might indicate a permissions problem on the mailbox file of the recipient.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] sending mail via telnet not sending to cc address socalheel Linux - Server 2 10-03-2013 08:57 AM
Sending mail with mail() and postfix when using namecheap's DNS and Email Hosting iLinx Linux - Server 2 07-19-2010 06:53 PM
Sendmail (mailserver) -- sending mail with the mail command -- doesn't work :-( carolinevdh Linux - Server 1 08-13-2009 10:43 PM
Mailserver sending but not sending mail from outside. simango Linux - Newbie 1 10-28-2008 09:51 AM
Postfix mail transfer agent not sending mail locally or to other servers sketelsen Linux - Software 3 02-09-2006 12:16 PM


All times are GMT -5. The time now is 01:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration