LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mail sending help (https://www.linuxquestions.org/questions/linux-newbie-8/mail-sending-help-4175545375/)

Pearl123 06-15-2015 03:23 AM

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

berndbausch 06-15-2015 03:45 AM

Quote:

Originally Posted by Pearl123 (Post 5377293)
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.

Pearl123 06-15-2015 04:32 AM

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

frankbell 06-15-2015 09:23 PM

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.

berndbausch 06-16-2015 12:26 AM

Quote:

Originally Posted by Pearl123 (Post 5377316)
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.


All times are GMT -5. The time now is 12:16 AM.