Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Rigger on February 11, 2004, 09:53:28 AM

Title: masq expand-template error
Post by: Rigger on February 11, 2004, 09:53:28 AM
Hello,

I was expanding the /etc/rc.d/init.d/masq file using #>/sbin/e-smith/expand-template /tc/rc.d/init.d/masq and it generated this error.

Quote
WARNING in /etc/e-smith/templates//etc/rc.d/init.d/masq/90adjustSMTPProxy: Use of uninitialized value in string eq at /etc/e-smith/templates//etc/rc.d/init.d/masq/90adjustSMTPProxy line 15.


Looking at the template fragment it looks like it is checking the db to see if the SMTPProxy is enabled.

Quote

    if (${'smtpfront-qmail'}{'Proxy'} eq 'enabled')


Looking in the /etc/e-smith/db/smtpfront-qmail/status file states enabled

Do I want this enabled or disable? If possible a short explanation on what the SMTPProxy is. Last how do I correct the db to show which setting I'd choose?

Only thing close I found in a forum search was this SME6.0b3 intercepting SMTP traffic (http://forums.contribs.org/index.php?topic=8870.msg33384#msg33384)

For now just taking advise from that topic and creating a empty custom template for that fragment.


--
Doug M.
"Rigger"
Title: masq expand-template error
Post by: grand-pa on February 11, 2004, 02:41:21 PM
You should look in /home/e-smith/configuration if you have a line like this one :
smtpfront-qmail=service|Proxy|enabled|access|public|status|enabled

Maybe the "proxy" property is missing. :-?
Title: masq expand-template error
Post by: Rigger on February 11, 2004, 11:47:50 PM
Apparently this has something to do with the virus scanner, Amavis.

Quote
smtpfront-qmail=service|ExternalInterfacesFilter|/usr/bin/qmail-queue.amavis|InternalInterfacesFilter|/usr/bin/qmail-queue.amavis|access|public|status|enabled



--
Doug M.
"Rigger"
Title: masq expand-template error
Post by: grand-pa on February 12, 2004, 12:25:07 AM
No. In fact, my complete line also includes Amavis properties :
Code: [Select]
smtpfront-qmail=service|ExternalInterfacesFilter|/usr/bin/qmail-queue.amavis|Instances|40|InternalInterfacesFilter|/usr/bin/qmail-queue.amavis|Proxy|enabled|access|public|status|enabled
You can try to manually add your lost property :
Code: [Select]
/sbin/e-smith/db configuration setprop smtpfront-qmail Proxy enabled
Title: masq expand-template error
Post by: Rigger on February 12, 2004, 01:08:53 AM
That did the trick. Set the property SMTPProxy to enabled, deleted the empty custom template fragment and the template expanded without error. Thanks


--
Doug M.
"Rigger"