[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [462] trunk



Revision: 462
          http://svn.sourceforge.net/ledger-smb/?rev=462&view=rev
Author:   tetragon
Date:     2006-11-01 22:52:55 -0800 (Wed, 01 Nov 2006)

Log Message:
-----------
Adding more mailer config options

Modified Paths:
--------------
    trunk/LedgerSMB/Sysconfig.pm
    trunk/ledger-smb.conf.default

Modified: trunk/LedgerSMB/Sysconfig.pm
===================================================================
--- trunk/LedgerSMB/Sysconfig.pm	2006-11-02 06:18:13 UTC (rev 461)
+++ trunk/LedgerSMB/Sysconfig.pm	2006-11-02 06:52:55 UTC (rev 462)
@@ -29,8 +29,12 @@
 $memberfile = "users/members";
 
 # location of sendmail
-$sendmail = "| /usr/sbin/sendmail -t";
+$sendmail = "/usr/sbin/sendmail -t";
 
+# SMTP settings
+$smtphost = '';
+$smtptimout = 60;
+
 # set language for login and admin
 $language = "";
 
@@ -71,9 +75,12 @@
 $spool = $config{paths}{spool} if $config{paths}{spool};
 $templates = $config{paths}{tempates} if $config{paths}{tempates};
 
-$sendmail = $config{programs}{sendmail} if $config{programs}{sendmail};
 $gzip = $config{programs}{gzip} if $config{programs}{gzip};
 
+$sendmail = $config{mail}{sendmail} if $config{mail}{sendmail};
+$smtphost = $config{mail}{smtphost} if $config{mail}{smtphost};
+$smtptimeout = $config{mail}{smtptimeout} if $config{mail}{smtptimeout};
+
 $globalDBConnect = $config{globaldb}{DBConnect} if $config{globaldb}{DBConnect};
 $globalDBUserName = $config{globaldb}{DBUserName} if $config{globaldb}{DBUserName};
 $globalDBPassword = $config{globaldb}{DBPassword} if $config{globaldb}{DBPassword};

Modified: trunk/ledger-smb.conf.default
===================================================================
--- trunk/ledger-smb.conf.default	2006-11-02 06:18:13 UTC (rev 461)
+++ trunk/ledger-smb.conf.default	2006-11-02 06:52:55 UTC (rev 462)
@@ -30,10 +30,15 @@
 localepath = locale/po
 
 [programs]
-sendmail   = | /usr/bin/sendmail -t
 # program to use for file compression
 gzip       = gzip -S .gz
 
+[mail]
+### How to send mail.  The sendmail command is used unless smtphost is set.
+sendmail   = /usr/bin/sendmail -t
+# smtphost = 127.0.0.1
+# smtptimeout = 60
+
 [printers]
 # Available printers
 Laser      = lpr -Plaser


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.