Koozali.org: home of the SME Server

Procmail

Offline steve288

  • *
  • 336
  • +0/-0
Procmail
« on: May 15, 2006, 06:00:48 PM »
I have used procmail before, but am a little confused on this unit where to put the general .procmailrc file.

When I go to the users .procmailrc
------------------------------------------------------------
# DO NOT MODIFY THIS FILE! It is updated automatically by the
# SME Server software. Instead, modify the source template in
# an /etc/e-smith/templates-custom directory. For more
# information, see http://www.e-smith.org/custom/
#
# copyright (C) 1999-2003 Mitel Networks Corporation

Well when I go to the directory it tells me to nothing is there.
When I go the web site nothing is there.

If I want to globally use a .procmailrc file where to I put it .

Regards

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Procmail
« Reply #1 on: May 15, 2006, 06:30:07 PM »
Quote from: "steve288"
I have used procmail before, but am a little confused on this unit where to put the general .procmailrc file.

When I go to the users .procmailrc
------------------------------------------------------------
# DO NOT MODIFY THIS FILE! It is updated automatically by the
# SME Server software. Instead, modify the source template in
# an /etc/e-smith/templates-custom directory. For more
# information, see http://www.e-smith.org/custom/
#
# copyright (C) 1999-2003 Mitel Networks Corporation

Well when I go to the directory it tells me to nothing is there.
When I go the web site nothing is there.

If I want to globally use a .procmailrc file where to I put it .

Regards
All configuration files of the SMEServer are build using a template system, see the SME Developers Guide, section II.7 Configuration file templates. The template files for the .procmailrc file are in the /etc/e-smith/templates-user/.procmailrc file, but should not be modified as it looks like all configuration directives should be set per the configuration database.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline steve288

  • *
  • 336
  • +0/-0
Procmail
« Reply #2 on: May 15, 2006, 09:43:53 PM »
Thank you for your response.

Im sorry I dont quite understand, or maybe I do ..

I really dont understand the e-smith system. But this is the sytem that the company has.
When you say ...

" but should not be modified as it looks like all configuration directives should be set per the configuration database."

How then can I use procmail?

thanks.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Procmail
« Reply #3 on: May 15, 2006, 10:36:23 PM »
Quote from: "steve288"
" but should not be modified as it looks like all configuration directives should be set per the configuration database."

How then can I use procmail?

thanks.

I don;t know anything about procmail, but I know the configuration template system by now, as I have been modifying and playing around with it a lot.

SMEServer 6 is a stripped down version of Redhat 7.3 (SME 7 a stripped Centos 4.3) for which all the configuration files have been templated and most of the configuration settings are stored in a (flat-text) database.

I only have a SMEServer 7 running so I cannot only go from ther, some things might be different on SMEServer 6. Maybe some one with some more experience on procmail, or one of the developers of the system can help you out else you will probably have to dive into the scripts and try to gain some knowledge from there. I'm sorry.

Most of the things can be configured using the server-manager as a frontend.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline steve288

  • *
  • 336
  • +0/-0
Procmail
« Reply #4 on: May 15, 2006, 11:05:32 PM »
Yes if anyone else as any help on setting up procmail on this kind of system that would be helpfull.

Additionally however, this template system is there some main gui etc to access the templates or what. I have the main interface, but it  does spamassasin but not procmail.

I have read over the docment that you pointed me to on the templates but I really dont undertand to some degree what its all about.

What is the point of it?

Perl is not my thing, am I going to ahave to understand perl to make any changes. ?? What and where ever I do make them.

Offline kruhm

  • *
  • 680
  • +0/-0
Procmail
« Reply #5 on: May 21, 2006, 02:06:57 PM »
the global procmail templates are found here:
/etc/e-smith/templates-user/.procmailrc

you should customize them here:
/etc/e-smith/templates-user-custom/.procmailrc

If you need to customize an individual user's procmail, it should be done on the USER-MANAGER (make sure you have enabled the panel for the users) http://yourserver.com/user-manager

Offline steve288

  • *
  • 336
  • +0/-0
Procmail
« Reply #6 on: May 31, 2006, 07:04:30 PM »
Thanks for the information.

You say to use this interface
>http://yourserver.com/user-manager

I dont seem to have this.

I just use server-manager.

How do I enable it for the users
>make sure you have enabled the panel for the users

Regards

Offline raem

  • *
  • 3,972
  • +4/-0
Procmail
« Reply #7 on: June 02, 2006, 07:52:52 AM »
steve288

Install the free User Manager contrib from dungog.net
...

Offline steve288

  • *
  • 336
  • +0/-0
Procmail
« Reply #8 on: June 02, 2006, 07:07:35 PM »
I downloaded  e-smith-userpanel-1.6.5-3.noarch.rpm

Do I just type "rpm -ivh e-smith-userpanel-1.6.5-3.noarch.rpm "

Regards

Offline raem

  • *
  • 3,972
  • +4/-0
Procmail
« Reply #9 on: June 03, 2006, 01:25:57 AM »
steve288

> Do I just type "rpm -ivh e-smith-userpanel-1.6.5-3.noarch.rpm "

That would work, but as a general rule it's better to use rpm -Uvh .....

rpm -Uvh e-smith-userpanel-1.6.5-3.noarch.rpm


To uninstall just do

rpm -e e-smith-userpanel
...

Offline steve288

  • *
  • 336
  • +0/-0
perl-Unicode-String version ??
« Reply #10 on: June 05, 2006, 03:59:31 PM »
Yes of course you are right  "-UVh"

Now when I try to load the software it is reporting that I need " perl-Unicode-String is needed by e-smith-userpanel-1.6.5-3 "

Im not sure which one to use. This e-smith is all new to me and I dont want to break it. Can someone point me to where and what file to download. Im running 6.01 e-smith. Uname -a reports "Linux 2.4.20-18.7 #1 Thu May 29 08:32:50 EDT 2003 i686 unknown"

Thnaks.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: perl-Unicode-String version ??
« Reply #11 on: June 06, 2006, 02:43:27 AM »
steve288

> .. need " perl-Unicode-String is needed...


You will find that at the dungog site
http://sme.dungog.net/packages/smeserver/6.0/i386/html/index_dungog.html

Copy all the rpms into an empty folder and cd to that folder
then do
rpm -Uvh *.rpm

This will install rpms in the correct order taking into account dependency isues.
...

Offline steve288

  • *
  • 336
  • +0/-0
Procmail
« Reply #12 on: June 06, 2006, 09:02:58 PM »
Thanks works great.