if you don't have a specific reason to use sendmail, there are much easier
MTAs to use.

ssmtp is one i use for webservers which need smarthost-only facilities.
msmtp is another option, and i've heard a third recommended as well (but
forget the name). these are minimal MTAs which do nothing but ensure your
mail is correctly fed off to a "real" mail server. (i'm using the term as
loosely as possible there, to embrace even MS Exchange.)

i prefer this approach because it means the box's mail setup is fully
functional, so i don't need to fix each individual app hosted on the
machine. phpmailer is fine, but i find it unnecessary if the issue can be
fixed at the MTA level.

if you *really* do want sendmail, then you should be able to easily
configure sendmail to route all mail through a smarthost (in this case,
exchange). try something like,

define('SMART_HOST','my.exchange.server')

in /etc/sendmail.mc (and then make sure you're performing the correct
sendmail incantations after updating your config file.)

On Wed, Apr 1, 2009 at 11:38 AM, Nathan Kennedy <
[email protected]> wrote:

>  Hey Paul,
>
>
>
> I would recommend you use the PHPMailer class as it has far more options
> available than the mail() function.
>
>
>
> Or is there a requirement that you must use the mail() function?
>
>
>
> Thanks,
>
> Nathan.
>
> http://www.kennedytechnology.com
>
>
>
>
>
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *Paul Bennett
> *Sent:* Wednesday, 1 April 2009 11:32 a.m.
> *To:* [email protected]
> *Subject:* [phpug] php > sendmail > exchange
>
>
>
> Hi all,
>
> The org I work for routes all mail through exchange. I've a dev box
> (CentOS) I'm running staging sites on and I need some of them to be able to
> send out email notifications (using mail() in PHP).
>
> I can telnet from the dev box to the exchange server, and now need to be
> able to tell sendmail to route all mail to the exchange server (which allows
> anonymous routing from within the firewall).
>
> I've been playing with alias and access files and editing the sendmail.mcfile 
> and restarting sendmail but with no joy as yet.
>
> Anyone have any sage advice? Can I edit php.ini to bypass sendmail
> altogether?
>
> Paul
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to