From: Dmitry Vukolov <dvukol@rosmail.ru>
To: community@altlinux.ru
Subject: Re: [Comm] fetchmail+procmail+root
Date: Sun, 4 May 2003 18:09:31 +0400
Message-ID: <200305041809.32052.dvukol@rosmail.ru> (raw)
In-Reply-To: <20030501085849.GA3211@bee-s.com>
On Thursday 01 May 2003 12:58, Ружников Вадим wrote:
> Здравствуйте!
> Вот уже сколько бьюсь, но что-то в голове не укладывается : (
> Мне хотелось, чтобы после начала соединения с инетом у меня сразу
> fetchmail забирал почту. Тогда(как мне тут посоветовали, спасибо)
> сделал скрипт в /etc/ppp/ip-up.d:
>
> #!/bin/sh
> fetchmail -f /root/.fetchmailrc
>
<skipped>
У меня прекрасно работает следующий вариант.
В /etc/ppp/ip-up.local добавлено:
if [ -f `eval echo ~$PPPLOGNAME/.fetchmailrc` ]; then
sudo -H -u $PPPLOGNAME fetchmail
fi
А в /etc/ppp/ip-down.local добавлено:
sudo -H -u $PPPLOGNAME fetchmail --quit
В результате fetchmail запускается от того пользователя, который
устанавливал соединение. В случае с kppp - это тот, кто звонил к
провайдеру.
Соответственно все настройки делаются в пользовательских каталогах. Т.е.
в ~/.fetchmailrc и, если нужно, ~/.procmailrc.
--
Dmitry Vukolov
next prev parent reply other threads:[~2003-05-04 14:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-01 8:58 Ружников Вадим
2003-05-04 9:56 ` Aleks Silin
2003-05-04 12:23 ` Valentin Nechayev
2003-05-04 14:09 ` Dmitry Vukolov [this message]
2003-05-05 13:21 ` Alexandr R. Ogurtzoff
2003-05-06 0:41 ` [Comm] fetchmail+procmail+root Michael Shigorin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200305041809.32052.dvukol@rosmail.ru \
--to=dvukol@rosmail.ru \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git