WordPress.org

Ready to get started?Download WordPress

Forums

Can't get wordpress to email (2 posts)

  1. wiseguy12851
    Member
    Posted 2 years ago #

    I'm using Ubuntu Linux through a Virtual Server and have access to it only through ssh/bash. I've fully setup apache2 and setup php to some extent. I'm about to import a WordPress Site from a shared (and slow) hosting provider to my new server (on a different and faster) provider.

    Before I cut off connection to the original blog, I went on and copied it to a temporary domain name on my new server and got it working smoothly. I found it was unable to send mail though php's mail function.

    This part is far beyond my knowledge since I've never worked with mail servers or mail software before but it's important to setup since I use it extensively in WordPress.

    at first it complained that the mail function was disabled, I read through hundreds of articles and followed just as many tutorials and got nothing. After some fiddling I finally got WordPress to stop complaining and supposedly send the email but I haven't received it.

    I don't know if it's WordPress, my PHP config, my mail software or it's configuration, or even MX records (which I truly don't know anything at all about).

    I finally admit defeat and have come to a halting position, I can't continue transferring until this is setup and I have put too much time into this already. Any help would be appreciated.

    I've heard postfix is better than sendmail so I installed it, I've heard postfix has the same api as sendmail on the outside so it's drop-in ready.

    I've followed the ubuntu community page for installing postfix

    Lastly, keep in mind that anything mail related is far outside the scope of my knowledge and I have no earthly idea what to do

  2. CircaLucid
    Member
    Posted 2 years ago #

    I installed WordPress on my Ubuntu 11.10 server, so this may or may not apply. If you:
    tail /var/log/apache2/error.log
    and get:
    sh: /usr/sbin/sendmail: not found

    Then:

    # https://samiux.wordpress.com/2009/07/31/howto-godaddy-coms-relay-mail-server-with-postfix-on-ubuntu-server/
    sudo apt-get remove sendmail
    sudo apt-get autoremove
    sudo apt-get install postfix
    sudo nano /etc/postfix/sasl/sasl_passwd
    smtpout.secureserver.net XXX@XXX.com:XXXXXXXXXXXXXXXXX
    
    chown root:root /etc/postfix/sasl/sasl_passwd
    chmod 600 /etc/postfix/sasl/sasl_passwd
    postmap /etc/postfix/sasl/sasl_passwd
    sudo nano /etc/postfix/main.cf
    relayhost = [smtpout.secureserver.net]
    smtp_sasl_auth_enable = yes
    smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd
    smtp_sasl_security_options = noanonymous

Topic Closed

This topic has been closed to new replies.

About this Topic