Mailinglist Archive: opensuse (1377 mails)

< Previous Next >
Re: [S.u.S.E. Linux] fetchmail AND sendmail
  • From: rwilliams@xxxxxxxxxxx (Robert Williams)
  • Date: Tue, 04 Aug 1998 09:41:29 -1000
  • Message-id: <35C763E9.81EC93A4@xxxxxxxxxxx>



Juergen Braukmann wrote:
>
> Robert Williams wrote:
> >
> > I have fetchmail up and running and now I need to forward
> > emails to different users on the same machine via sendmail.
> > To do this I want to use the TO: field to determine who gets
> > what email.
> >
>
> If i got your question right, you have the users ... say:
> wright, smith and miller.
>
> alter your /etc/fetchmailrc like:
>
> poll mail.cww.de protocol POP3 no dns username smith password xyz to
> smith here
> poll pop.gmx.de protocol POP3 no dns username wright password xyz to
> wright here
> poll pop.gmx.de protocol POP3 no dns username miller password xyz to
> miller here
>
> call fetchmail -f /etc/fetchmailrc
>
> and it will do a nice job. More info: read the dreaded manpage! ;-))
>
> or, if you cant use your users passwords and poll the mail as root,
> you can probably use procmail to distribute to the users mailfolders
> in /var/spool/mail.
> there are some demos with the procmail package. By looking at my
> old .procmailrc, I found entrye like:
>
> :0
> * ^To.*suse-linux-e
> SuSE-Linux-e
>
> I have just looked into the mail header (of your mail) and do not find
> my mail address there (forwarded from SuSE). Probably, this
> idea won't work with a list.

Actually we have only one email account with our ISP and
have email aliases. So I need to read the TO: field and
forward the email to the user. Looks like procmail will do
it. I am reading the docs for it and I need .forward and
.procmailrc. Using your example people, how do I send
TO:Smith... to his mail folder (/var/spool/mail/smith)?

Thank you for your help. This is really difficult to get
working!

> Jürgen
>
> --
> ========================================== __ _
> Jürgen Braukmann e-mail: brauki@xxxxxx | / / (_)__ __ ____ __
> Tel: 0201-743648 dk4jb@db0qs.#nrw.deu.eu | / /__/ / _ \/ // /\ \/ /
> ========================================== /____/_/_//_/\_,_/ /_/\_\
> -
> To get out of this list, please send email to majordomo@xxxxxxxx with
> this text in its body: unsubscribe suse-linux-e


--
Robert Williams rwilliams@xxxxxxxxxxx
Jarob Consulting rwilliams@xxxxxxx
Maui, Hawaii
-
To get out of this list, please send email to majordomo@xxxxxxxx with
this text in its body: unsubscribe suse-linux-e


< Previous Next >
Follow Ups
References