• Hi,
    I have added the email delivery instruction below to sendmail’s .forward file
    Mail messages are not posted to the blog.
    Has anyone a working example ?
    Thanks
    “|/usr/bin/php /home/campover/public_html/wordpress/phone2wp.php > forward.log 2>&1”

Viewing 5 replies - 1 through 5 (of 5 total)
  • I am probably wrong, but my understanding is that you have to actually go to your site and loop at yourdomain.com/wp-mail.php before WP will post your emailed entries.
    and that blows (mbmo.) defeats the purpose of blogging via email / mobile phone when you are not near your computer.
    if there’s a workaround for this i’d love to know about it.
    F.

    Thread Starter deka

    (@deka)

    Add the delivery instructions to the email server’s “forward” file.
    My server is using exim (www.exim.org) and the forward instructions are stored in the :
    /etc/valiases/domain.com file.
    Here is the delivery instruction for exim:
    [email protected]: “|/usr/bin/php -q -f /home/user/public_html/wordpress/phone2wp.php >/dev/null 2>&1”
    Emails sent to [email protected] are posted to the blog,
    but the following error message is sent:
    ================================================
    This message was created automatically by mail delivery software.
    A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed:
    pipe to |/usr/bin/php -q -f /home/campover/public_html/wordpress/phone2wp.php >/dev/null 2>&1
    generated by [email protected]
    The following text was generated during the delivery attempt:
    —— pipe to |/usr/bin/php -q -f /home/user/public_html/wordpress/phone2wp.php >/dev/null 2>&1
    generated by [email protected]——
    Mission complete, message 1 deleted.<b>From</b>: [email protected]
    <b>Date</b>: 2004-12-02 18:49:26 PST
    <b>Date GMT</b>: 2004-12-03 02:49:26
    <b>Category</b>: 1
    <b>Subject</b>: 4 test email post
    <b>Posted content:</b><hr /><html xmlns:o=3D”urn:schemas-microsoft-com:office:office” =
    4 test email post

    From my experience, the mail-triggered command must 1st deliver the message to the mailbox then execute the command (with a copy of the message perhaps) for WordPress to read and post the messages.
    I use procmail to run the command (with a copy recipe), and then deliver the message. This is not-quite-right though – it means that a message will only get published when I send another message, which will in turn get posted after I send a third message & so on…
    The command I actually use something like ‘wget --spider https://[site]/wp-mail.php"‘ to simulate viewing the page.
    I haven’t had much experience with procmail, or .forward triggered commands and would also appreciate anyone’s input.

    Thread Starter deka

    (@deka)

    Hi,
    For exim (www.exim.org)
    Add this delivery instruction to /etc/valiases:
    [email protected]: “|/bin/sh -c \”/usr/bin/php /home/domain/public_html/wordpress/phone2wp.php > /dev/null 2>&1\” “

    Alas, I have no phone2wp.php in my 1.2.1 installation, nor in my 1.3alpha …
    Presumably this performs(ed) the same function as wp-mail.php, but by reading the message from the pipe in rather than from a POP3 mailbox?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘set up email post in sendmail .forward’ is closed to new replies.