Koozali.org: home of the SME Server

masq expand-template error

Offline Rigger

  • ****
  • 71
  • +0/-0
masq expand-template error
« 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

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


--
Doug M.
"Rigger"

Offline grand-pa

  • *
  • 190
  • +0/-0
    • SME Server Fr
masq expand-template error
« Reply #1 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. :-?
SME Server v7.4 Server and gateway
Shuttle K45, Celeron E1400, 2x1Go DDR2, 2x250 Go SATA2 RAID-1

Offline Rigger

  • ****
  • 71
  • +0/-0
masq expand-template error
« Reply #2 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"

Offline grand-pa

  • *
  • 190
  • +0/-0
    • SME Server Fr
masq expand-template error
« Reply #3 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
SME Server v7.4 Server and gateway
Shuttle K45, Celeron E1400, 2x1Go DDR2, 2x250 Go SATA2 RAID-1

Offline Rigger

  • ****
  • 71
  • +0/-0
masq expand-template error
« Reply #4 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"