I looked in to this a bit more. It seems as though the reason is that postie doesn’t approve of my e-mail-adress. I’m allowing any user-type to post and have a user with the right mail-adress. The adress is not added as a “Authorized Addresses” in the user tab.
This seems to work for me, but I am not running a MU-network on my test machine.
I’ll set up WPMU and see if it acts differently.
Well after installing WP Multisite and configuring it as described everything worked fine.
In Postie 1.5.5 (just released) I’ve added an easy way to run a single Postie email fetch in “debug” mode. Please upgrade and run with debug and post the relevant sections of the output.
I found the problem. It was due to an inline sql-query. (I use postgreSQL). Using wordpress built in features for dealing with the database solves this and is also concidered best practices.
$user = get_user_by( ’email’, $from );
$user_ID = $user->ID;
in
postie-functions.php replace
$sql = 'SELECT id FROM ' . $wpdb->users . ' WHERE user_email=\'' . addslashes($from) . "' LIMIT 1;";
$user_ID = $wpdb->get_var($sql);
$
With
$user = get_user_by( 'email', $from );
$user_ID = $user->ID;
Thanks for catching that. I’ve updated Postie to use the function call.