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

Bug in Zmailer



This construction in rrouter.cf seems to be wrong:

	...
	...
	(.*)<@(.+)>(.*)
		if [ $(deliver "\2") ]; then
			address="\1<@>\3"
		elif [ \2 = $hostname ]; then
			address="\1<@>\3"
		fi ;;
	...
	...
	...

Which means: If deliver failed, try compare with $hostname. Right, but
expression [ \2 = $hostname ] is case sensitive. I realized that better
would be: 


	...
	...
	(.*)<@(.+)>(.*)
		tmp="$(recase -l "\2")"
		if [ $(deliver "\2") ]; then
			address="\1<@>\3"
		elif [ $tmp = $hostname ]; then
			address="\1<@>\3"
		fi ;;
	...
	...
	...


And then, "hostname" defined in /etc/mail.conf must be entire in a
lowercase.

--------------------------
K a m i l   K U K U R A
Kamil_Kukura@ccsun.tuke.cs
--------------------------