[Avcheck] Re: Postfix Address quoting problem [was: Combined avcheck / Postfix question -- open relay issue]

Wietse Venema wietse@porcupine.org
Wed, 8 May 2002 09:42:27 -0400 (EDT)


The @ is excluded from the list of characters that need quoting,
so that it can be recognized as a routing operator.

Long ago, Postfix kept the quotes in "user@elsewhere"@primary.domain.
For Postfix, this was treated as a user named "user@elsewhere",
and if primary.domain was local, then the mail would bounce with:

    unknown user: "user@elsewhere"

because "user@elsewhere" was not a known username.

However, this behavior caused open relay problems with Postfix as
MX host and with Sendmail as primary MX host. Sendmail does remove
the quotes, so that mail for

    "user@elsewhere"@primary.domain

would be spammed all over the internet, giving Postfix a bad rep.

Seems like I can't make everyone happy.

	Wietse

Michael Tokarev:
> Michael Tokarev wrote:
> []
> > So, in avcheck, this address should be passed as "bar@baz.com"@example.com.
> > Following the rules.
> 
> Mmm.  Errm.  This sucks.
> 
> transport:
> 
>  x.tls.msk.ru	tst:
> 
> master.cf:
> 
> tst       unix  -       n       n       -       -       pipe
>         flags=q user=mjt argv=/tmp/tst ${recipient}
> 
> /tmp/tst:
> #! /bin/sh
> exec >>/tmp/tstout
> for i ; do
>   echo -n " >$i<"
> done
> echo
> 
>  $ echo Helo | /usr/sbin/sendmail \"mjt@bar.ru\"@x.tls.msk.ru
>  $ sleep 5
>  $ cat /tmp/tstout
>   >mjt@bar.ru@x.tls.msk.ru<
>  $ echo Helo | /usr/sbin/sendmail \"mjt\ 1\ 2\"@x.tls.msk.ru
>  $ sleep 5
>  $ cat /tmp/tstout
>   >mjt@bar.ru@x.tls.msk.ru<
>   >"mjt 1 2"@x.tls.msk.ru<
>  $ _
> 
> What's going on ?!
> 
> Next round... ;)
> -
> To unsubscribe, send mail to majordomo@postfix.org with content
> (not subject): unsubscribe postfix-users
> 
>