I tried to install sendmail function, but did not work when did a echo test. Can anyone advice?

sudo nano /etc/mail/local-host-names domain-name.com machine_name.domain-name.com

sudo nano /etc/hostname localhost 192.168.0.X machine_name.domain-name.com machine_name

192.168.0.X is the internal LAN fixed IP address of the machine.

set sendmail_path in php.ini sendmail_path = /usr/sbin/sendmail -t -i -f email@domain-name.com

I could not find where to change this email address: ubuntu_username@machine_name . Is this the cause?

Ubuntu 16.04.

050 550-Verification failed for 050 550-The mail server could not deliver mail to ubuntu_username@machine_name. The account or domain may not exist, they may be blacklisted, or missing the proper dns entries. 050 550 Sender verify failed 050 503-All RCPT commands were rejected with this error: 050 503-Sender verify failed

  • Any particular reason you're using sendmail instead of, say, PostFix? Just out of curiosity. (I find PostFix is easier to set up and configure than SendMail) – Thomas Ward May 13 '17 at 15:45
  • I'm using Vestacp as a hosting Control Panel, and it doesn't support postfix for its features. – blueberry May 13 '17 at 16:32

Your Answer

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

Browse other questions tagged or ask your own question.