I originally sent this privately to Gordon, but he thought others 
might be interested in the results too... 

So here I go and swallow my pride...
Dean

On 7 Apr 2001, at 9:56, Gordon Rowell wrote: 

> On Fri, Apr 06, 2001 at 04:03:51PM -0400, Dean Staff <[EMAIL PROTECTED]>
> wrote: > [...] > Anyone have any suggestions?
> 
> /sbin/e-smith/db configuration set DebugTemplateExpansion enabled

Ok, Did that, here's wat I got when I executed the following command 
/sbin/e-smith/expand-templates /var/spool/smtpd/etc/smtpd_check_rules 


Expanding template fragment /etc/e- 
smith/templates//var/spool/smtpd/etc/smtpd_check_rules/template-begin 
Expanding template fragment /etc/e- 
smith/templates//var/spool/smtpd/etc/smtpd_check_rules/10NotoBangPaths
Expanding template fragment /etc/e- 
smith/templates//var/spool/smtpd/etc/smtpd_check_rules/10NotoDoubleAt 
Expanding template fragment /etc/e- 
smith/templates//var/spool/smtpd/etc/smtpd_check_rules/10NotoPercentHa
ck 
Expanding template fragment /etc/e- 
smith/templates//var/spool/smtpd/etc/smtpd_check_rules/15BlockRouterRe
laying 
Expanding template fragment /etc/e- 
smith/templates//var/spool/smtpd/etc/smtpd_check_rules/20AllowLocalNet
works 
Expanding template fragment /etc/e- 
smith/templates//var/spool/smtpd/etc/smtpd_check_rules/30InternalOnly 
Expanding template fragment /etc/e- 
smith/templates//var/spool/smtpd/etc/smtpd_check_rules/60AllowLocalDom
ains 
Expanding template fragment /etc/e- 
smith/templates//var/spool/smtpd/etc/smtpd_check_rules/99NotoCatchAll 
Expanding template fragment /etc/e- 
smith/templates//var/spool/smtpd/etc/smtpd_check_rules/template-end 


But when I did /sbin/e-smith/expand-templates 
/var/qmail/control/smtproutes I got this. 
Expanding template fragment /etc/e-smith/templates- 
custom//var/qmail/control/smtproutes/template-begin 
Expanding template fragment /etc/e-smith/templates- 
custom//var/qmail/control/smtproutes/00README 
Expanding template fragment /etc/e-smith/templates- 
custom//var/qmail/control/smtproutes/10delegateMailServer 
Expanding template fragment /etc/e-smith/templates- 
custom//var/qmail/control/smtproutes/20SMTPSmartHost 
Expanding template fragment /etc/e-smith/templates- 
custom//var/qmail/control/smtproutes/smtproutes 
Expanding template fragment /etc/e-smith/templates- 
custom//var/qmail/control/smtproutes/template-end 

As you can see the ..... Oh Crap!!! I just found out what happened... 
There was a typo made when I created the custom template directory... 
I created ../smtp_check_rules instead of ../smtpd_check_rules 

All is working now... 

I knew it had to be something stupid like that, because all was 
working fine on the other server. 

Sorry... Dean 

----end original message--------------------

Actually it was Gordon's suggestion that I enable the debug option 
that made solving this easy. I was able to see on screen what 
templates where being expanded and because my custom template for 
smtpd_check_rules was not being expanded and the one for 
./var/control/smtproutes was, it through up a red flag. I then went 
to my custom-templates directory and double checked all paths and 
file names. It took 5 minutes from the time I enabled the debug 
option to solve this problem....

Once again I've proven that e-smith does exactly what it's supposed 
to do, and that the real issue was a PEBKAC error. :-(  (I've got to 
start getting more sleep....maybe tomorrow)

Thanks for your help Gordon.
Dean

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dean Staff
Protus IP Solutions
210 - 2379 Holly Lane
Ottawa, ON K1V 7P2 Canada
613-733-0000 ex 546 Fax 613-248-4553
e-mail: [EMAIL PROTECTED] Web: http://www.protus.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to