[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with quoted email addresses.

If incoming mail is addressed to <" username"@localdomain.net>,
and username (without the leading space) is a valid ID, the
message passes through and ends up in a file
called '/var/mail/ username'.

It ends up that we have about 10-15 files in our /var/mail
that all begin with space characters. Any quick ideas on how
to prevent this?

With the quotes, <" username"@localdomain.net> should not be
a valid mailbox.

example follows. I'm running a very stock version of .cf files.
Also note the errors after the RCPT TO: line in the example.

/var/mail> telnet localhost smtp
Connected to localhost.
Escape character is '^]'.
220 localhost.domain.net ZMailer Server 2.99.48 #1 ESMTP ready at Thu, 1
May 1997 17:01:43 -0600
HELO localhost.domain.net
250 localhost.domain.net Hello localhost.domain.net
250 2.1.0 Sender syntax Ok
RCPT TO: <" dmichael"@domain.net>
250-[: argument expected
250-[: syntax error at:
250 Ok (verified) Ok
354 Start mail input; end with <CRLF>.<CRLF>
Subject: test

250 2.6.0 S.nOG2I20638 message accepted
221 2.0.0 localhost.domain.net Out
Connection closed by foreign host.
/var/mail> ls -l *michael
-rw-------   1 dmichael staff        807 May  1 17:02  dmichael
-rw-------   1 dmichael staff        417 May  1 14:03 dmichael

                                            note the extra space

Anyone have a quick fix?