Current time: 12-23-2024, 09:59 PM Hello There, Guest! (LoginRegister)


Post Reply 
Help me create cronjob for maia
Author Message
lschafroth Offline
Junior Member
*

Posts: 149
Joined: Oct 2008
Reputation: 0
Post: #1
Help me create cronjob for maia
I installed maia on my Debian Etch RC6 system using the Howto on this site.

The instructions for adding the cronjobs never did work. It always gave me an error.

I tried adding them to the root cron and they still do not run.

Can someone help me configure the maia cronjobs on my system so maia notifcations and etc work?

Lannie
02-02-2009 08:52 AM
Visit this user's website Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #2
RE: Help me create cronjob for maia
You forgot to tell us a importent part: what exactly and how you wanted to add the cron.

Normally ever admin should know, what he do and adding a cronjob is basic knowledge. Wink
02-02-2009 02:26 PM
Visit this user's website Find all posts by this user Quote this message in a reply
lschafroth Offline
Junior Member
*

Posts: 149
Joined: Oct 2008
Reputation: 0
Post: #3
RE: Help me create cronjob for maia
I edited the crontab file and put it in there with nano.

I'm such a linux newbies so I hope I didnt hurt anything.

Lannie

The crontab -u amavis -e errors every time.
02-02-2009 11:44 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #4
RE: Help me create cronjob for maia
Quote:The crontab -u amavis -e errors every time.
And what does this Error say ?
The User "amavis" exists ?

Greez BeNe
02-03-2009 02:23 AM
Visit this user's website Find all posts by this user Quote this message in a reply
lschafroth Offline
Junior Member
*

Posts: 149
Joined: Oct 2008
Reputation: 0
Post: #5
RE: Help me create cronjob for maia
I noticed when I copy from the howto and paste into my SSH window it changes it from -u to .u

I did the command with the -u and now it comes up with the cron and here is the contents:


# m h dom mon dow command
55 * * * * /var/lib/amavis/maia/scripts/process-quarantine.pl --learn --report
1 * * * * /var/lib/amavis/maia/scripts/stats-snapshot.pl
5 1 * * * /var/lib/amavis/maia/scripts/expire-quarantine-cache.pl
@weekly /var/lib/amavis/maia/scripts/send-quarantine-reminders.pl
#15 1 * * * /var/lib/amavis/maia/scripts/send-quarantine-digests.pl

I noticed there are Daily, Weekly cron folders too. Should those be used? The howto never mentions those.

Lannie
If I follow the guide and type 'crontab -u amavis -e' I get a blank crontab which I can paste the lines into.

If I do a 'su amavis' then type 'crontab -e' I get yet another empty crontab.

Which is the proper way to do it?

Should the last entry have a # symbol in front of the scheduled times?

Lannie
(This post was last modified: 02-04-2009 01:59 PM by lschafroth.)
02-04-2009 01:20 PM
Visit this user's website Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #6
RE: Help me create cronjob for maia
Quote:If I follow the guide and type 'crontab -u amavis -e' I get a blank crontab which I can paste the lines into.
Yes this is right!
Quote:If I do a 'su amavis' then type 'crontab -e' I get yet another empty crontab.
But the crons are running ? And running under this user ?
Please check this.
Quote:Should the last entry have a # symbol in front of the scheduled times?
The Question is, do wanna use the digests ?

Greez BeNe
02-04-2009 05:35 PM
Visit this user's website Find all posts by this user Quote this message in a reply
lschafroth Offline
Junior Member
*

Posts: 149
Joined: Oct 2008
Reputation: 0
Post: #7
RE: Help me create cronjob for maia
It is working now. YOu may want to fix the howto on this site.

Following the guide, you edit cron job from the root account:

crontab -u amavis -e

I did it this way:

su amavis
crontab -e

The first method does not work. The second method is working.

Thanks!

Lannie
02-06-2009 04:37 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)