: My VPS cannot send email Webmaster Newbie Question I have a low end vps (128MB RAM)running on Debian.I used a bash script by ilevkov to setup the site. After some trial and error, I managed
Webmaster Newbie Question
I have a low end vps (128MB RAM)running on Debian.I used a bash script by ilevkov to setup the site. After some trial and error, I managed to set up a WordPress on it. Just now I found out that my VPS can't send any email. I tested using the WordPress reset password email, and it shows
The e-mail could not be sent.
Possible reason: your host may have disabled the mail() function...
After some Google session I noticed that I can send email from ssh. So I tried
mail myemail@gmail.com
Subject: Halo dion
some message
.
and the result said
EOT
/usr/lib/sendmail: No such file or directory
"/root/dead.letter" 9/243
. . . message not sent.
The question
How can I fix my VPS mail setting?
More posts by @Kevin317
4 Comments
Sorted by latest first Latest Oldest Best
You'll probably need to configure a mail server which is more complicated than using a bash script. You can do that following these instructions
or setup a plugin in WordPress wordpress.org/extend/plugins/wp-mail-smtp/ which you can then configure with an SMTP server. This is the better option in my opinion because if your mail server isn't configured properly your emails from the server will be flagged as spam. So if you have gmail or another email account (zoho.com) provides free email accounts with your domain. Setup the WordPress plugin and use an SMTP server. Then you'll be good to go
I figured it out. The problem is not in the bash script by @ILevkov , but on the exim4 pre configuration. Since exim4 is already installed, it isn't being re configured by the script. At least that's what I thought . Please correct me I'm wrong
All I have to do is to remove the previos exim4
apt-get purge exim4
And then reinstall using @Ilevkov well written bash script
bash setup-debian.sh exim4
Thank you all for your time.
I’ve checked it again, should work out of the box.
In case it doesn’t:
Try this thread: wordpress.org/support/topic/users-not-receiving-activation-email
Try reinstalling Exim4 – “bash setup-debian.sh exim4”
Try installing Postfix instead Exim.
There is also a new version of lowendscript made by Xeoncross - github.com/Xeoncross/lowendscript
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.