Re: [Exim] Forwarding mail to other users on the lan ?

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Andreas Metzler
Data:  
Para: Exim
Assunto: Re: [Exim] Forwarding mail to other users on the lan ?
On Tue, Sep 23, 2003 at 09:41:12AM +1000, mpierce wrote:
> I think I need a .forward file to do this but unsure as to how to set it
> up.


> 1) Login name on server (192.168.1.1) is mpierce. mpierce collects mail
> on server.
> 2) Login name on notebook (192.168.1.252) is mpierce. mpierce wants to
> collect all mail from server except root-mail.
>
> How would I set this up?


Set up exim to be able to deliver to 192.168.1.252, i.e. DNS. (dnsmasq
should be enough) and use something like this:
# Exim filter
if $original_local_part is not $local_part then
finish
else
unseen deliver mpierce@???
endif

Which will copy any mail routed directly to mpierce to the notebook
but will ignore anything forwarded (via .forward or /etc/aliases to
the mpierce-account from some other account.

WARNING this might deliver multiple copies to mpierce@server. I think
that is a bug and will send a separate mail to exim-users.
               cu andreas
--
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"