Jump to content

email from another server

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
edson_hh

edson_hh

    Newbie

  • Members
  • Pip
  • 2 posts
I'm having some trouble with configuration of email in the php.ini.
I'm using linux and php 5
After a little search some websites said that take off the comment sign from the line "sendmail_path" and specify the sendmail command line (usually /sbin/sendmail -f) or eg. /usr/lib/squirrelmail/

The problem is my website is in a server (10.20.5.10) and the email is at 10.25.5.11.

I tried to put

"sendmail_path = 10.20.5.11:/usr/lib/squirrelmail/"

in the php.ini (wich is in the 10.20.5.10)

but it didnt work, what should I do??? plz help

#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
PHP does not use wrappers for such configuration, it only accepts a process map to pass parameters into. I will question what your intentions are as you left a lot of holes in your question.

Why are you wishing to access another server's squirrelmail to be used with PHP? Why is 10.25.5.11 being used for a mail executable instead of 10.20.5.10?
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#3
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
Ususally, you set up mail sending software on both servers, but only let one of them handle incoming mail - it's totally different. If you want your outgoing mail server qualified in your DNS, just set it to a high priority level, and your normal server to a low priority.
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall

#4
edson_hh

edson_hh

    Newbie

  • Members
  • Pip
  • 2 posts
wtf, thank u :)

#5
Orjan

Orjan

    Writes binary right handed and hex left handed

  • Moderators
  • 3,299 posts
why you want to qualify a outgoing mail server in the DNS is that as far as I know, some spam filters actually lookup the senders domain and check if the origin server is qualified mail server for that domain. If it's not qualified, it get points in the spam check. (you can be sending a e-mail from any address with any machine normally, so you check this to verify the servers authorize for the senders address)
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall