sending mail with mail or postfix
Where do I set SMTP server to make mail or postfix working for sending mail?
I'm a newbie CVS administrator and want my CVS repository to send emails upon committments. According to the CVS manual, this is done in CVSROOT/notify scriptfile with the mail command:
<pre>ALL mail %s -s "CVS Notification"</pre>
But in order to make this work, I need to set SMTP-server somewhere. Where do I that? Assume my ISP's SMTP hostname is smtp.myisp.com.
====
In addition, I have set HOSTNAME=myserver.homeip.com in /etc/hostconfig because I'm linking my dynamic IP to a DynDNS address. There is an option in the DynDNS registering process to set the MX field of the DNS record for myserver.homeip.com. I'm newbie here, too, but the question is can I use this feature (MX-field) to automate the configuring process, and set it to smtp.mysip.com somehow?
====
In another scenario, I've tried to run mail from a PHP-script. On M$ Windows, you can set php.ini's SMTP variable to the SMTP host. But this does not work on Mac OS X.
Fortunately, PEARs Net::Mail or SMTP package provides a easy interface for sending mail with an existing SMTP hostname. In fact, because mail is so hard to understand, and postfix so cumberstone to configure, I'm thinking about replacing mail or postfix with a simple phpSendMail.php-script... 🙂
Mac Mini Intel Core Dual Mac OS X (10.4.9)