What I'd like to be able to do is to read the mail from the POP3 account and
then automatically forward it to one or more of number of the different
individuals belonging to our group (and who already have their own email
accounts), using the "to" & "cc" addresses to select the appropriate
invidual.
Does anyone know of any software that would allow me to do such a thing?
I'd be looking to run it on a Linux server, but I could run under Windows if
necessary.
Thanks very much,
Jonathan Goodchild
That's called "bouncing". If you add comments, it's called "forwarding".
You can do either with mutt or mail or any decent MUA, but have to enter the
new address at a prompt.
Or, you could use the | command to pipe the message (once again, available in
any decent MUA) to a small script like this:
#!/bin/sh
formail -i"To: j...@hotmail.com" -s $SENDMAIL -t
exit 0
Create the files, name them joe etc, make them executable with
$chmod +rx filename
and put them in your path, probably /usr/local/bin, as root.
Now, if you've read a mail you want to send to joe, enter | joe
and it will be sent to him with the original address (your website)
appearing in the headers as Old-To: your_website's_address.
I'm sure someone will have a better idea, but this would work, and would
only require one tiny script per person.
Formail comes with the procmail package, and is a standard Nix mail utility.
AC
Better idea! With Mutt you can just type b, then enter the alias for the
person you want to bounce the mail to.
You just create a file called .mail_aliases in your home directory with
listings like this:
alias joe joes...@hotmail.com
Then put this line in your ~/.muttrc
set alias_file=~/.mail_aliases
That's it. Install Mutt.
comp.mail.mutt for any questions.
It's a good program and runs in textmode.
AC
>I manage the web-site for a group I belong to (we're an amateur musical
>theatre company), and we have our own domain name. We also have a single
>POP3 mail account for the domain.
>Does anyone know of any software that would allow me to do such a thing?
fetchmail
--
a signature