Mailinglist Archive: opensuse (1377 mails)

< Previous Next >
Re: [S.u.S.E. Linux] fetchmail AND sendmail
  • From: brauki@xxxxxxxxxx (Juergen Braukmann)
  • Date: Tue, 04 Aug 1998 17:42:34 +0200
  • Message-id: <35C72BEA.1B96723F@xxxxxxxxxx>



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.

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


< Previous Next >
Follow Ups
References