[imp] RFC822/PEAR problem ?
Miroslaw Jaworski
mjaw@ipartners.pl
Mon, 22 Apr 2002 13:25:15 +0200
* Marc Villegas (Marc.Villegas@utc.fr) [020422 12:25] wrote:
> > Even if your system allowed to do it,
>
> The system does not allow that, of course, but you cannot be behind each
> student when he/she sends email using wrong email addresses. She/he can
> type what address she/he wants and if it is not RFC822 compliant, he/she
> should receive an error message from the mail system (IMHO) and then
> could correct the address before sending the email again.
If you use any other MUA, it doesn't check validity of the recipient -
it just sends message to someone smarter ( SMTP server ). If server
fails - it sends info to the sender and the administrator.
If you want IMP to be smarter than averaage MUA the solution is to add
mailaddresses vailidity check routine and call it every time "Send" button
on compose screen was pressed. It can be a simple Javascript function
with one regexp.
> > and your tests were succesfull,
> > it means only that this mail system is not 'tightly' written.
>
> I agree, but the mail system does not allow 8 bit characters in
> recipient addresses, of course. It uses Postfix/LDAP and works fine with
> all other mail clients. The wrong address is parsed and corrected as
> 'postmaster' by IMP before sending the email to postfix. Then, postfix
> receives a correct message adressed to a correct and valid email account
> : 'postmaster'. But the sender never receives an error message because
> postfix never received the illegal recipient addressed email.
>
> My question is : can I change this behaviour, which seems to be specific
> to IMP, or not ?
IMP typical (only model ?) installation is that both MUA ( IMP ) and MTA
( postfix/sendmail ) is on the same machine - it MAY look as the problem
is specific to IMP because of such model. In fact it can be the MTA problem.
I traced both horde/imp2 and horde2/imp3 sourcetrees looking for something
which could behave in the manner described by you. Are you sure IMP sends
message to postmaster, not MTA ? Can you post a log excerpt ?
MJ.
--
Miroslaw.Jaworski@ipartners.pl ( Psyborg ) MJ102-RIPE Internet Partners
Server Administration Department Manager