On 09/18/2010 06:17 PM, Ben Kennedy wrote: > Hi Gordon et al., Hi?
Just so you know, I'm not associated with Courier::Filter. :) > Most of the time this has been working fine. However, lately I've been > getting messages that are addressed to 3 recipients at the same > virtualdomain, one of which matches in the $rejectexp, and the other two > of which are legitimate. Unfortunately the entire delivery, to all > recipients, is being summarily 550 rejected. Yep, that's the only possibility wither courierfilter. You can't reject on individual recipient addresses using that API. > When the message originally arrives on my secondary MX (to which most > spam seems to come first), That's very common. > it is accepted successfully and then tries to > relay to the primary (as configured in esmtproutes). The primary > rejects the delivery. Presumably the secondary then sends out a bounce, > which oftentimes comes back, leading to the 556 situation and the > legitimate addresses now being permanently rejected by the secondary. It doesn't matter if you bounce or not. If courier accepts a message, and delivery of that message fails, then courier will stop accepting mail for that address. > How can I fix this? All of your MXs *MUST* apply the same rules to incoming mail. If you feel that you must have a backup MX, then don't put your domains into "esmtpacceptmailfor" and expect everything to work. You need to put your domains in hosteddomains as well, and you need to build an alias file that contains a list of all of your valid addresses. If you have wildcard (dot-courier-default) addresses, they probably just won't work through the backup. The alias file should direct all valid addresses to your primary MX. Your primary MX should also be configured to accept all mail from your backup, without any kind of filtering. Apply the same protection to your backup MX that you do to your primary, and don't double-filter. Anything that comes from your backup MX has already passed your filters. ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
