exim + php mail function, wrong return path

Support/Development for PHP
nobody
Forum Regular
Forum Regular
Posts: 349
Joined: Sun Mar 29, 2009 6:52 pm

exim + php mail function, wrong return path

Unread post by nobody »

Hey guys.

I have a joomla site which has the following issue.
When an email is sent from the joomla mail form the recipient sees Return-Path: <apache@server.hostname.com>.
Now I have the feeling this has to do with the box and not with joomla since this doesn't happen in another box.

I've found many describing the same issue but still haven't found a solution to it. Has anyone encountered the same issue ?

Thanks
Hello IT.
Phone : Blah Blah ....
Have you tried turning it on and off again ?
Phone : Blah Blah ....
....
I'm sorry, are you from the Past ?!
http://www.youtube.com/watch?v=-E4fm4Wqego
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: exim + php mail function, wrong return path

Unread post by faris »

in php.ini:

Code: Select all

sendmail_path = /usr/sbin/sendmail -t -i -f address@domain.tld
You can also add it to a vhost.conf (php_admin_value)

However, if the script uses its own smtp server/connects directly to a socket, then this won't make any difference. In such cases there would always be an option to change who the email is from.

Faris.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
nobody
Forum Regular
Forum Regular
Posts: 349
Joined: Sun Mar 29, 2009 6:52 pm

Re: exim + php mail function, wrong return path

Unread post by nobody »

faris wrote:in php.ini:

Code: Select all

sendmail_path = /usr/sbin/sendmail -t -i -f address@domain.tld
You can also add it to a vhost.conf (php_admin_value)

However, if the script uses its own smtp server/connects directly to a socket, then this won't make any difference. In such cases there would always be an option to change who the email is from.

Faris.

Ok after lots of hours and a lot of nerves I found out how to solve the issue.

Both -f address@domain.tld and (php_admin_value) did not solvethe problem !
Neither around 20 other workarounds I found on the net.

So I removed exim and I installed postfix.

It worked right away like a charm with the -f flag and the email set to it.
Did some testing and up to know it works perfectly.

Postfix is legendary. :)
Hello IT.
Phone : Blah Blah ....
Have you tried turning it on and off again ?
Phone : Blah Blah ....
....
I'm sorry, are you from the Past ?!
http://www.youtube.com/watch?v=-E4fm4Wqego
Post Reply