On Mon, 24 Apr 2006 18:05:31 +1000
Andrew Pam <[EMAIL PROTECTED]> wrote:
> Apologies if this has been discussed before. I have a number of
> clients with mailboxes on my server who are complaining that they are
> losing important incoming emails. On further investigation, this
> turns out to be caused by the senders incorrectly capitalising the
> username. Is there a plugin or patch for qpsmtpd to make it force all
> account names in incoming email to lowercase?
With the latest 0.3x in svn you can easily do something like
sub hook_rcpt_pre {
my ($self,$transaction, $addr) = @_;
return (OK, lc($addr));
}
as a standalone plugin (the rcpt_pre hook is called before the address
is parsed by Qpsmtpd::Address), but ONLY if you don't need any other
plugins hooking rcpt_pre (like dont_require_anglebrackets).
Hanno