Not signed in (Sign In)
  1.  permalink
    I have a WordPress install that I can't get email working on. I've tried with WordPress 2.33, and now 2.5. I've seen various solutions on the web, but haven't gotten any of them to work. I am using Google Apps for my domain/Gmail for my email. I've tried using the Swift-SMTP plugin, and set it up for Gmail as it indicates, but it still doesn't work. I'm wondering if anyone here on Slicehost, on an Ubuntu 7.x slice has this setup and working (e.g. WordPress with Gmail for email). If I need to setup some email on my slice and use that instead for this purpose, let me know (not sure what if any conflicts that creates). Any other suggestions welcome. Thanks in advance.
    •  
      CommentAuthorkwilson
    • CommentTimeApr 7th 2008
     permalink
    There's a trend around here of people using Google's SMTP servers for sending mail when it really isn't necessary. I don't get it.

    Anyway, install Postfix, set your host/domain name, and you're done. You can send mail from any server, whether it handles incoming mail for your domain or not. This will not create any problems with using Google Apps for receiving mail.
  2.  permalink
    Yes, it'd be fine to do that, only it's not working. When I tried the Swift plugin, and set it up for Gmail, I was able to use it's test button/feature and have the email go out fine. But, no comment email is working whether using Swift, or just trying to let WordPress use the underyling Postfix (which was already installed). I have also tried sending an email out, from the command line, and that works fine. So, it still feels like a WordPress problem to me, but ???
    •  
      CommentAuthorkwilson
    • CommentTimeApr 7th 2008 edited
     permalink
    What does your Postfix log say when you leave a test comment?
    •  
      CommentAuthormjacob
    • CommentTimeApr 8th 2008
     permalink
    In the WordPress admin, go to Settings > Discussion > E-mail me whenever... and make sure the boxes (boxen?) are checked. :-)
    •  
      CommentAuthormjacob
    • CommentTimeApr 8th 2008
     permalink
    Posted By: kwilsonThere's a trend around here of people using Google's SMTP servers for sending mail when it really isn't necessary. I don't get it.

    Yeah, seriously. Why delegate the responsibility off to someone else when it's easier and quicker to set it up yourself?
    • CommentAuthorsfong15
    • CommentTimeApr 8th 2008
     permalink
    I'm on 7.10 as well and have couple of WP sites running on my slice. I think with the barebone ubuntu box you need first of all to get mail() running in order that wordpress can send you the missing password or any built-in mail function to work. As many have said here 'mail' appears to be a blackhole for dummies like me, I haven't got to experiment that yet.

    I'm waiting for see tutorial about setting up minimal mail functions on my slice for simple things like resetting lost password for my WP installs.
  3.  permalink
    First, I don't need to use Gmail to send email in this case, I was merely mentioning that to indicate how my MX entries and such are set up, so let's move on from that more political issue. I have Postfix installed on the box, and it appears I can send mail just fine, by doing "mail emailaddress" at the command line and it sends the email out fine. I have the WordPress setting turned on to send emails when I receive a comment. Interestingly, it appears that if I also set it to require approval for comments, I get those emails. But, without approval, just a regular comment posting fails to notify me by email.

    As for the mail log when a comment comes in, I simply don't see anything.
  4.  permalink
    For those wondering about why people don't use a local mail server for outgoing, setting up Postfix is easy. Getting your email past spam blockers is not always so easy.

    Chrisbailey, sounds like Postfix is working. You might want to post your Wordpress issues in the Wordpress forum. You would probably get a better response there. Though I am sure there are plenty of Wordpress guru's here.
    • CommentAuthorbrady8
    • CommentTimeApr 9th 2008 edited
     permalink
    Some notes that might be useful:

    Make sure your reverse DNS (in the slicehost admin) is set to the same domain as you're sending e-mail from (as per Postfix configuration). That's a big spam tip-off, and most likely the reason you'll get spam blocked.



    Also, MX records only indicate where incoming mail goes - it has no bearing on where or how you send mail out. For my case, I have all my MX records point to Gmail, and all mail from my web apps goes out through Postfix / Sendmail.



    It really is just as easy as "sudo apt-get postfix", and editing the config file: /etc/postfix/main.cf



    myorigin = lunardawn.ca
    notify_classes = resource, software
    myhostname = dev.lunardawn.ca
    mydestination =
    mynetworks_style = host
    inet_interfaces = loopback-only

    inet_interfaces line you want so spammers can't connect to your server and use it as a mail proxy, and the mydestination line isn't strictly necessary if you have MX pointing to gmail - it just tells postfix not to accept any mail for local delivery.

    Here's mine for reference:

    Thankful People: mattlangtree
    •  
      CommentAuthorscottmotte
    • CommentTimeJul 21st 2008
     permalink
    chris,

    I was having this same problem. I did the following and it worked right off.

    1. Instal postfix

    sudo apt-get postfix
    or
    sudo aptitude install postfix


    Say Yes at the prompt.

    2. After it's finished installing run:

    sudo /etc/init.d/postfix restart
    Thankful People: mattlangtree
  5.  permalink
    I was having the same problem as chrisrbailey.

    Thanks to brady8, your post got me up and running quickly.

    Updating the following config details, substituting in my own data, worked perfectly:

    /etc/postfix/main.cf config details:

    myorigin = lunardawn.ca
    myhostname = dev.lunardawn.ca
    mydestination =
    mynetworks_style = host
    inet_interfaces = loopback-only

    On Centos, I ran:

    $ sudo yum install postfix

    and chose yes, when prompted.

    I then ran
    $ sudo vi /etc/postfix/main.cf

    and updated the config values as above.

    To start postfix, I ran:

    sudo /etc/init.d/postfix restart

    Email is working perfectly now. Thanks All.