I'm running ISPConfig with postfix on Ubuntu. Each domain has their own [email protected] email alias setup. Is there any way to set it up so that my admins get copied on all messages to abuse@<any domain>? That way both people running the domain, and the people running the server, get to see those messages.
It might be possible to do this by adding a permananet redirect for all abuse@... emails in the procmail recipes of the user accounts. Or it might be possible to do this with the postfix aliases, but I dont know if you can use aliases to deliver the original mail and forward it to a second account.
I thought about doing it through procmail. The problem is that if they don't set up an abuse@ email address, postfix will still reject the mail. I can work with that, but it's not ideal. The ideal setup would be: - Postfix accepts email for abuse@<any hosted domain> - The email gets sent to [email protected] - If there is an abuse@thatdomain email setup, it also gets sent there. Anyone know how to accomplish that?
The closest I could find with postfix was to add a BCC to another address. This works, however Postfix will still reject mail for any domain that hasn't setup an abuse@... email address. So, since I have to force them to add it anyways, I may as well just do it in procmail. My example below assumes admindomain.com is the domain you want the mails forwarded to. Here's what I added to /root/ispconfig/isp/conf/procmailrc.master (put it right under the line "{MAILDIR_COMMENT}ORGMAIL=$MAILDIR" PHP: # Copy system admins on any mail to abuse@... or postmaster@... # Dont copy us on mail already addressed to us, mailer loops are bad. :0c * !^X-Original-To:.*postmaster@admindomain.com * ^X-Original-To:.*postmaster@ ! postmaster@admindomain.com :0c * !^X-Original-To:.*abuse@admindomain.com * ^X-Original-To:.*abuse@ ! abuse@admindomain.com