zmtrainsa problem

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
Splat
Advanced member
Advanced member
Posts: 51
Joined: Fri Sep 12, 2014 10:00 pm

zmtrainsa problem

Post by Splat »

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
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

zmtrainsa problem

Post by marcmac »

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?
Splat
Advanced member
Advanced member
Posts: 51
Joined: Fri Sep 12, 2014 10:00 pm

zmtrainsa problem

Post by Splat »

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.
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

zmtrainsa problem

Post by marcmac »

copy the shell script and mod. the copy to output the rc file.
Splat
Advanced member
Advanced member
Posts: 51
Joined: Fri Sep 12, 2014 10:00 pm

zmtrainsa problem

Post by Splat »

Im not quite following you. Explain please.
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

zmtrainsa problem

Post by marcmac »

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.
Splat
Advanced member
Advanced member
Posts: 51
Joined: Fri Sep 12, 2014 10:00 pm

zmtrainsa problem

Post by Splat »

[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.
Splat
Advanced member
Advanced member
Posts: 51
Joined: Fri Sep 12, 2014 10:00 pm

zmtrainsa problem

Post by Splat »

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