Results 1 to 2 of 2

Thread: CMSs not sending emails (but php mail works)

  1. #1
    Join Date
    Feb 2007
    Location
    Ancona, Italy
    Beans
    23

    Question CMSs not sending emails (but php mail works)

    Hello I have a Ubuntu 14.04 VPS with a few sites.
    If I run
    Code:
    php -r "mail('mytest@emailaddress.org, 'test', 'test');"
    this goes delivered, but I have a couple of CMS (Drupal and dokuwiki) that doesn't send any emails, including basic password reminder/registration.
    I have checked and I am not blacklisted.
    Where should I look to start debugging ?

    Edit: it seems the problem is that I have the incoming emails using a third party while postfix try to deliver the email locally (maybe looking at the alias file?).
    How can I force postfix to NOT try to deliver the email locally ?
    Last edited by sylvaticus; April 5th, 2015 at 07:19 PM.

  2. #2
    Join Date
    Feb 2007
    Location
    Ancona, Italy
    Beans
    23

    Re: CMSs not sending emails (but php mail works)

    The solution is to remove $mydomain (or "myownservername.xxx" if set explicitly) from mydestination variable in /etc/postfix/main.cf.

    See also: http://serverfault.com/questions/249...39d4194bea7fd7

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •