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 [email protected] 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 [email protected] instead of sendmail?
    – derobert
    Jun 5, 2014 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, 2014 at 16:44
  • @derobert and i gave with cnf but nothing happened. neither error message nor email was sent
    – doniyor
    Jun 5, 2014 at 16:46

2 Answers 2


Try the following test command/script

/usr/sbin/sendmail -i -v -- [email protected] <<END
subject: test

  • for anyone who didn't find this answer useful: read carefully the output. for me it wasn't obvious what it is about, but reading more carefully it revealed this link: support.google.com/mail/answer/…
    – borsuk
    Nov 18, 2022 at 15:33

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" [email protected]

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .