Using Procmail to filter local cron email messages
Siggy Brentrup
winnegan.ubuntu at ewetel.net
Tue Jul 7 12:12:15 UTC 2009
On Tue, Jul 07, 2009 at 04:54:22AM -0700, Keith wrote:
> Hi,
> I use fetchmail with postfix & procmail to retrieve my email from
> mail servers and procmail to my Ubuntu 9.04 Linux box. The problem
> that I encounter is that when cron runs it generates and sends a
> email to the local user account. When this email is sent it is not
> filtered with procmail and stays in my INBOX /var/mail/USERNAME . Is
> there a way to call procmail from postfix to filter messages? In
> fetchmail I use wants mda /usr/bin/procmail to call procmail to
> filter email messages.
> # Configuration created Sat Jun 13 11:40:27 2009 by fetchmailconf 1.54 $Revision: 5165 $
> poll mail.pop3server.net with proto POP3 auth password and options uidl
> user 'USERNAMETHERE' there with password 'secret' is 'USER' here
> options keep ssl
> mda '/usr/bin/procmail -d %T'
Simply put this in ~/.forward
| /usr/bin/procmail
Didn't check but you can remove the mda option from fetchmailrc I
assume.
HTH
Siggy
--
Please don't cc: me when replying on the list.
bsb-at-psycho-dot-informationsanarchistik-dot-de
or: bsb-at-psycho-dot-i21k-dot-de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090707/1ecde093/attachment.sig>
More information about the ubuntu-users
mailing list