Page 2 of 2
Re: Smtp email - from and bounce
Posted: Tue Nov 10, 2009 6:04 pm
by Eric!
webstyler wrote:That's already done.. but mail() is local and not from one server to other server.
I don't understand what you are trying to do. Where is your smpt server, how are you connecting to it and what smpt server program is it and is it running on Apache?
Re: Smtp email - from and bounce
Posted: Wed Nov 11, 2009 2:20 am
by webstyler
we send email from server 1 using server 2 as SMTP
so, on server 1 there is simple php code that connect on port 25 of server 2 and put on SMTP data
all work fine but return-path is removed
we set return-path as header because must be different to FROM value .. but on email header return-path have same value of FROM and our header return-path seems removed
Re: Smtp email - from and bounce
Posted: Wed Nov 11, 2009 5:08 am
by Apollo
webstyler wrote:but mail() is local and not from one server to other server.
Ehm, so.. Have you or have you not been able to send mail to a random address with a custom Return-path using mail() ?
Re: Smtp email - from and bounce
Posted: Wed Nov 11, 2009 5:13 am
by webstyler
Apollo wrote:webstyler wrote:but mail() is local and not from one server to other server.
Ehm, so.. Have you or have you not been able to send mail to a random address with a custom Return-path using mail() ?
We try mail(** -f) on server 1 and return-path is set fine.. but this is local send
We cannot use mail(** -f) to send from server 1 to server 2 so cannot test this
Thanks
Re: Smtp email - from and bounce
Posted: Wed Nov 11, 2009 10:36 am
by Apollo
Ah ok, I understood it worked fine with mail (using -f) because you wrote:
Apollo wrote:Strange, perhaps the SMTP server you're using does not allow custom Return-path addresses?
Have you tried connecting to a different SMTP server (from ISP, hosting provider, etc)? If that works, contact whoever is maintaining your current SMTP server, and tell them to fix this

webstyler wrote:uhm.. -f with mail() function return correct value
so think must go also with smtp send way .. :/
But if in fact that doesn't work either (at least not for outgoing email) then yes, there really seems something messed up with the SMTP server you are using. Perhaps it's maintained by your ISP or hosting provider, and you can contact them about this?