Welcome to the bugtracker of the ISPConfig project. This bugtracker is for ISPConfig 3.x only.
FS#618 - getmail not working with multiple retrieve task
Attached to Project:
ISPConfig 3
Opened by Paolo (airton) - Thursday, 12 March 2009, 14:32 GMT
Last edited by Till (Till) - Thursday, 12 March 2009, 17:49 GMT
Opened by Paolo (airton) - Thursday, 12 March 2009, 14:32 GMT
Last edited by Till (Till) - Thursday, 12 March 2009, 17:49 GMT
|
Detailsgetmail version 4.7.8 (Debian lenny)
If there is more than one retrive task (more .conf files in /etc/getmail) the mail isn't retrieved an is logged an error: Error: unknown argument(s) ['/etc/getmail/mail.domain.tld_name@site.tld.conf'] ; try --help For handling multiple task seems getmail require to be invoked with a different syntax: /usr/bin/getmail -n -v -g /etc/getmail -r /etc/getmail/file1.conf -r /etc/getmail/file2.conf -r /etc/getmail/file3.conf or with a single rcfile with configuration for multiple tasks. I've solved in this way: 1 - in /etc/getmail create a file run-getmail.sh (chown getmail + chmod 744) #!/bin/sh set -e cd /etc/getmail rcfiles="" for file in *.conf ; do rcfiles="$rcfiles -r $file" done #echo $rcfiles exec /usr/bin/getmail -n -v -g /etc/getmail $rcfiles 2 - edit crontab of user getmail to invoke this script */5 * * * * /etc/getmail/run-getmail.sh > /dev/null 2>> /var/log/ispconfig/cron.log |
This task depends upon