9 msgMaximum length of a header line?
3 msgDelay splitted in logfile
4 msgCustomize the 221 Bye message
1 msgPostfix snapshot 20070724
8 msgrelay access denied
5 msgspamcop link to my website in signature leads t...
13 msgMessage size limit per user
4 msgchaining aliases failing?
5 msgmisdelivery of mail to user@virtual to user@domain
2 msgVacation Message - request for comment on imple...

Possible DoS when the adress and the virtual my...
\ Horváth Róbert (24 Jul 2007)
. \ (Wietse Venema) (24 Jul 2007)
. \ Leandro Santi (24 Jul 2007)
. \ steeeeeveee (24 Jul 2007)
. . \ (Wietse Venema) (24 Jul 2007)
. . . \ Victor Duchovni (24 Jul 2007)
. . . . \ steeeeeveee (24 Jul 2007)
. . . . . \ Victor Duchovni (24 Jul 2007)
. . . . . . \ steeeeeveee (24 Jul 2007)
. . . . \ Leandro Santi (24 Jul 2007)

1 msgPostfix + Dovecot + Procmail
7 msg2 instances of smtpd in master.cf
2 msgdiskless client with link to servers mailqueue
4 msgAuthentication: how does it work?
1 msguupth or pathto in Postfix
3 msgSASL and NIS errors
1 msgpostfix sqlite ??
2 msgProblem authenticating postfix users with cyrus...
19 msgsender address verification vs. script-generate...
Subject:Possible DoS when the adress and the virtual mysql transport table's characterset mismatches?
Group:Postfix-users
From:Horváth Róbert
Date:24 Jul 2007


 
Dear List,

When Postfix tries to look up the adress in the transport table and the
address contains a character which is invalid with the table's character
set, mysql emits a warning:

Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and
(utf8_general_ci,COERCIBLE) for operation '='

The problem starts here. After an error like this Postfix fails a few
more times with *correct addresses*. This looks like a DoS. Unfortunatly
I couldn't find any bugtracking system on PF's homepage, so I don't have
a clue if this is a known problem or even fixed one. I can reproduce the
problem:

# postmap -q címveghm
mysql:/etc/postfix/mysql_virtual_transport_maps.cf

this will silently fail as no such mail address exist, but issuing it
from an iso-8859-2 terminal (former was utf-8):

# postmap -q 'c▒mveghm'
mysql:/etc/postfix/mysql_virtual_transport_maps.cf
postmap: warning: mysql query failed: Illegal mix of collations
(latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for
operation '='

Here is the syslog, the bad address is "c?mveghm@zio.." which contains
an `í' character:

Jul 24 02:29:37 [postfix/smtpd] connect from
venus.ultranet.hu[193.142.214.16]
Jul 24 02:29:37 [postfix/trivial-rewrite] warning: mysql query failed:
Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and
(utf8_general_ci,COERCIBLE)
for operation '='
Jul 24 02:29:37 [postfix/trivial-rewrite] warning: transport_maps lookup
failure
Jul 24 02:29:37 [postfix/smtpd] NOQUEUE: reject: RCPT from
venus.ultranet.hu[193.142.214.16]: 451 4.3.0 <c mveghm>:
Temporary lookup failure; fro
m=<www-data> to=<c?mveghm> proto=ESMTP
helo=<venus.ultranet.hu>
Jul 24 02:29:37 [postfix/cleanup] 840B93A09:
message-id=<20070724002937.840B93A09>
Jul 24 02:29:37 [postfix/cleanup] 870313A0D:
message-id=<20070724002937.870313A0D>
Jul 24 02:29:37 [postfix/qmgr] 840B93A09:
from=<double-bounce>, size=1041, nrcpt=1 (queue active)
Jul 24 02:29:37 [postfix/trivial-rewrite] warning: transport_maps lookup
failure
Jul 24 02:29:37 [postfix/smtpd] disconnect from
venus.ultranet.hu[193.142.214.16]
Jul 24 02:29:37 [postfix/qmgr] 840B93A09:
to=<postmaster>, orig_to=<postmaster>, relay=none,
delay=0.09, delays=0.07/0.02/0/0, dsn=4.3.0, st
atus=deferred (address resolver failure)
Jul 24 02:29:37 [postfix/qmgr] 870313A0D:
from=<double-bounce>, size=1041, nrcpt=1 (queue active)
Jul 24 02:29:37 [postfix/qmgr] 870313A0D:
to=<postmaster>, orig_to=<postmaster>, relay=none,
delay=0.11, delays=0.09/0.02/0/0, dsn=4.3.0, st
atus=deferred (address resolver failure)
Jul 24 02:29:49 [postfix/smtpd] connect from
cpe-065-191-143-099.nc.res.rr.com[65.191.143.99]
Jul 24 02:29:49 [postfix/trivial-rewrite] warning: transport_maps lookup
failure

Like if PF cached the error and skipped a few look-ups. I am looking for
a fix, if any of you have a solution please share with me. This is PF
2.3.6 and mysql 4.1.

with best regards,
Robert HORVATH



© 2004-2008 readlist.com