Re: postfix or procmail
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.*user@external.com
!pepe@mydomain.com maria@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: cosme@esid.gecgr.co.cu
>
> Hi
>
> All day I receive an email from external account user@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 multiples@mydomain.com' >>
> /etc/posftix/encabezados
>
> postmap /etc/postfix/encabezados >> /etc/postfix/main.cf
>
>
> with procmail
>
> :0 c
> * ^From.*user@external.com
> ! pepe@mydomain.com maria@mydomain.com
>
> none of the 2 runs
>
> How I can fix?
>
> regards
>
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: [🔎] 8a9befc82d5593f98418359cd108c59b.squirrel@192.168.13.16">http://lists.debian.org/[🔎] 8a9befc82d5593f98418359cd108c59b.squirrel@192.168.13.16
--
-------- Warning! ------------
100'000 pelos de escoba fueron
introducidos satisfactoriamente
en su puerto USB.
Reply to: