Re: enable fetchmail system-wide mode

2007-06-04 Thread Thanos Rizoulis

O/H Simon Barner έγραψε:

Hello Gerard,

  

I had to slightly modify it to work the way I wanted on my system. I
would suggest that you do that 'AFTER' you have gotten it to relatively
the way you want it to.



Are these changes useful for other users, too? If so, please send me
a diff, so I can modify the port.

  

This is a little guide to setting up fetchmail 6.3.8

   cd /usr/ports/mail/fetchmail
   make install clean

   echo 'fetchmail_enable=YES'/etc/rc.conf
   echo 'fetchmail_polling_interval=60'/etc/rc.conf

The above two are mentioned in /usr/local/etc/rc.d/fetchmail

   ee /usr/local/etc/fetchmailrc (initially it is nearly empty)

set invisible
set no bouncemail
set no spambounce
set postmaster [EMAIL PROTECTED]
set syslog
poll pop.mail.yahoo.com
   timeout 40
   proto pop3
   user username
   pass password
   is [EMAIL PROTECTED]
   fastuidl 1
   fetchlimit 0
   limit 0
   keep
   forcecr

The above options are for a client who wishes to keep messages stored in 
remote POP3 mailboxes. *man fetchmail* for specifics, especially at the 
end where it gives a nice table of availiable commands and fetchmailrc 
options. The MTA handling the local domain is qmail, hence the required 
forcecr option.
The timings (60sec per POP3 access) may seem agressive but I contacted 
the ISP and they have no problem with that and the client is happy to 
have nearly email-chat sessions. Users or abusers, as long as they pay 
the bucks


   chmod 0700 /usr/local/etc/fetchmailrc
   chown fetchmail:fetchmail /usr/local/etc/fetchmailrc (the 
permissions are already set anyway)

   /usr/local/etc/rc.d/fetchmail start

Also there is a new option I haven't seen before. Suppose that fetchmail 
is sleeping and you want to wake it up *right now* to receive new messages:
  
   /usr/local/etc/rc.d/fetchmail awaken


Watch /var/log/maillog for fetchmail activity.

--
RTFM and STFW before anything bad happens
_
Thanos Rizoulis
Electronic Computing Systems Engineer
Larissa, Greece
FreeBSD/PCBSD user

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: enable fetchmail system-wide mode

2007-06-02 Thread Simon Barner
Hello Gerard,

 I had to slightly modify it to work the way I wanted on my system. I
 would suggest that you do that 'AFTER' you have gotten it to relatively
 the way you want it to.

Are these changes useful for other users, too? If so, please send me
a diff, so I can modify the port.

-- 
Best regards / Viele Grüße, [EMAIL PROTECTED]
 Simon Barner[EMAIL PROTECTED]


pgpwxDUtaN1mw.pgp
Description: PGP signature


Re: enable fetchmail system-wide mode

2007-05-31 Thread Simon Barner
Hello Bob,

 I want to run fetchmail enabled for system wide mode.
 The command line cmd fetchmail -q issued from user root gets meaningless
 error msg.

The error message may be meaningless to you, but without it cannot help
you here.

 Reviewing /usr/local/etc/rc.d/fetchmail has comments talking about system
 wide mode running under user fetchmail.
 How does the system admin control fetchmail when user fetchmail needs
 password to logon and no where is password given during install.

In daemon mode, the password is supposed to be stored in the config file.
Fetchmail also supports more advanced authentication mechanisms like
Kerberos, but I do not have any experience with it, and without support from
the mail server it seems useless.
 
 Also /usr/local/etc/fetchmailrc which is suppose to be the config file is
 empty. Even fetchmailrc.sample is empty.

Fetchmail supports literally dozends of configurations. IMO the port must
try and duplicate fetchmail's documentation.

You can use the fetchmailconf program to create and manage fetchmail
configurations (must not build WITHOUT_X11 then).

 
 The port pkg-message file is absent so there is no information describing
 how to configure fetchmail in system-wide mode or individual user mode.
 These are unique run modes to freebsd and are not covered in the fetchmail
 manual. The port pkg-message file should be created with instructions about
 how to configure it.

Users are supposed to read the 'fetchmail' rc script (this convention is
also used by other ports). You are right in that a short pkg-message that
contains a pointer to that file is usefull for novice fetchmail users on
FreeBSD. 

Did you have a look at the /usr/local/etc/fetchmailrc file? Do you have
suggestions how to improve the documentation provided at the beginning of
that file?

Please update your ports tree and rebuild the port -- I will commit
some small improvements now.

 
 Before in 4.11 through 5.4 I started fetchmail using
 /usr/local/etc/rc.d/fetchmail.sh and /root/,fetchmailrc and had root admin
 control of fetchmail. How do I achieve admin control now that fetchmail has
 been converted to use rc.conf fetchmail_enable=YES to start at boot time?

Simply copy your previous fetchmail config file (presumably /root/.fetchmailrc)
to /usr/local/etc/fetchmailrc), put fetchmail_enable=YES into /etc/rc.conf
and issue /usr/local/etc/rc.d/fetchmail start.

Btw.: Are you sure that you really need one system wide daemon? In my 
experience,
a per-user daemon makes things a lot easier for the administrator since users
can update their email configuration on their own.

If you still have problems, please give me as much detail as you can.

-- 
Best regards / Viele Grüße, [EMAIL PROTECTED]
 Simon Barner[EMAIL PROTECTED]


pgp0XTI0x7lJo.pgp
Description: PGP signature


Re: enable fetchmail system-wide mode

2007-05-30 Thread Gerard
On Wednesday May 30, 2007 at 06:51:26 (PM) Bob wrote:


 I want to run fetchmail enabled for system wide mode.
 The command line cmd fetchmail -q issued from user root gets meaningless
 error msg.
 Reviewing /usr/local/etc/rc.d/fetchmail has comments talking about system
 wide mode running under user fetchmail.
 How does the system admin control fetchmail when user fetchmail needs
 password to logon and no where is password given during install.
 
 Also /usr/local/etc/fetchmailrc which is suppose to be the config file is
 empty. Even fetchmailrc.sample is empty.
 
 The port pkg-message file is absent so there is no information describing
 how to configure fetchmail in system-wide mode or individual user mode.
 These are unique run modes to freebsd and are not covered in the fetchmail
 manual. The port pkg-message file should be created with instructions about
 how to configure it.
 
 Before in 4.11 through 5.4 I started fetchmail using
 /usr/local/etc/rc.d/fetchmail.sh and /root/,fetchmailrc and had root admin
 control of fetchmail. How do I achieve admin control now that fetchmail has
 been converted to use rc.conf fetchmail_enable=YES to start at boot time?

Did you try 'man fetchmail'? That should give you the required
configuration information. As you wrote, having the proper notation in
the '/etc/rc.conf' file will start 'fetchmail' upon boot-up, assuming
that there does exist a properly configured 'fetchmailrc' file. You
might also want to investigate the '/usr/local/etc/rc.d/fetchmail' file.
I had to slightly modify it to work the way I wanted on my system. I
would suggest that you do that 'AFTER' you have gotten it to relatively
the way you want it to.


-- 
Gerard

I feel sorry for people who don't drink. When they wake up in the
morning, that's as good as they're going to feel all day.  

Frank Sinatra
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]