This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Multiple users in fetchmail


On Sun, Aug 11, 2002 at 02:02:04PM +0100, Jim George wrote:
> in the Linux version of fetchmail I was able to run the daemon as root
> and fetch/deliver mail (through procmail) for multipl users.  Reading
> the man/README/archives of this list, I don't appear to have that
> option anymore.

See my next post...

> I also don't appear to be able to install/run to instances of the same
> service under different user IDs.

The following (untested and ugly) workaround should work:

    $ cygrunsrv --install "fetchmail for $USERNAME1" --path /usr/bin/fetchmail --env HOME=$HOME1 --user "$USERDOMAIN\\$USERNAME1" --args '--daemon 300 --nodetach' --shutdown
    $ cygrunsrv --install "fetchmail for $USERNAME2" --path /usr/bin/fetchmail --env HOME=$HOME2 --user "$USERDOMAIN\\$USERNAME2" --args '--daemon 300 --nodetach' --shutdown
    $ cygrunsrv --install "fetchmail for $USERNAME3" --path /usr/bin/fetchmail --env HOME=$HOME3 --user "$USERDOMAIN\\$USERNAME3" --args '--daemon 300 --nodetach' --shutdown


    $USERNAMEn => user n's user name
    $HOMEn     => user n's home directory


Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]