I have a website where mails are sent. Those mails from website (contact mail, booking mail) are being sent well. But when I go to shell with ssh and give sendmail myemail@mail.com it is not sending.

the error log in /var/log/mail says:

did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA

some time ago, i had a problem with permission, i changed without knowing the permission of /etc/ folder, then later i did chmod 755 /etc/ then everything seemed to work properly. but now, i am getting this error.

server os is openSuse.

what can I do?

  • What if you try mail myemail@mail.com instead of sendmail? – derobert Jun 5 '14 at 15:59
  • @derobert i am getting this message if i give mail: If 'mail' is not a typo you can use command-not-found to lookup the package that contains it, like this: cnf mail – doniyor Jun 5 '14 at 16:44
  • @derobert and i gave with cnf but nothing happened. neither error message nor email was sent – doniyor Jun 5 '14 at 16:46

Try the following test command/script

/usr/sbin/sendmail -i -v -- myemail@mail.com <<END
subject: test

| improve this answer | |

You can install the mail package in Ubuntu with below command.

For Ubuntu -:

$ sudo apt-get install -y mailutils

For CentOs-:

$ sudo yum install -y mailx

Test Mail command-:

$ echo "Mail test" | mail -s "Subject" youremail@domain.com
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.