Mobile app version of vmapp.org
Login or Join
Kevin317

: 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

@Kevin317

Posted in: #Email #Vps

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?

10.04% popularity Vote Up Vote Down


Login to follow query

More posts by @Kevin317

4 Comments

Sorted by latest first Latest Oldest Best

 

@Annie201

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

10% popularity Vote Up Vote Down


 

@XinRu657

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.

10% popularity Vote Up Vote Down


 

@Correia994

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

10% popularity Vote Up Vote Down


 

@Carla537

From the script's readme file:

"Remove excess packages (apache2, sendmail, bind9, samba, nscd, etc) and install the basic components needed for a light-weight HTTP(S) web server..."

So this is your problem. You need to install those packages again, especially sendmail.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme