OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Bug in local delivery? (does username case matter?)
From: Ignacio Arenaza (inaki.arenazajet.es)
Date: Thu Jun 22 2000 - 16:53:19 CDT


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I have recently migrated from sendmail to postfix and have had some
trouble with several accounts.

All that accounts have at leat a capital letter in the username. And I
am getting consistent bounces, telling me the user doesn't exist in
the system.

This is a Debian Gnu/Linux system (Potato). (in case that matters)

Looking through the logs I have seen this (lines wrapped for readability):

Jun 22 23:17:44 eb2ebu postfix/local[844]: C47224E38:
                       to=<CURSO01eb2ebu.ampr.org>, relay=local,
                       delay=0, status=bounced (unknown user: "curso01")

As you can see, postfix/local is looking for a user called "curso01"
when the original email address (and the real system account) is in
fact CURSO01.

It seems to me that RFC822 mandates the local part of a RFC822 email
address maintains its original case (except postmater, see RFC822
sec. 3.4.7), so I think something in postfix/local is doing the wrong
thing. I think the problem is in the following lines (the diff is only
shown to spot the file an line number)

- --- recipient.c Thu Jun 22 23:45:35 2000
+++ recipient.c.orig Thu Jun 22 23:45:25 2000
-201,7 +201,7
     if (state.msg_attr.delivered == 0)
        state.msg_attr.delivered = state.msg_attr.recipient;
     state.msg_attr.local = mystrdup(state.msg_attr.recipient);
- - lowercase(state.msg_attr.local);
+ lowercase(state.msg_attr.local);
     if ((state.msg_attr.domain = split_at_right(state.msg_attr.local, '')) == 0)
        msg_warn("no in recipient address: %s", state.msg_attr.local);

Anyone can confirm or deny this?

Thanks in advance.

- --
  Get PGP/GPG Keys at http://personales.jet.es/inaki.arenaza/pgpkey.html
  A proud member of GULA - http://gula.hispalinux.es/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.4 and GPG

iD8DBQE5UorMZXLnGT1HLgcRAqzMAJ9HkKdDkZLAoryVAOeHNV9Jbaz5xgCfUZtn
D+ypqsWnS7thsZ3yKmkyctQ=
=MqZf
-----END PGP SIGNATURE-----