Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-17-2006, 10:51 AM
Senior Member
 
Posts: 51
Default zmtrainsa problem

Getting a error when trying to feen zmtrainsa some spam.

[zimbra@mail bin]$ zmtrainsa localhost spam@domain.com "password" spam "/inbox/spam/"
fetchmail:/opt/zimbra/conf/.fetchmailrc:2: syntax error at end of input
bayes: synced databases from journal in 1 seconds: 1514 unique entries (4010 total entries)

Not sure whats causing this and or if its even a problem.
we are running M3-network on Cent4
Reply With Quote
  #2 (permalink)  
Old 01-17-2006, 10:58 AM
Zimbra Employee
 
Posts: 2,103
Default Begs the question...

What's in your fetchmailrc file, that it's throwing the error on? If it's being removed by the script, can you edit the trainsa script to skip the fetchmailrc file removal?
Reply With Quote
  #3 (permalink)  
Old 01-17-2006, 11:45 AM
Senior Member
 
Posts: 51
Default

I dont have a .fetchmail.rc file. Its looking for the file in /opt/zimbra/conf I touched a file there and it just gives me a > instead of the error. Im not sure what I would have to modify in the script to pull it out.
Reply With Quote
  #4 (permalink)  
Old 01-17-2006, 11:50 AM
Zimbra Employee
 
Posts: 2,103
Default fetchmail

copy the shell script and mod. the copy to output the rc file.
Reply With Quote
  #5 (permalink)  
Old 01-17-2006, 12:14 PM
Senior Member
 
Posts: 51
Default

Im not quite following you. Explain please.
Reply With Quote
  #6 (permalink)  
Old 01-17-2006, 12:18 PM
Zimbra Employee
 
Posts: 2,103
Default error in fetchmailrc

You reported an error in fetchmailrc, which is created by the trainsa script, then removed.

copy the trainsa script, and modify it so that it doesn't remove the fetchmailrc file.
run the modified trainsa script
post the rc file, so we can find the error.
Reply With Quote
  #7 (permalink)  
Old 01-17-2006, 12:34 PM
Senior Member
 
Posts: 51
Default

[zimbra@mail bin]$ cat /opt/zimbra/conf/.fetchmailrc
server localhost protocol IMAP user spam@domain.com@localhost password #PW# keep
[zimbra@mail bin]$

I changed the domain and pw. Although the original password does have # on both ends. Not sure if thats causing the problem but Its possible because I have to " " it when I run it.
Reply With Quote
  #8 (permalink)  
Old 01-17-2006, 12:37 PM
Senior Member
 
Posts: 51
Default

The # sign in the password was causing the problem. I removed the # from the password and its running now.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.