Koozali.org: home of the SME Server

Expanding template

Sjef van Gool

Expanding template
« on: December 31, 2003, 02:43:42 PM »
This is probably a silly newbie question, but I can't figure it out.
I'm trying to change xinetd.conf on my 6.0 final server.
With following template called "hotwayd" made with PICO in templates-custom/etc/xinetd.conf.:

service hotwayd
{
port = 8001
disable = no
ocket_type = stream
wait = no
user = nobody
protocol = tcp
groups = yes
server = /usr/sbin/hotwayd
}



I'm getting this big list when I do an "expand-template":

/sbin/e-smith/expand-template etc/xinetd.conf
WARNING in /etc/e-smith/templates-custom/etc/xinetd.conf/hotwayd: Unquoted string "port" may clash with future reserved word at /etc/e-smith/templates-custom/etc/xinetd.conf/hotwayd line 3.
WARNING in /etc/e-smith/templates-custom/etc/xinetd.conf/hotwayd: Bareword found where operator expected at /etc/e-smith/templates-custom/etc/xinetd.conf/hotwayd line 4, near "8001
disable"
WARNING in /etc/e-smith/templates-custom/etc/xinetd.conf/hotwayd:       (Missing operator before disable?)
WARNING in /etc/e-smith/templates-custom/etc/xinetd.conf/hotwayd: Unquoted string "disable" may clash with future reserved word at /etc/e-smith/templates-custom/etc/xinetd.conf/hotwayd line 4.
WARNING in /etc/e-smith/templates-custom/etc/xinetd.conf/hotwayd: Unquoted string "stream" may clash with future reserved word at /etc/e-smith/templates-custom/etc/xinetd.conf/hotwayd line 6.
WARNING in /etc/e-smith/templates-custom/etc/xinetd.conf/hotwayd: Bareword found where operator expected at /etc/e-smith/templates-custom/etc/xinetd.conf/hotwayd line 10, near "/usr/sbin"
WARNING in /etc/e-smith/templates-custom/etc/xinetd.conf/hotwayd:       (Missing operator before bin?)
WARNING in /etc/e-smith/templates-custom/etc/xinetd.conf/hotwayd: Unquoted string "bin" may clash with future reserved word at /etc/e-smith/templates-custom/etc/xinetd.conf/hotwayd line 10.
WARNING in /etc/e-smith/templates-custom/etc/xinetd.conf/hotwayd: Unquoted string "hotwayd" may clash with future reserved word at /etc/e-smith/templates-custom/etc/xinetd.conf/hotwayd line 11.
ERROR in /etc/e-smith/templates-custom/etc/xinetd.conf/hotwayd: Program fragment delivered error <disable "
"no" not allowed in expression at /etc/e-smith/templates-custom/etc/xinetd.conf/hotwayd line 4, near "= "
"no" not allowed in expression at /etc/e-smith/templates-custom/etc/xinetd.conf/hotwayd line 6, near "= ">> at template line 2
ERROR: Template processing failed for /etc/xinetd.conf: 9 fragments generated warnings, 1 fragment generated errors
 at /sbin/e-smith/expand-template line 49

Any suggestions?

Sjef van Gool

Re: Expanding template
« Reply #1 on: December 31, 2003, 02:49:50 PM »
Cutting and pasting caused "ocket" iso "socket" but that doesn't make a difference.

jb

Re: Expanding template
« Reply #2 on: December 31, 2003, 04:43:44 PM »
Sjef,

Put your templates-custom fragment in this way:


{
    $OUT .= "service hotwayd\n";
    $OUT .= "{\n";
    $OUT .= "    port                   = 8001\n";
    $OUT .= "    disable                = no\n";
    $OUT .= "    socket_type        = stream\n";
    $OUT .= "    wait                   = no\n";
    $OUT .= "    user                   = nobody\n";
    $OUT .= "    protocol               = tcp\n";
    $OUT .= "    groups                 = yes\n";
    $OUT .= "    server                 = /usr/sbin/hotwayd\n";
    $OUT .= "}";

}


I just did it this way and expanded the template and the entries are now in my
/etc/xinetd.conf

JB

Sjef van Gool

Re: Expanding template
« Reply #3 on: December 31, 2003, 05:20:07 PM »
That was it.


Thanks JB!

PS: Did something change in 6.0, causing that we have to do it this way?

jb

Re: Expanding template
« Reply #4 on: December 31, 2003, 05:32:10 PM »
I don't know if something changed or not, I just looked at the other fragments in /etc/e-smith/templates/xinetd.conf, and saw that they were dependant on the
e-smith configuration DB and a status of enabled.  So, I just removed all of that stuff, and put in the pertinent lines.

Just lucky.

Sjef van Gool

Re: Expanding template
« Reply #5 on: January 01, 2004, 04:39:52 AM »
Everything is working now, thanks again JB!

FYI and everybody elses information, what I tried to achieve is to receive hotmail messages (sorry Linux world but I've a couple of kids that have difficulty adapting the Linux way) in the 6.0 final email system together with MX pointed e-mail and external pop3 e-mail retrieval.

I did the following:
1 Got and installed the fetchmail configuration of Swerts Knudsen at http://sme.swerts-knudsen.dk/howtos/howto_9.htm.
Installing the RPM adjusts the correct templates-custom files and adds a fetchmail blade to server-manager.
Configure server-manager e-mail for multi-drop as described by Swerts.
Don't forget to remove the multidrop fragments as pointed out by Swerts and other e-mails in this forum.
That enables external pop e-mail reception together with MX pointed e-mail.

2 Got and installed hotwayd-0.6-1.i386_glibc22.rpm at http://hotwayd.sourceforge.net. It's a pitty that we can't have glibc 2.3 at SME, because that would allow us to have the latest version of hotwayd.
Made templates-custom for:
- hosts.allow: allowing hotwayd as a server
- services: defining the hotwayd tcp port
- xinetd.conf: as discussed before in this thread

Rebooted the SME server.

Configured fetchmail pop (by server-manager fetchmail blade) at a specific user using "mydomain.tld port xxx" as server and user "" and password "" .

That does the job.

Sjef.

rune_kg

Re: hotway
« Reply #6 on: April 12, 2005, 12:29:28 AM »
Hi Sjef an jb

Sounds very cool the way you set up hotwayd.

I have a SME6 server in my kitchen and i'm running more.groupware on my ISP. I succesfully connected to all my pop3 addresses in more.groupware and its really nice to have all my mails in one place, no matter if I reinstall my laptop or whatever.

So what I would really love to do is to set up hotwayd on my kitchen SME and then pop3 to it from more.groupware on my ISP. My question is:

1) Is that possible
and if yes:
2) Could you please point me in the right direction. You are talking about setting up different templates and stuff, i'm pretty new to SME and linux so a little handholding could be extremely nice!!! :)

Thankyou for your time.

Rune
Denmark