The e-mail could not be sent... error
-
Hi - I've followed and re followed the reverse DNS and postfix installs religiously but get the following error when trying to send a password reminder out from Wordpress:
The e-mail could not be sent.
Possible reason: your host may have disabled the mail() function...Any clues where I should look to correct this?
Cheers
PerryPosted 10 months ago # -
Oh - I checked the mail.log. It gives the following error:
fatal: usage: sendmail [options]Posted 10 months ago # -
OK, first try this Perry, logged into the svr:-
mail -s “Test email” you@you.com
Hit Enter, then type something for the Subject, then hit Ctrl+D, then check your email.
Do you get the email? If so, this could be a WP issue. If not, is the error message the same?
Posted 10 months ago # -
Hi there - I decided to reinstall my VPS and haven't got as far as setting up my Wordpress installs again.
Even so Postfix is set up and after I tried this test I get:
mail: command not foundPosted 10 months ago # -
Hey, I've got somewhat related question on the topic.
When I send my email from the shell using mail command it is from root@domain.com, and when using php its www-data@domain.com, is there any way to control/change these to something more nice?Posted 10 months ago # -
Hi - hope the trail isn't going cold on this thread already.
I'm guessing the "mailx" bit of:
sudo aptitude -y install postfix telnet mailxOn page http://vpsbible.com/email/setup-postfix-email/
isn't installing.
I've gone through the set up process once more to make sure - everything exactly following instructions and still get the same result at this stage in the guide.
Presumably this has happened before and has only become apparent after installing WP and trying to send email then,
.Posted 10 months ago # -
Hi Olly - I struck out and had a go at installing mailx myself (instructions courtesy of Ubuntu community documentation):
sudo apt-get install mailutilsFollowing your instruction above it worked fine.
TIP (for other clueless noobs like me!)-
After entering:
mail -s “Test email” you@you.comThere is a prompt:
Cc:Just press enter then add your subject (unless you want to add Cc address of course).
Once you've added your subject hit enter again then CTRL D to send the message.
Posted 10 months ago # -
tx PB, yes, there does seem to be an issue with the mailx program not installing properly (some repository issue, as I understand) and installing the mailutils packages, which bundles mailx, is the workaround.
I'm playing with mailboxes today and will update the docs accordingly.
@Ais .. what's the printout for this, please?
cat /etc/aliases
Posted 10 months ago # -
I finally got round to installing WP and testing the email and it works fine.
The missing mailx was obviously the issue.
Cheers
Posted 10 months ago # -
#
# Mail aliases for sendmail
#
# You must run newaliases(1) after making changes to this file.
## Required aliases
postmaster: root
MAILER-DAEMON: postmaster# Common aliases
abuse: postmaster
spam: postmaster# Other aliase
root: <my username>Posted 10 months ago #
Reply
You must log in to post.
Want HTML?
a blockquote code em strong ul ol liPlace code between backticks `codeHere`
You've got it.
