On Tuesday 18 May 2004 13:51, David Newall wrote: > The problem isn't mail sent to valid addresses, it's mail sent to > non-existant ones. Normally they would be rejected by esmtpd, but when > you have a .courier-default alias they are accepted. That's a problem > because spammers try to guess addresses, resulting in a lot of mail that > gets accepted and then bounced. It'd be better to not accept it in the > first place, but for my needs, which requires a trivial rewriting of > recipient address, I can't see any alternative to a default alias.
What exactly are you doing in the courier-default file? Are you re-injecting the message (rewritten as "user-extra" instead of "user+extra") using sendmail? I suppose you have a couple of options. You could add some logic to your courier-default file to check for a valid address in the new syntax and drop the message if it's not valid. You might even be able to write a courierfilter that checks if the address would work in the new syntax and rejects it if it wouldn't. Then you wouldn't even have to accept them at all unless they would rewrite to valid users. You could also do something like re-injecting the message with the return-address set to an account which would just throw it away. I have an account "null" on my server which silently discards messages. So if you re-injected the message as sendmail -f null ... Then if the user doesn't exist the bounce should be immediately delivered to this account which will drop it. That at least would get rid of the bounces clogging your queue. I don't *think* it would mess up any clients to have it injected that way. No sure though. HTH. Jeff Jansen ------------------------------------------------------- This SF.Net email is sponsored by: SourceForge.net Broadband Sign-up now for SourceForge Broadband and get the fastest 6.0/768 connection for only $19.95/mo for the first 3 months! http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
