Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 28th January 2009, 14:16
airton airton is offline
Junior Member
 
Join Date: Jan 2009
Posts: 7
Thanks: 0
Thanked 10 Times in 4 Posts
Default 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!
Reply With Quote
Sponsored Links
  #2  
Old 29th January 2009, 18:42
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,778
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
Default

I've added this to the bugtracker.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 24th February 2009, 11:51
DonAteloNow DonAteloNow is offline
Junior Member
 
Join Date: Oct 2008
Location: Lithuania
Posts: 23
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via ICQ to DonAteloNow Send a message via MSN to DonAteloNow Send a message via Skype™ to DonAteloNow
Question 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.
Reply With Quote
  #4  
Old 24th February 2009, 12:10
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,778
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
Default

Thats fine as you have not created any getmail accounts yet, its not a problem.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 12th March 2009, 15:16
airton airton is offline
Junior Member
 
Join Date: Jan 2009
Posts: 7
Thanks: 0
Thanked 10 Times in 4 Posts
Default 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

Last edited by airton; 12th March 2009 at 15:29.
Reply With Quote
The Following 2 Users Say Thank You to airton For This Useful Post:
DonAteloNow (12th March 2009), till (12th March 2009)
  #6  
Old 12th March 2009, 15:32
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,778
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
 
Default

Thanks, I added it to the bugtracker.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig Conflic With Fedora 9 GDM rhuckle General 1 30th June 2009 01:58
MySQL5 client access to ISPConfig box vs plain centos5 pakogah Installation/Configuration 1 5th August 2008 18:47
Migrating from Virtualmin to ISPConfig xare Installation/Configuration 3 16th July 2006 12:58
ISPConfig 2.3.1-dev released till General 0 8th May 2006 22:18
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 15:16


All times are GMT +2. The time now is 16:50.


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