Things like that, with procmail, could cause several loops, especially
when is flavored with the "c" flag. You should consider use a solution
at postfix's level only.

Anyway, you could also do something with isabel's procmailrc, example:

/home/isabel/.procmailrc

And write inside this:

:0c
* From.*u...@external.com
!p...@mydomain.com ma...@mydomain.com

An then set the procmailrc's permissions like this

chown isabel:isabel /home/isabel/.procmailrc
chmod 600 /home/isabel/.procmailrc

Use procmail's log to see what is happening, see man procmailex. I'm
not pretty sure if you can send to email address to the "!" action



Thread name: "postfix or procmail" 
Mail number: 1 
Date: Thu, Jul 18, 2013 
In reply to: co...@esid.gecgr.co.cu 
>
> Hi
> 
> All day I receive an email from external account u...@external.com it
> reaches a user of my local domain isabel@mydomain, need to automatically
> be forwarded to other users on my domain and maria pepe.
> 
> I use Debian 6 and postfix 2.7
> 
> I tried aliases and postfix, also with procmail something like this
> 
> echo multiples: pepe maria >> /etc/aliases
> postalias /etc/aliases
> 
> echo '/^From:.user@external\.com/i    REDIRECT multip...@mydomain.com' >>
> /etc/posftix/encabezados
> 
> postmap /etc/postfix/encabezados >> /etc/postfix/main.cf
> 
> 
> with procmail
> 
> :0 c
>  * ^From.*u...@external.com
>  ! p...@mydomain.com ma...@mydomain.com
> 
> none of the 2 runs
> 
> How I can fix?
> 
> regards
> 
> 
> 
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
> Archive: 
> http://lists.debian.org/8a9befc82d5593f98418359cd108c59b.squirrel@192.168.13.16

-- 
-------- Warning! ------------
100'000 pelos de escoba fueron
introducidos satisfactoriamente
en su puerto USB.





-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130718221444.GD18589@utopian

Reply via email to