unable to setup mail server.
but still i am unable to send mails from my server. Please help me setting up mail server.
When I try to send mail from command prompt then following error occurs.
root@monjardeal:~# echo "This is a test." | mail -s Testing
-bash: mail: command not found
7 Replies
Try installing the mail application.
apt-get install mailutils
I have tried installing the mail application using the command given above. Now when i execute the following command
root@monjardeal:~# echo "This is a test." | mail -s Testing
then error is removed which was coming previously but still mail is not being sending from command prompt as well as from my project. Please help.
Aug 21 12:34:58 monjardeal postfix/qmgr[29724]: 33D62101B9: from=<
Aug 21 12:34:58 monjardeal postfix/qmgr[29724]: 4ACFD101B8: from=<
Aug 21 12:34:58 monjardeal postfix/smtp[847]: warning: relayhost configuration problem
Aug 21 12:34:58 monjardeal postfix/smtp[848]: warning: relayhost configuration problem
Aug 21 12:34:58 monjardeal postfix/smtp[847]: 33D62101B9: to=<
Aug 21 12:34:58 monjardeal postfix/smtp[848]: 4ACFD101B8: to=<
relayhost = smtp.localdomain
Thanks for your help hoopycat