I have a bit of problem and I am pretty new in this field and I don't know how to set this. I have searched somewhere on the internet how to solve this but I don't really get all this stuff about mailing.
My problem is I have apache2 running localy and when there is error trigger while debbuging application the apache2 sends debugging email onto out common email address. Problem is I am spamming this address with irrelevant data from my localhost. Is it possible to set some kind of filtering or catch for sender or recipient all this emails and maybe redirect them to some other email address?
I am running fedora 18 and apache 2.4. I used in access to set all as REJECT but that again rejects all outgoing emails?
This is example from
/var/log/maillig when the error on the application occurs
Jan 31 09:13:21 localhost sendmail: r0V8DLVw007153: Authentication-Warning: localhost.localdomain: apache set sender to <email_address1> using -f Jan 31 09:13:21 localhost sendmail: r0V8DLVw007153: from=<email_address1>, size=1639, class=0, nrcpts=1, msgid=<201301310813.r0V8DLVw007153@localhost.localdomain>, relay=apache@localhost Jan 31 09:13:21 localhost sendmail: r0V8DLfZ007154: from=<email_address1>, size=1968, class=0, nrcpts=1, msgid=<201301310813.r0V8DLVw007153@localhost.localdomain>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1] Jan 31 09:13:22 localhost sendmail: r0V8DLVw007153: email@example.com, ctladdr=email_address1 (48/48), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=31639, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (r0V8DLfZ007154 Message accepted for delivery) Jan 31 09:13:23 localhost sendmail: STARTTLS=client, relay=mail.server.com., version=TLSv1/SSLv3, verify=FAIL, cipher=AES256-SHA, bits=256/256 Jan 31 09:13:24 localhost sendmail: r0V8DLfZ007154: to=<firstname.lastname@example.org>, delay=00:00:03, xdelay=00:00:02, mailer=esmtp, pri=121968, relay=mail.server.com. [184.108.40.206], dsn=2.0.0, stat=Sent (ok 1359620004 qp 7564)