[exim] Help setting up exim w/PHP on Ubuntu

Top Page
Delete this message
Reply to this message
Author: pr0fess0r
Date:  
To: exim-users
Subject: [exim] Help setting up exim w/PHP on Ubuntu

Hi all, sorry if this is a bit of a n00b question.
I'm running Ubuntu and would like to send mail from PHP using exim.
My server just needs to send email from my pages to the outside world,
it doesnt need to collect mail or do anything clever.
I'm trying to use the smarthost feature and connect to my ISP, I have
to use a from address that includes my domain (xxx.co.nz in this
example), I might also need to authenticate.

I have exim 4 installed on Ubuntu 7.04, and in php.ini I have
configured


Code:
--------------------
    sendmail_path = /usr/sbin/exim -t
--------------------



I read that if you dont use a command line switch, php adds its own (-t
-i by default) and that breaks exim, so the above works.
The problem is I am sending mail through my ISP who doesnt like the
sender www-data@hobbiton (Hobbiton is the name of my server)
Here's the exim log:


Code:
--------------------
    2007-05-29 16:23:22 Start queue run: pid=14255
  2007-05-29 16:23:22 End queue run: pid=14255
  2007-05-29 16:23:27 1HstF1-0003i1-6f <= www-data@hobbiton U=www-data P=local S=1484
  2007-05-29 16:23:31 1HstF1-0003i1-6f ** lucas@??? R=smarthost T=remote_smtp_smarthost: SMTP error from remote mail server after RCPT TO:<lucas@???>: host xxx.co.nz [69.39.89.54]: 550-Verification failed for <www-data@hobbiton>\n550-unrouteable mail domain "hobbiton"\n550 Sender verify failed
  2007-05-29 16:23:31 1HstF5-0003i6-OD <= <> R=1HstF1-0003i1-6f U=Debian-exim P=local S=2487
  2007-05-29 16:23:31 1HstF1-0003i1-6f Completed
  2007-05-29 16:23:31 1HstF5-0003i6-OD => www-data <www-data@hobbiton> R=local_user T=mail_spool
  2007-05-29 16:23:31 1HstF5-0003i6-OD Completed
  2007-05-29 16:53:22 Start queue run: pid=15024
  2007-05-29 16:53:22 End queue run: pid=15024
--------------------



I guess I need to change my sender to someone that my ISP will accept -
webmaster@??? would do it.
How do I do this? I tried changing /etc/email-addresses but that didnt
work:


Code:
--------------------
    user: www-data@hobbiton
  otheruser: webmaster@???
--------------------



My /etc/exim4/update-exim4.conf.conf settings are:


Code:
--------------------
    dc_eximconfig_configtype='smarthost'
  dc_other_hostnames=''
  dc_local_interfaces='127.0.0.1'
  dc_readhost=''
  dc_relay_domains=''
  dc_minimaldns='false'
  dc_relay_nets=''
  dc_smarthost='mail.xxx.co.nz'
  CFILEMODE='644'
  dc_use_split_config='false'
  dc_hide_mailname='false'
  dc_mailname_in_oh='true'
  dc_localdelivery='mail_spool'


--------------------


I just want to be able to send out from PHP. Also, if I need to
authenticate with my ISP's SMTP server, how do I set that up?

thanks in advance for any help

Lucas


--
pr0fess0r
------------------------------------------------------------------------
pr0fess0r's Profile: http://www.exim-users.org/forums/member.php?action=getinfo&userid=295
View this thread: http://www.exim-users.org/forums/showthread.php?threadid=55041