www-data - no email except for in same server

Having trouble installing serendipity?
Post Reply
msp_erv
Regular
Posts: 67
Joined: Thu Feb 05, 2009 1:58 am

www-data - no email except for in same server

Post by msp_erv »

i cannot send email with the (contact form) admin address to anywhere except to an email address on same server...

they bounce as return-path is not a valid domain

emails are coming www-data.servername.hostname - www-data is apache

we are using dovecot and postfix

we have postfix 'generic' mapping to cloak apache as a real email address that exists on the server - however this app, for whatever reason is not putting this detail in return - path in the outbound emails... this should work with php/sendmail when using apache to send email - it is working for our other php/sendmail scripts

what do folks do to get our bound emails to actually work?

thank you
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: www-data - no email except for in same server

Post by garvinhicking »

Hi!

Check the configuration of your blog, and make sure you have entered a valid E-Mail address as the blog's mail address. Valid means, that the domain must be used that is used on the server, otherwise it would be regarded as spam.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
msp_erv
Regular
Posts: 67
Joined: Thu Feb 05, 2009 1:58 am

Re: www-data - no email except for in same server

Post by msp_erv »

yes....

i have tested with many email addresses that are valid....

and have found messages ARE delivered only to addresses to emails ADDRESSES that exist on this web server that this app is installed on...

i feel the reason being is that in header info the

Return-Path is not the website of the BLOG but the server user apache

www-data@servername.hostname

as in real life of course this 'user' and web site does not exist -- these mesages never get accepted for delivery by these big mail companies - yahoo, verizon, comcast qwest aol etc but we can get them on our local system just fine

thoguhts
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: www-data - no email except for in same server

Post by garvinhicking »

Hi!

Usually the Return-Path is created server-side, so you must check the configuration of postfix/dovecot to see, how it actually is filled in. It is not supplied by serendipity itself, so there must be something within your config to influence that and set to a valid user for your PHP-processes.

So somewhere you should set the return-path to the admin-mail address of your server, or configure your MTA so that it uses the FROM-Header als Return-Path.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
msp_erv
Regular
Posts: 67
Joined: Thu Feb 05, 2009 1:58 am

Re: www-data - no email except for in same server

Post by msp_erv »

>config to influence that and set to a valid user

i have

it is called postfix 'generic' table mapping

thsi works with my other php scripts but not with this...

the from header is bad also - uses the apache user instead of server IP or a real user as set un postfix 'generic' mapping

???
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: www-data - no email except for in same server

Post by garvinhicking »

Hi!

The plugins makes use of the serendipity_sendMail() function, declared in include/functions.inc.php. You might want to check the headers there. s9y uses a "From" address that uses exactly what you entered inside the s9y configuration for "blog'S mail address". If it is malformed, this should only happen when you entered it wrong in there...

You can compare the s9y function to what you use in your existing PHP applications that work.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply