From: Jerry <je...@se...> - 2014-11-02 16:37:09
|
On Sun, 2 Nov 2014 17:29:42 +0200, Ian Balchin stated: > > > On new FreeBSD server (my first ever) I have the fetchmail daemon > > > running but although showing in the maillog it does not actually run. > > > It never wakes up and fetches any mail. > > > > > > The output from it run as 'fetchmail -V -v --nodetach --nosyslog' is > > > pasted below > > > > > > The last line in maillog is: > > > > > > Nov 2 14:21:00 myserver fetchmail[4581]: starting fetchmail 6.3.26 > > > daemon > > > > > > and there we sit. > > > > > > If run as 'fetchmail -vvv --nodetach --nosyslog' it works fine. > > > > > > I copied fetchmailrc out from /usr/local/etc to my home directory and > > > renamed it .fetchmailrc and then edited accordingly. User = me, group = > > > fetchmail. I added me to the fetchmail group with no change in > > > operation. 1) Do you have: ## Start Fetchmail fetchmail_enable="YES" in the /etc/rc.conf file? 2) Are you the ohny user of this PC? a) If so, then why move the fetchmail configuration file? 3) Did you read and follow the following portion of the "/usr/local/etc/rc.d/fetchmail" file? # There are two variants: # # * Single system-wide fetchmail daemon: # - It is run as user `fetchmail_user' (default: fetchmail) # Note: The directory /var/run/fetchmail must be writable for # 'fetchmail_user'. # - All configuration is contained in one global file # 'fetchmail_config' (default: /usr/local/etc/fetchmailrc) # that must be owned by 'fetchmail_user' (mode 700) # - The fetchmail daemon awakes to fetch mail every # 'fetchmail_polling_interval' seconds (default: 900). # # * Per-user daemon # - Users for which a fetchmail daemon is to be started must be # listed in 'fetchmail_users', e.g. fetchmail_users="user1 user2" # The 'fetchmail_user' (sic!) variable is ignored in this # configuration variant. # - The config files for the individual users must be located at # ${fetchmail_home_prefix}/${user}/${fetchmail_config_name}. The # default for 'fetchmail_home_prefix' is "/home", and that for # 'fetchmail_config_name' is ".fetchmailrc". # - Note that "${fetchmail_home_prefix}/${user}" must be writable # for ${user} since it is used to store the per-user PID files! # - There are user-specific versions of 'fetchmail_config' and # 'fetchmail_polling_interval' that can be used to override the # defaults, i.e. for the user 'user1' there are variables # 'fetchmail_user1_config' and 'fetchmail_user1_polling_interval' # - All commands (e.g. start, stop, awaken (see below)) can be either # passed to all instances of the daemon (if /usr/local/etc/rc.d/fetchmail) # is run as root), or just to the instance belonging to the respective # user. # -- Jerry |