disallow forwarding to certain domains?

erinspice

Well-Known Member
Feb 12, 2006
99
0
166
Anybody know of a way to disallow mail forwarding to certain domains? I want to allow users to send mail through webmail and authenticated SMTP, but I don't want my server forwarding mail to some ISPs like AOL and Comcast. I don't want to have to keep editing the valiases files either. I want it to just silently discard email to those domains if it's forwarded. Any ideas?
 

jsnape

Well-Known Member
Mar 11, 2002
174
0
316
While not very elegant, I just issue a command to all servers once in a while, usually after AOL blocks a server:

replace @aol.com @NO_AOL_FORWARDING_AVAILABLE -- /etc/valiases/*