HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   ISPConfig 3 - getmail (http://www.howtoforge.com/forums/showthread.php?t=30717)

airton 28th January 2009 14:16

ISPConfig 3 - getmail
 
I'm trying ispconfig3 from SVN: is a very good work!! Thanks to developer.
My question is about getmail.
I've found no entry in getmail user crontab and so the script getmail.sh is never invoked. Seem installer (installer_base.lib.php lines 1059-1081) doesn't create these entries.
Thanks.

PS: IMHO could be usefull to create a forum section dedicated to ISPConfig 3.0!

till 29th January 2009 18:42

I've added this to the bugtracker.

DonAteloNow 24th February 2009 11:51

Error: configuration file /etc/getmail/*.conf does not exist
 
Hello,

I'm getting this error in ISPC-Cron-log.
Error: configuration file /etc/getmail/*.conf does not exist


Information in /usr/local/ispconfig/server/scripts/getmail.sh
#!/bin/bash
getmail -g /etc/getmail/ -r /etc/getmail/*.conf

But I have no files in /etc/getmail/

What is the best way to solve this problem?

Thanks, guys.

till 24th February 2009 12:10

Thats fine as you have not created any getmail accounts yet, its not a problem.

airton 12th March 2009 15:16

Another bug? (solved)
 
getmail 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 seem 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)

Code:

#!/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 - edited crontab of user getmail to invoke this script
Code:

*/5 * * * * /etc/getmail/run-getmail.sh  > /dev/null 2>> /var/log/ispconfig/cron.log

till 12th March 2009 15:32

Thanks, I added it to the bugtracker.


All times are GMT +2. The time now is 08:40.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.