masqmail

diff src/fail_msg.c @ 242:bc9d9cd9ee8e

made addr_isequal() and addr_isequal_parent() more flexible refactored various bits of this stuff. addr_isequal_alias() had become needless now and was removed. In fail_msg.c: postmaster is now matched caseless, like required by RFC.
author markus schnalke <meillo@marmaro.de>
date Mon, 25 Oct 2010 17:42:48 -0300
parents dcb315792513
children 82d168dd52fd
line diff
     1.1 --- a/src/fail_msg.c	Mon Oct 25 15:41:48 2010 -0300
     1.2 +++ b/src/fail_msg.c	Mon Oct 25 17:42:48 2010 -0300
     1.3 @@ -35,7 +35,8 @@
     1.4  		ret_path = create_address_qualified("postmaster", TRUE, conf.host_name);
     1.5  		foreach(failed_rcpts, node) {
     1.6  			address *addr = (address *) (node->data);
     1.7 -			if (addr_isequal_parent(addr, ret_path)) {
     1.8 +
     1.9 +			if (addr_isequal_parent(addr, ret_path, strcasecmp)) {
    1.10  				logwrite(LOG_ALERT, "%s == %s: postmaster address failed\n", msg->uid, addr_string(ret_path));
    1.11  				return FALSE;
    1.12  			}