Re: CentOS 6, Postfix, and Procmail -- how do I get it to work?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Postfix has feature for this sort of thing built in.
see
http://www.postfix.org/ADDRESS_REWRITING_README.html#auto_bcc



On Tue, Aug 19, 2014 at 3:26 AM, Robert Heller <heller@xxxxxxxxxxxx> wrote:

> What is the trick to get Postfix's local command to pipe mail through
> procmail?
>
> I have:
>
> -bash-4.1$ grep allow_mail_to_commands /etc/postfix/main.cf
> allow_mail_to_commands = alias, forward
>
> and
>
> -bash-4.1$ cat .forward
> |/usr/bin/procmail
>
> and a .procmailrc file:
>
> -bash-4.1$ cat .procmailrc
> PATH=/usr/bsd:/bin:/usr/bin:/exp/rcf/share/bin
> MAILDIR=/var/lib/amanda/Mail      #you'd better make sure it exists
> DEFAULT=$ORGMAIL   #completely optional
> LOGFILE=$MAILDIR/from   #recommended
>
> :0
> * ^From.*no-reply@xxxxxxxxxxxxxxxxx
> |$HOME/retrieveArchive.tcl
>
> :0
> ! heller@xxxxxxxxxxxx
>
> Basically I want all mail to the Amanda Backup account, except messages
> from
> Amazon SNS, to be forwarded to me (the system admin).  The
> retrieveArchive.tcl
> is a script to process Amazon SNS messages.
>
>
> --
> Robert Heller             -- 978-544-6933
> Deepwoods Software        -- Custom Software Services
> http://www.deepsoft.com/  -- Linux Administration Services
> heller@xxxxxxxxxxxx       -- Webhosting Services
>
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux