Hello,
As I wasn't aware of this patch introducing "StripRcptDomain" parameter,
I wrote my own. You can read about and download it from here:
http://metacortex.hu/~buci/dspam .
Greetings,
Peter
Tod A. Sandman írta:
On Wed, Feb 28, 2007 at 05:18:48PM -0500, David S. Salib wrote:
Hello,
I've got dspam working there's just one thing I can't get done. I would
like for dspam to strip the domain from the username. I've tried all
combinations of StripRcptDomain and ParseHeaders. Here are the
variations I have tried.
Where are you getting information regarding 'StripRcptDomain'?
We use this option, but it required a patch:
--- daemon.c.P1 2006-07-11 08:39:45.000000000 -0500
+++ daemon.c 2006-07-11 08:46:22.854520000 -0500
@@ -571,6 +571,15 @@
goto GETCMD;
}
+ /* Chop of @.* from the recipient */
+ if (_ds_match_attribute(agent_config, "StripRcptDomain", "on")) {
+ strtok(username, "@");
+ if (username[0] == 0 || username[0] == '-')
+ { daemon_reply(TTX, LMTP_BAD_CMD, "5.1.2", ERR_LMTP_BAD_RCPT);
+ goto GETCMD;
+ }
+ }
+
if (_ds_match_attribute(agent_config, "Broken", "case"))
lc(username, username);
I don't think the parse headers option is involved.
Tod Sandman
Sr. Systems Administrator
Middleware Development & Integration
Rice University