Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: how to allow wordpress to send email from server

  1. #1
    Join Date
    May 2006
    Location
    New York
    Beans
    184
    Distro
    Ubuntu 10.04 Lucid Lynx

    how to allow wordpress to send email from server

    we have a development server. we are working with wordpress. as you know when you install wordpress at one of the many hosting companies wordpress is able to send confirmation emails. how can i do this with our dev linux box? i already installed postfix, is this enough for wordpress? thanks...

  2. #2
    Join Date
    Apr 2005
    Beans
    31

    Exclamation Re: how to allow wordpress to send email from server

    I too am running wordpress and i have no problems with emails being sent. Have you configured WP correctly?

  3. #3
    Join Date
    Apr 2006
    Location
    Manchester, UK
    Beans
    62
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: how to allow wordpress to send email from server

    Try the following:

    Code:
    sudo apt-get install sendmail
    I think that should allow PHP applications to send email.

  4. #4
    Join Date
    May 2007
    Location
    Phoenix, Arizona USA
    Beans
    2,909
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: how to allow wordpress to send email from server

    Actually postfix is a drop in replacement (and better) than sendmail. No need to install sendmail, in fact he will probably mess up postfix if he does that.

    What is in your /etc/postfix/main.cf
    file?

    Also have you restarted postfix?

    Code:
    sudo /etc/init.d/postfix restart
    -Tim
    Last edited by windependence; July 31st, 2008 at 01:45 PM.
    www.pcchopshop.net

    Hard to find and obsolete PC and server parts. "If we can't find it, it probably doesn't exist"

  5. #5
    Join Date
    May 2006
    Location
    New York
    Beans
    184
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: how to allow wordpress to send email from server

    thanks guys! this is my main.cf: (should i change anything?)

    # See /usr/share/postfix/main.cf.dist for a commented, more complete version


    # Debian specific: Specifying a file name will cause the first
    # line of that file to be used as the name. The Debian default
    # is /etc/mailname.
    #myorigin = /etc/mailname

    smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
    biff = no

    # appending .domain is the MUA's job.
    append_dot_mydomain = no

    # Uncomment the next line to generate "delayed mail" warnings
    #delay_warning_time = 4h

    # TLS parameters
    smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
    smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
    smtpd_use_tls=yes
    smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
    smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

    # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
    # information on enabling SSL in the smtp client.

    myhostname = blaster.bhvr.net
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    mydestination = blaster.bhvr.net, localhost.bhvr.net, , localhost
    relayhost = smtp.emailsrvr.com
    mynetworks = 127.0.0.0/8
    mailbox_size_limit = 0
    recipient_delimiter = +
    inet_interfaces = all
    inet_protocols = all
    home_mailbox = Maildir/

  6. #6
    Join Date
    May 2006
    Location
    New York
    Beans
    184
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: how to allow wordpress to send email from server

    sendmail is installed in this box, should i remove it? thanks.

  7. #7
    Join Date
    Jul 2005
    Location
    Trowbridge, UK
    Beans
    77
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: how to allow wordpress to send email from server

    I've also being having the same problem (I think). PHP needs to be configured to handle either Sendmail/Postfix/Exim/etc. I think I've got the hang of the php.ini side of things, I just can't correctly configure the Sendmail.

    Any posible solution for this would be greatfully recieved.

    (The thread I started is here)

  8. #8
    Join Date
    May 2006
    Location
    New York
    Beans
    184
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: how to allow wordpress to send email from server

    trying to follow:
    https://help.ubuntu.com/community/Po...asicSetupHowto

    the part that says 'Test your default setup'
    i'm not able to see any messages when i type the 'mail' command- "No mail for fmaster". i'm able to see the mail at the Maildir directory. this is a development server and its accessible in our LAN only and is for test purposes only. is there anything else i'm missing? thanks..

  9. #9
    Join Date
    May 2007
    Location
    Phoenix, Arizona USA
    Beans
    2,909
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: how to allow wordpress to send email from server

    Quote Originally Posted by cocotu View Post
    sendmail is installed in this box, should i remove it? thanks.
    No, you definitely don't want to uninstall sendmail. Just install postfix and set your hostname and domain. Postfix needs little configuration to use the php mail() function.

    -Tim
    www.pcchopshop.net

    Hard to find and obsolete PC and server parts. "If we can't find it, it probably doesn't exist"

  10. #10
    Join Date
    May 2007
    Location
    Phoenix, Arizona USA
    Beans
    2,909
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: how to allow wordpress to send email from server

    Quote Originally Posted by theolster View Post
    I've also being having the same problem (I think). PHP needs to be configured to handle either Sendmail/Postfix/Exim/etc. I think I've got the hang of the php.ini side of things, I just can't correctly configure the Sendmail.

    Any posible solution for this would be greatfully recieved.

    (The thread I started is here)
    You don't need to do anything to php tp make it work with either sendmail or postfix.

    -Tim
    www.pcchopshop.net

    Hard to find and obsolete PC and server parts. "If we can't find it, it probably doesn't exist"

Page 1 of 2 12 LastLast

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
  •