forwarding mailu
Derfinak Jan
derfinak na hron.fei.tuke.sk
Středa Červenec 22 15:47:50 CEST 1998
On Wed, 22 Jul 1998, Blackie wrote:
> On Wed, 22 Jul 1998, Michal Krause wrote:
>
> > Lukas Horalek wrote:
> > > > Neni treba pouzivat procmail, sendmail to podporuje taky -- staci dat do
> > > > .forward:
> > > >
> > > > hynek,hynek na jiny.serv.er
> > >
> > > Az tak jednoduse? Ja pouzivam pro 'kopirovani' dvojradkovy tvar:
> > > klokan na tento.stroj
> > > klokan na ten.jiny.stroj
> >
> > Myslel jsem, ze tohle se zacykli. No asi ne, kdyz uz to pouzivate :)
> >
> Zda se mi, ze to funguje tak, ze se to nezacykli, pokud je dopis posilan
> primo na adresu. Ale pokud je mail forwardovany z jine adresy, zustane
> neodeslan (asi ochrana proti zacykleni).
> Ma nekdo napad, jak jednoduse vyresit v kopirovani mailu i tohle?
Ospravedlnujem sa ak to tu zu bolo. Tu su dva priklady pouzitia procmailu:
Tento jednoduchsi robi v podstate to iste ako .forward, ale obchadza
spominany problem
:0
{
:0 c
! klokan na ten.jiny.stroj
:0
klokanov_mailbox_na_tomto_stroji
}
A tento je uz velmi sikovny
Suppose you have two accounts, you use both accounts regu-
larly, but they are in very distinct places (i.e. you can
only read mail that arrived at either one of the
accounts). You would like to forward mail arriving at
account one to account two, and the other way around. The
first thing that comes to mind is using .forward files at
both sites; this won't work of course, since you will be
creating a mail loop. This mail loop can be avoided by
inserting the following recipe in front of all other
recipes in the $HOME/.procmailrc files on both sites. If
you make sure that you add the same X-Loop: field at both
sites, mail can now safely be forwarded to the other
account from either of them.
:0 c
* !^X-Loop: yourname na your.main.mail.address
| formail -A "X-Loop: yourname na your.main.mail.address" | \
$SENDMAIL -oi yourname na the.other.account
jano
----- I can't get no satisfaction -----
Rolling Stones
Další informace o konferenci Linux