Hey all,
I need some advice on how to do some things correctly. I am trying to deny certain users the ability to send/receive email on our system. Using this post:
http://forums.contribs.org/index.php?topic=36897.msg164619#msg164619I am having problems getting the fragment to work. First off...some questions...
1) Do I need to copy the existing template, such as /var/qmail/control/badmailfrom to the /etc/e-smith/templates-custom/var/qmail/control/badmailfrom directory?
2) If not, is there a protocol in naming the custom template you are making? Fro instance 44Something?
So I have a 44badmailfrom fragment in /etc/e-smith/templates-custom/var/qmail/control/badmailfrom that contains only one address for now.
When I try to expand the template using /sbin/e-smith/expand-template /etc/e-smith/templates-custom/var/qmail/control/badmailfrom/44badmailfrom I get the following error:
ERROR: No templates were found for /etc/e-smith/templates-custom/var/qmail/control/badmailfrom/44badmailfrom.
at /sbin/e-smith/expand-template line 45Next question....
I had another thread about doing the netlogon.bat thing, but no answer I figured I could accomplish the same thing by updating the smb.conf file.
I would like to replace this portion of the smb.conf:
log file = /var/log/samba/log.%m
logon drive = Z:
logon home = \\%L\%U\._winprofile
logon path = \\%L\Profiles\%U
logon script = netlogon.bat
The goal is to have the users (who already have accounts on another machine) have their home logon drive mount a different server. So say I have \\server1\user\home as the path currently, I want them to map \\server2\user\home as their logon drive. What is the best way to accomplish this? I figured altering the smb.conf through a template, but I want to make sure I am doing it right, and from my question 1, some how I don't seem to know what the hell I am doing with expanding templates.
I have searched for a definitive expanding template tutorial, but I cannot find one. I have tried to hodgepodge several threads together to attempt the qmail change...to no avail.
Thanks for your help in advance,
Grattman