Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Resources I followed

I followed several howtos and questions on askubuntu:

And it does not fix my issue.

Configuration

  • This is a Kimsufi server from OVH, quad core with 2 Gb of memory
  • I just installed the basic Ubuntu 12.04 LTS server
  • I then installed apache2, php-fpm, mysql, two custom cron scripts for backup
  • I use it for a multisite Wordpress, where I manage my blog and blogs of family and friends, plus a few customers

Issue

Php-fpm cannot send email, even after following official community documention on Ubuntu wiki, and other tips and tricks I find.

For PHP, it seems that the email is sent, but the test mail never come in my inbox...

What do I miss ? Is there a very simple solution ?

By the way, when this will be fixed, I would be happy to write a full howto about that.

/var/log/mail.log

http://pastebin.com/8j7y1upw

share|improve this question
    
Please provide mail-related logs (/var/log/mail.*). –  John WH Smith Dec 30 '13 at 15:46
    
done, via pastebin. the log are after installing php-mail and restarting php-fpm and apache2. –  ttoine Jan 4 at 17:50
    
Can you add the output of cat /etc/postfix/master.cf and cat /etc/postfix/main.cf. –  Anders F. U. Kiær Jan 6 at 7:35
    
At the moment, I am looking at other way than Postfix ! –  ttoine Jan 6 at 17:32

1 Answer 1

up vote 0 down vote accepted

As I was unable to make Postfix working, I finally used Exim4.

At the beginning, test emails with php worked out of the box, except for emails sent by Wordpress. Exim4 gave this message : Unrouteable address.

The solution

I made a mistake in the configuration. Instead of giving the name of the machine (ns3098501.ip-94-23-10.eu) I gave "libre-factory.com", which is the name I use for the Wordpress network.

Once I did a new configuration with the good name, it worked.

Please notice that the path to sendmail is set to default "/usr/sbin/sendmail -t -i" and that it works well.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.