POP3 Connector

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

Johiii
Posts: 20
Joined: Thu Oct 12, 2006 6:06 am
Contact:

Postby Johiii » Wed Oct 18, 2006 6:31 am

chris wrote:you need to edit crontab using the command crontab -e - not just by hand.

When i use the command; vi crontab -e the following message is appearing:
"crontab" 16L, 425C
Ex-Modus. Geben Sie "visual" ein, um zum Normal-Modus zurückzukehren.
:
(wich means: Please enter "visual" to return to the normal-modus.
chris wrote:If you did that, then change the end from >/dev/null 2>&1 to &>/var/log/cronlog

I used vi crontab to edit it... and this is the text i changed
*/1 * * * * "/usr/bin/fetchmail -p pop3 -S scalix.pore.at --smtpname sxadmin-scalix@pore.at -u gruftengel@gmx.at pop.gmx.net &>/var/log/cronlog"

chris wrote:That way you can see the output of the command cron is running.

where oO" ??

chris wrote:Does the command you posted work if you enter it as root?

im allways working as root <.<" my boss told me that i have to do that...

btisdall
Scalix Star
Scalix Star
Posts: 373
Joined: Tue Nov 22, 2005 12:13 pm
Contact:

Postby btisdall » Wed Oct 18, 2006 7:11 am

Johiii wrote:im allways working as root <.<" my boss told me that i have to do that...


I'm curious to know the rationale behind your boss's request, because working as root is generally considered to be a bad thing, no matter how expert the user.

The use of su -c or sudo is much preferred. Sudo is especially good because it provides a record of commands performed as the superuser - useful for security purposes or backtracking in the event of problems.
Ben Tisdall
www.redcircleit.com
London

Johiii
Posts: 20
Joined: Thu Oct 12, 2006 6:06 am
Contact:

Postby Johiii » Wed Oct 18, 2006 7:16 am

btisdall wrote:
Johiii wrote:im allways working as root <.<" my boss told me that i have to do that...


I'm curious to know the rationale behind your boss's request, because working as root is generally considered to be a bad thing, no matter how expert the user.

The use of su -c or sudo is much preferred. Sudo is especially good because it provides a record of commands performed as the superuser - useful for security purposes or backtracking in the event of problems.

yea i know ... but anyway... this doesn't help me with my problem :wink:

chris
Scalix Star
Scalix Star
Posts: 321
Joined: Mon May 09, 2005 2:56 pm
Location: Freiburg, Germany

Postby chris » Wed Oct 18, 2006 7:20 am

3 things Johii:

1. Don't use vi to edit the crontab - just enter the command crontab -e on the command line. I think you'll like what happens then.

2. After you edit your crontab properly, you should see syslog message indicating that your cron command has been executed.

3. After you see that the commands are being executed, there will be a file /var/log/cronlog which will show the output of those commands. You can choose between the commands less, more and cat to view this file. Use whichever one you feel most comfortable with.

Chris

btisdall
Scalix Star
Scalix Star
Posts: 373
Joined: Tue Nov 22, 2005 12:13 pm
Contact:

Postby btisdall » Wed Oct 18, 2006 7:29 am

Well, it might do. :wink:

Anyway, I don't want to interfere with the excellent help you're already getting.
Ben Tisdall

www.redcircleit.com

London

Johiii
Posts: 20
Joined: Thu Oct 12, 2006 6:06 am
Contact:

Postby Johiii » Wed Oct 18, 2006 7:40 am

Code: Select all

[root@scalix etc]# crontab -e
no crontab for root - using an empty one
crontab: installing new crontab

Sorry no /var/log/cronlog >_>" dont know what i did wrong now...

chris
Scalix Star
Scalix Star
Posts: 321
Joined: Mon May 09, 2005 2:56 pm
Location: Freiburg, Germany

Postby chris » Wed Oct 18, 2006 8:45 am

Johiii wrote:

Code: Select all

[root@scalix etc]# crontab -e
no crontab for root - using an empty one
crontab: installing new crontab

Sorry no /var/log/cronlog >_>" dont know what i did wrong now...


You did nothing wrong! That was exactly right!

Now copy your cron entry and paste it in there.

You're doing fine,

Chris

Johiii
Posts: 20
Joined: Thu Oct 12, 2006 6:06 am
Contact:

Postby Johiii » Wed Oct 18, 2006 8:52 am

:roll: yea the problem is... i allready have done this...
in the cron file thers now:
*/1 * * * * "/usr/bin/fetchmail -p pop3 -S scalix.pore.at --smtpname sxadmin-scalix@pore.at -u gruftengel@gmx.at pop.gmx.net &>/var/log/cronlog"

but yust this messages appeared
[root@scalix etc]# crontab -e
no crontab for root - using an empty one
crontab: installing new crontab
greez Johiii

chris
Scalix Star
Scalix Star
Posts: 321
Joined: Mon May 09, 2005 2:56 pm
Location: Freiburg, Germany

Postby chris » Wed Oct 18, 2006 9:00 am

Please ignore any cronfiles and anything that may be in them.

Just copy your entry and paste it into the window after executing crontab -e.

Chris

PS: I had this link: http://www.tldp.org/LDP/lame/LAME/linux ... index.html into the wiki article for a reason. Please read Chapter 9.4 - it explains how cron works.
Last edited by chris on Wed Oct 18, 2006 9:02 am, edited 1 time in total.

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Wed Oct 18, 2006 9:02 am

Hi Johii,

maybe you want to google for "Linux cron howto" or so - I believe the problems you're looking at here might be some weird local configuration on you server or some environment settings in your editor that mess things up.

I've tested Chris' recommendations on my system and they work perfectly well. I'm 100% certain your issues are _not_ really Scalix specific.....

cheers from Frankfurt,
Florian.
Florian von Kurnatowski, Die Harder!

bangsters
Posts: 89
Joined: Mon May 22, 2006 1:49 am

Postby bangsters » Tue Oct 24, 2006 3:18 pm

hmmm......i just noticed my pop3 does not work..i've never used it before since i was using MAPI or IMAP for my p910..but i tried using pop3 and it's not connecting at all....i get a long pause then an error shows up saying cannot connect...

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Tue Oct 24, 2006 6:03 pm

this is a very different topic! ;_)

can you go to you scalix server and try a

omstat -s (and see what it reports for pop)

followed by a

telnet localhost 110

and see what this comes up with?

cheers,
Florian.
Florian von Kurnatowski, Die Harder!

bangsters
Posts: 89
Joined: Mon May 22, 2006 1:49 am

Postby bangsters » Wed Oct 25, 2006 2:23 pm

this is what i get:

[root@scalix ~]# omstat -s
Service Router Started 10.21.06 0
Local Delivery Started 10.21.06 0
Internet Mail Gateway Started 10.21.06 0
Local Client Interface Enabled 10.11.06 0
Remote Client Interface Enabled 10.11.06 1
Test Server Started 10.21.06 0
Request Server Started 10.21.06 0
Print Server Started 10.21.06 0
Bulletin Board Server Started 10.21.06 0
Background Search Service Started 10.21.06 0
CDA Server Aborted 10.21.06 0
POP3 interface Started 10.21.06 0
Omscan Server Started 10.21.06 0
Archiver Started 10.21.06 0
[root@scalix ~]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
+OK Scalix POP3 interface ready on: scalix.toqen.com


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 3 guests

cron