there is only one) the terminating newline was part of the logged
information.
+JH/15 Bug 3061: Ensure a log line is written for a malformed address in a
+ header, when parsing for address-qualification. Previously one was only
+ written if there were rewrite rules.
Exim version 4.97
address, "To: undisclosed recpients:;" being the classic case. Ignore
this one and carry on. */
- if ((rewrite_rules || routed_old) && Ustrcmp(errmess, "empty address") != 0)
- log_write(0, LOG_MAIN, "rewrite: %s", errmess);
+ if (Ustrcmp(errmess, "empty address") != 0)
+ log_write(0, LOG_MAIN, "qualify/rewrite: %s", errmess);
loop_reset_point = store_reset(loop_reset_point);
continue;
1999-03-02 09:44:33 10HmbD-000000005vi-0000 $h_from: 'x@y'
1999-03-02 09:44:33 10HmbD-000000005vi-0000 <= x@y U=CALLER P=local-smtp S=sss
+1999-03-02 09:44:33 10HmaX-000000005vi-0000 qualify/rewrite: domain missing or malformed
1999-03-02 09:44:33 10HmaX-000000005vi-0000 $h_from: '@'
1999-03-02 09:44:33 10HmaX-000000005vi-0000 U=CALLER F=<x@y> rejected after DATA: domain missing or malformed: failing address in "From:" header is: @
+1999-03-02 09:44:33 10HmaY-000000005vi-0000 qualify/rewrite: '>' missing at end of address
+1999-03-02 09:44:33 10HmaY-000000005vi-0000 qualify/rewrite: '>' missing at end of address
1999-03-02 09:44:33 10HmaY-000000005vi-0000 $h_from: '<forged@sender.com'
1999-03-02 09:44:33 10HmaY-000000005vi-0000 U=CALLER F=<x@y> rejected after DATA: '>' missing at end of address: failing address in "To:" header is: <dummy@gmail.com
+1999-03-02 09:44:33 10HmaZ-000000005vi-0000 qualify/rewrite: domain missing or malformed
1999-03-02 09:44:33 10HmaZ-000000005vi-0000 $h_from: '<x@y>, @'
1999-03-02 09:44:33 10HmaZ-000000005vi-0000 U=CALLER F=<> rejected after DATA: domain missing or malformed: failing address in "From:" header is: @
1999-03-02 09:44:33 10HmbA-000000005vi-0000 $h_from: '<x@y>'
1999-03-02 09:44:33 10HmbH-000000005vi-0000 Completed
1999-03-02 09:44:33 10HmbG-000000005vi-0000 => userx <userx@test.ex> R=reply T=reply
1999-03-02 09:44:33 10HmbG-000000005vi-0000 Completed
+1999-03-02 09:44:33 10HmbI-000000005vi-0000 qualify/rewrite: missing or malformed local part (expected word or "<")
1999-03-02 09:44:33 10HmbI-000000005vi-0000 <= CALLER@test.ex U=CALLER P=local S=sss
1999-03-02 09:44:33 10HmbI-000000005vi-0000 ** >**bad-reply** <userx-filter@test.ex> R=filter: filter autoreply generated syntactically invalid recipient
1999-03-02 09:44:33 10HmbI-000000005vi-0000 >**bad-reply** <userx-filter@test.ex>: error ignored
+1999-03-02 09:44:33 10HmaX-000000005vi-0000 qualify/rewrite: malformed address: ">,
+ <u213@shrike.depaul.edu>,
+ may not follow <u212@shrike.depaul.edu
1999-03-02 09:44:33 10HmaX-000000005vi-0000 U=CALLER F=<CALLER@myhost.test.ex> rejected after DATA: malformed address: ">,\n <u213@shrike.depaul.edu>,\n may not follow <u212@shrike.depaul.edu: failing address in "To:" header begins: <u212@shrike.depaul.edu">,\n <u213@shrike.depaul.edu>,\n <u214@hotmail.com>,\n <u215@hotmail.com>,\n <u216@hotmail.com>,\n <u217@hotmail.com>,\n <u218@hotmail.com>,\n <u219@angelfire.com>,\n <u220@chickmail.com>,\n <u221@excite.com>,\n <u222@chickmail.com>,\n <u223@eudoramail.com>,\n <u224@alleyne.demon.co.uk>,\n <u225@dial.pipex.com>,\n <u226@hotmail.com>,\n <u227@gpu.srv.ualberta.ca>,\n <u228@ulst.ac.uk>,\n <u229@worldnet.att.net>,\n <u230@hotmail.com>,\n <u231@careerbuildermail.com>,\n <u232@MSN.COM>,\n <u233@angelfire.com>,\n <u234@hotmail.com>,\n <u235@hotmail.com>,\n <u236@compuserve.com>,\n <u237@compuserve.com>,\n <u238@hotmail.com>,\n <u239@bellsouth.net>,\n <u240@n64rocks.com>,\n <u241@mailexcite.com>,\n <u242@mailexcite.com>,\n <u243@mailcity.com>,\n <u244@bigfoot.com>,\n <u245@sunbeach.net>,\n <u246@mailcity.com>,\n <u247@pacbell.net>,\n <u248@hotmail.com>,\n <u249@worldnet.att.net>,\n <u250@bigfoot.com>,\n <u251@mailexcite.com>,\n <u252@netnoir.net>,\n <u253@cablecomm1.pcs.mot.com>,\n <u254@compu
******** SERVER ********
1999-03-02 09:44:33 exim x.yz daemon started: pid=p1234, no queue runs, listening for SMTP on port PORT_D
+1999-03-02 09:44:33 10HmaX-000000005vi-0000 qualify/rewrite: malformed address: ;bad@address;bad@address;bad@add may not follow bad@address
1999-03-02 09:44:33 10HmaX-000000005vi-0000 H=(test) [127.0.0.1] F=<x@y.x> rejected after DATA: malformed address: ;bad@address;bad@address;bad@add may not follow bad@address: failing address in "To:" header begins: bad@address;bad@address;bad@address;bad@address;bad@address;bad@address;\n bad@address;bad@address;bad@address;bad@address;bad@address;bad@address;\n bad@address;bad@address;bad@address;bad@address;bad@address;bad@address;\n bad@address;bad@address;bad@address;bad@address;bad@address;bad@address;\n bad@address;bad@address;bad@address;bad@address;bad@address;bad@address;\n bad@address;bad@address;bad@address;bad@address;bad@address;bad@address;\n bad@address;bad@address;bad@address;bad@address;bad@address;bad@address;\n bad@address;bad@address;bad@address;bad@address;bad@address;bad@address;\n bad@address;bad@address;bad@address;bad@address;bad@address;bad@address;\n bad@address;bad@address;bad@address;bad@address;bad@address;bad@address;\n bad@address;bad@address;bad@address;bad@address;bad@address;bad@address;\n bad@address;bad@address;bad@address;bad@address;bad@address;bad@address;\n bad@address;bad@address;bad@address;bad@address;bad@address;bad@address;\n bad@address;bad@address
+1999-03-02 09:44:33 10HmaX-000000005vi-0000 qualify/rewrite: '>' missing at end of address
1999-03-02 09:44:33 10HmaX-000000005vi-0000 U=CALLER F=<> rejected after DATA: '>' missing at end of address: failing address in "From:" header is: <bad@syntax
1999-03-02 09:44:33 10HmaY-000000005vi-0000 U=CALLER F=<> rejected after DATA: there is no valid sender in any header line
1999-03-02 09:44:33 recipient verify defer (making calloout connection): T=smtp Network Error
1999-03-02 09:44:33 U=CALLER sender verify defer for <callout@x>: Could not complete sender verify callout: V4NET.0.0.0 [V4NET.0.0.0] : Network Error
1999-03-02 09:44:33 U=CALLER F=<callout@x> temporarily rejected RCPT <x@y>: Could not complete sender verify callout
+1999-03-02 09:44:33 10HmaZ-000000005vi-0000 qualify/rewrite: '>' missing at end of address
1999-03-02 09:44:33 10HmaZ-000000005vi-0000 U=CALLER F=<nosyntax@x> rejected after DATA
1999-03-02 09:44:33 10HmbA-000000005vi-0000 U=CALLER F=<> rejected after DATA: there is no valid sender in any header line
1999-03-02 09:44:33 sender verify defer (making calloout connection): T=smtp Network Error
1999-03-02 09:44:33 U=CALLER F=<recipcallout@y> temporarily rejected RCPT <callout@y>: Could not complete recipient verify callout: V4NET.0.0.0 [V4NET.0.0.0] : Network Error
1999-03-02 09:44:33 U=CALLER F=<> rejected RCPT <cantverify.fail@y>: failure message
1999-03-02 09:44:33 U=CALLER F=<> temporarily rejected RCPT <cantverify.defer@y>: defer message
+1999-03-02 09:44:33 10HmbB-000000005vi-0000 qualify/rewrite: '>' missing at end of address
1999-03-02 09:44:33 10HmbB-000000005vi-0000 U=CALLER F=<> rejected after DATA: '>' missing at end of address: failing address in "From:" header is: <bad@syntax
1999-03-02 09:44:33 10HmbC-000000005vi-0000 U=CALLER F=<> rejected after DATA: there is no valid sender in any header line
1999-03-02 09:44:33 recipient verify defer (making calloout connection): T=smtp Network Error
1999-03-02 09:44:33 U=CALLER sender verify defer for <callout@x>: Could not complete sender verify callout: V4NET.0.0.0 [V4NET.0.0.0] : Network Error
1999-03-02 09:44:33 U=CALLER F=<callout@x> temporarily rejected RCPT <x@y>: Could not complete sender verify callout
+1999-03-02 09:44:33 10HmbD-000000005vi-0000 qualify/rewrite: '>' missing at end of address
1999-03-02 09:44:33 10HmbD-000000005vi-0000 U=CALLER F=<nosyntax@x> rejected after DATA
1999-03-02 09:44:33 10HmbE-000000005vi-0000 U=CALLER F=<> rejected after DATA: there is no valid sender in any header line
1999-03-02 09:44:33 sender verify defer (making calloout connection): T=smtp Network Error
1999-03-02 09:44:33 10HmaY-000000005vi-0000 <= <> U=CALLER P=local-smtp S=sss
1999-03-02 09:44:33 10HmaZ-000000005vi-0000 <= abc@somewhere U=CALLER P=local S=sss
+1999-03-02 09:44:33 10HmaX-000000005vi-0000 qualify/rewrite: domain missing or malformed
1999-03-02 09:44:33 10HmaX-000000005vi-0000 U=CALLER F=<> rejected after DATA: domain missing or malformed: failing address in "To:" header is: abc@xyz.
1999-03-02 09:44:33 10HmaX-000000005vi-0000 <= CALLER@myhost.test.ex U=CALLER P=local S=sss for r1@test.ex
1999-03-02 09:44:33 10HmaY-000000005vi-0000 <= CALLER@myhost.test.ex U=CALLER P=local S=sss for r2@test.ex
1999-03-02 09:44:33 10HmaZ-000000005vi-0000 <= CALLER@myhost.test.ex U=CALLER P=local S=sss for r3@test.ex
-1999-03-02 09:44:33 10HmbA-000000005vi-0000 rewrite: address is ridiculously long: localpart_with_256_chars_567890123456789012345678901234567890123...
+1999-03-02 09:44:33 10HmbA-000000005vi-0000 qualify/rewrite: address is ridiculously long: localpart_with_256_chars_567890123456789012345678901234567890123...
1999-03-02 09:44:33 10HmbA-000000005vi-0000 verify header_syntax fails
1999-03-02 09:44:33 10HmbA-000000005vi-0000 <= CALLER@myhost.test.ex U=CALLER P=local S=sss for r4@test.ex
1999-03-02 09:44:33 10HmbB-000000005vi-0000 <= CALLER@myhost.test.ex U=CALLER P=local S=sss for r5@test.ex
-1999-03-02 09:44:33 10HmbC-000000005vi-0000 rewrite: domain missing or malformed
+1999-03-02 09:44:33 10HmbC-000000005vi-0000 qualify/rewrite: domain missing or malformed
1999-03-02 09:44:33 10HmbC-000000005vi-0000 verify header_syntax fails
1999-03-02 09:44:33 10HmbC-000000005vi-0000 <= CALLER@myhost.test.ex U=CALLER P=local S=sss for r6@test.ex
+1999-03-02 09:44:33 10HmaX-000000005vi-0000 qualify/rewrite: malformed address: another@another.ex may not follow first@test.ex
+
1999-03-02 09:44:33 10HmaX-000000005vi-0000 <= CALLER@myhost.test.ex U=CALLER P=local S=sss
+1999-03-02 09:44:33 10HmaX-000000005vi-0000 qualify/rewrite: missing or malformed local part
1999-03-02 09:44:33 10HmaX-000000005vi-0000 U=CALLER Warning: reject Action: reject\n Symbol: FAKE_SYMBOL_A(15.00)\n Symbol: FAKE_SYMBOL_B(0.00)\n Message-ID: undef
1999-03-02 09:44:33 10HmaX-000000005vi-0000 <= CALLER@myhost.test.ex U=CALLER P=local-esmtp S=sss
1999-03-02 09:44:33 10HmaX-000000005vi-0000 => :blackhole: <userx@test.ex> R=r
******** SERVER ********
1999-03-02 09:44:33 exim x.yz daemon started: pid=p1234, no queue runs, listening for SMTP on port PORT_D
+1999-03-02 09:44:33 10HmaY-000000005vi-0000 qualify/rewrite: domain missing or malformed
1999-03-02 09:44:33 10HmaY-000000005vi-0000 <= xn--ihqwcrb4cv8a8dqg056pqjye@hebrew.xn--4dbcagdahymbxekheh6e0a7fei0b.com H=localhost (the.local.host.name) [127.0.0.1] P=esmtp S=sss id=E10HmaX-000000005vi-0000@the.local.host.name for xn--user1.-g95ww2bm7c8xj18gesgrby74dwqh18as2ft0ab05f5nc9w1befas47alnaxwd256esy4hea33e@test.ex
+1999-03-02 09:44:33 10HmbA-000000005vi-0000 qualify/rewrite: domain missing or malformed
1999-03-02 09:44:33 10HmbA-000000005vi-0000 <= xn--ihqwcrb4cv8a8dqg056pqjye@hebrew.xn--4dbcagdahymbxekheh6e0a7fei0b.com H=localhost (the.local.host.name) [127.0.0.1] P=esmtp S=sss id=E10HmaZ-000000005vi-0000@the.local.host.name for xn--user2.-g95ww2bm7c8xj18gesgrby74dwqh18as2ft0ab05f5nc9w1befas47alnaxwd256esy4hea33e@test.ex
+1999-03-02 09:44:33 10HmbC-000000005vi-0000 qualify/rewrite: domain missing or malformed
1999-03-02 09:44:33 10HmbC-000000005vi-0000 <= xn--ihqwcrb4cv8a8dqg056pqjye@hebrew.xn--4dbcagdahymbxekheh6e0a7fei0b.com H=localhost (the.local.host.name) [127.0.0.1] P=esmtp S=sss id=E10HmbB-000000005vi-0000@the.local.host.name for xn--user3.-g95ww2bm7c8xj18gesgrby74dwqh18as2ft0ab05f5nc9w1befas47alnaxwd256esy4hea33e@test.ex
1999-03-02 09:44:33 Start queue run: pid=p1235 -qqff
1999-03-02 09:44:33 10HmaY-000000005vi-0000 => :blackhole: <xn--user1.-g95ww2bm7c8xj18gesgrby74dwqh18as2ft0ab05f5nc9w1befas47alnaxwd256esy4hea33e@test.ex> R=localuser
+1999-03-02 09:44:33 10HmaX-000000005vi-0000 qualify/rewrite: missing or malformed local part (expected word or "<")
1999-03-02 09:44:33 10HmaX-000000005vi-0000 <= CALLER@the.local.host.name U=CALLER P=local S=sss
1999-03-02 09:44:33 10HmaX-000000005vi-0000 ** >**bad-reply** <userx-filter@domain1> R=router_filter T=reply: filter autoreply generated syntactically invalid recipient
1999-03-02 09:44:33 10HmaX-000000005vi-0000 event msg:fail:delivery
>>> accept: condition test succeeded in inline ACL
>>> end of inline ACL: ACCEPT
>>> host in ignore_fromline_hosts? no (option unset)
+LOG: 10HmbI-000000005vi-0000 qualify/rewrite: domain missing or malformed
>>> using ACL "acl_data"
>>> processing "deny" (TESTSUITE/test-config 21)
>>> l_message: body contains trigger
>>> accept: condition test succeeded in inline ACL
>>> end of inline ACL: ACCEPT
>>> host in ignore_fromline_hosts? no (option unset)
+LOG: 10HmaY-000000005vi-0000 qualify/rewrite: '>' missing at end of address
>>> using ACL "check_message"
>>> processing "deny" (TESTSUITE/test-config 19)
>>> check !verify = header_syntax
>>> accept: condition test succeeded in inline ACL
>>> end of inline ACL: ACCEPT
>>> host in ignore_fromline_hosts? no (option unset)
+LOG: 10HmaZ-000000005vi-0000 qualify/rewrite: '>' missing at end of address
+LOG: 10HmaZ-000000005vi-0000 qualify/rewrite: '>' missing at end of address
>>> using ACL "check_message"
>>> processing "deny" (TESTSUITE/test-config 19)
>>> check !verify = header_syntax
>>> accept: condition test succeeded in inline ACL
>>> end of inline ACL: ACCEPT
>>> host in ignore_fromline_hosts? no (option unset)
+LOG: 10HmbA-000000005vi-0000 qualify/rewrite: '>' missing at end of address
>>> using ACL "check_message"
>>> processing "deny" (TESTSUITE/test-config 19)
>>> check !verify = header_syntax
>>> accept: condition test succeeded in inline ACL
>>> end of inline ACL: ACCEPT
>>> host in ignore_fromline_hosts? no (option unset)
+LOG: 10HmbB-000000005vi-0000 qualify/rewrite: unmatched doublequote in local part
>>> using ACL "check_message"
>>> processing "deny" (TESTSUITE/test-config 19)
>>> check !verify = header_syntax
>>> accept: condition test succeeded in ACL "check_recipient"
>>> end of ACL "check_recipient": ACCEPT
>>> host in ignore_fromline_hosts? no (option unset)
+LOG: 10HmaY-000000005vi-0000 qualify/rewrite: '>' missing at end of address
>>> using ACL "check_message"
>>> processing "require" (TESTSUITE/test-config 26)
>>> check verify = header_sender
>>> accept: condition test succeeded in ACL "check_recipient"
>>> end of ACL "check_recipient": ACCEPT
>>> host in ignore_fromline_hosts? no (option unset)
+LOG: 10HmaY-000000005vi-0000 qualify/rewrite: missing or malformed local part
>>> using ACL "check_message"
>>> processing "require" (TESTSUITE/test-config 27)
>>> check verify = header_sender
>>> list element: c.domain
>>> some.domain in "c.domain"? no (end of list)
>>> someone@some.domain in "*@c.domain"? no (end of list)
-LOG: 10HmaX-000000005vi-0000 rewrite: malformed address: @c may not follow a@b
+LOG: 10HmaX-000000005vi-0000 qualify/rewrite: malformed address: @c may not follow a@b
LOG: 10HmaX-000000005vi-0000 <= a@b H=(tester) [127.0.0.1] P=smtp S=sss
qualify and rewrite headers
rewrite_one_header: type=T:
To: abc@xyz.
+LOG: MAIN
+ qualify/rewrite: domain missing or malformed
search_tidyup called
>>Headers after rewriting and local additions:
T To: abc@xyz.
rewrite_one_header: type=T:
To: localpart_with_256_chars_5678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456@test.example
LOG: MAIN
- rewrite: address is ridiculously long: localpart_with_256_chars_567890123456789012345678901234567890123...
+ qualify/rewrite: address is ridiculously long: localpart_with_256_chars_567890123456789012345678901234567890123...
rewrite_one_header: type=F:
From: CALLER_NAME <CALLER@myhost.test.ex>
CALLER@myhost.test.ex in "^.{40,}@*"?
rewrite_one_header: type=T:
To: fred@
LOG: MAIN
- rewrite: domain missing or malformed
+ qualify/rewrite: domain missing or malformed
rewrite_one_header: type=F:
From: CALLER_NAME <CALLER@myhost.test.ex>
CALLER@myhost.test.ex in "^.{40,}@*"?
>>> accept: condition test succeeded in inline ACL
>>> end of inline ACL: ACCEPT
>>> host in ignore_fromline_hosts? no (option unset)
+LOG: 10HmaX-000000005vi-0000 qualify/rewrite: '>' missing at end of address
>>> using ACL "check_message"
>>> processing "require" (TESTSUITE/test-config 25)
>>> message: ${if def:acl_m_message {$acl_m_message}}