Koozali.org: home of the SME Server

Which programs install procmail templates?

Offline steve288

  • *
  • 336
  • +0/-0
Which programs install procmail templates?
« on: October 08, 2009, 03:16:32 PM »
Im installing a new system and have procmail running on one SME comptuer but cant recall which program(s) install procmail and get it up and running. I see that procmail its self is installed in bin and the documentation, but no templates.

I thought dungog-email would do it, (cause all I want is procmail to get up and running and this seems like the least invasive program to start it) but when I run it all I get is
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "installonlyn" plugin
Loading "protect-packages" plugin
Loading "smeserver" plugin
Loading "fastestmirror" plugin
Setting up Install Process
Setting up repositories
smeaddons                 100% |=========================| 1.9 kB    00:00
smeextras                 100% |=========================| 1.9 kB    00:00
base                      100% |=========================| 1.1 kB    00:00
updates                   100% |=========================|  951 B    00:00
smeos                     100% |=========================| 1.9 kB    00:00
smeupdates                100% |=========================| 1.9 kB    00:00
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
Excluding Packages from CentOS - os
Finished
Excluding Packages from CentOS - updates
Finished
Parsing package install arguments
No Match for argument: dungog-email
Nothing to do
(maybe I have to pay for it Im not clear)

Anyway can anyone tell me what installs procmail.

thanks

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Which programs install procmail templates?
« Reply #1 on: October 08, 2009, 09:53:09 PM »
Im installing a new system and have procmail running on one SME comptuer but cant recall which program(s) install procmail and get it up and running. I see that procmail its self is installed in bin and the documentation, but no templates.
Easy go to the machine that has procmail installed and do something like this:
Code: [Select]
rpm -q --whatprovides `which procmail`and that will most likely end up with:
Code: [Select]
procmail-3.22-14.1.el4AFAIK procmail is part of the SME Server core, so it should be installed on all SME Server machines by default as it is a dependency for SpamAssassin:
Code: [Select]
[root@smetest ~]# rpm -q --whatrequires procmail
warning: only V3 signatures can be verified, skipping V4 signature
spamassassin-3.2.5-48.el4
[root@smetest ~]#
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
Re: Which programs install procmail templates?
« Reply #3 on: October 09, 2009, 05:05:12 PM »
Thanks Cactus, yes it appears to be installed. But Im not sure if it is active(?)
At least when I with little recipes for it they dont work.
(any additional advice is apreciated on this)

However I think Snoble may be on track with installing the mail-sort program, I think that may have the magic to kick start it. Ill give it a try.

By the way what is the command to expand the .procmailrc file from the templates eg. if the templates are in
/etc/e-smith/templates-user/.procmailrc

yet when I type
expand-template /etc/e-smith/templates-user/.procmailrc

I get ..
[root@mail crontab]# expand-template /e-smith/templates-user/.procmailrc
ERROR: Cannot create output file //e-smith/templates-user/.procmailrc.17042 No such file or directory
 at /sbin/e-smith/expand-template line 45


What is the right command ?
Regards.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Which programs install procmail templates?
« Reply #4 on: October 09, 2009, 05:28:04 PM »
By the way what is the command to expand the .procmailrc file from the templates eg. if the templates are in
/etc/e-smith/templates-user/.procmailrc

yet when I type
expand-template /etc/e-smith/templates-user/.procmailrc

I get ..
[root@mail crontab]# expand-template /e-smith/templates-user/.procmailrc
ERROR: Cannot create output file //e-smith/templates-user/.procmailrc.17042 No such file or directory
 at /sbin/e-smith/expand-template line 45
From the top of my head:
Code: [Select]
expand-template /home/e-smith/users/username/.procmailrcwhere you should replace the username with the desired username in your case.
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
Re: Which programs install procmail templates?
« Reply #5 on: October 09, 2009, 07:26:06 PM »
Im sorry, If Im doing this right
eg as root type ..

expand-template  /home/e-smith/users/spadina/.procmailrc

Gives me.
ERROR: Cannot create output file //home/e-smith/users/spadina/.procmailrc.5753 No such file or directory
 at /sbin/e-smith/expand-template line 45

I dont know if it matters but when I do pwd from username I get
 /home/e-smith/files/users/spadina

so I change it to
expand-template  /home/e-smith/files/users/spadina/.procmailrc

and get
ERROR: No templates were found for /home/e-smith/files/users/spadina/.procmail.
 at /sbin/e-smith/expand-template line 45

I cannot seem to get the templates to expand ? manually.

regards



Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Which programs install procmail templates?
« Reply #6 on: October 09, 2009, 07:45:29 PM »
signal-event email-update perhaps then?
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
Re: Which programs install procmail templates?
« Reply #7 on: October 09, 2009, 08:13:13 PM »
Wow, that works.

If I get anywhere with this Im trying to put together some docuemnt that may help others to use procmailrc and do a few things. I hope it turns out to be usefull.

Im not sure and of course its not always easy, but Im not sure I would have guessed that to rebuild procmailrc

Thanks.


Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Which programs install procmail templates?
« Reply #8 on: October 09, 2009, 11:59:01 PM »
Im not sure and of course its not always easy, but Im not sure I would have guessed that to rebuild procmailrc
Doesn't matter, some people have been here a lot longer and know a little bit more on the internals of SME Server. Glad so hear it solved your problem.
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)