Your last patch wasn't working either so I just "manually" patched the failed chunks and created my own one (attached) that should work agains trunk.
While testing it, I've seen that when assigning a relay IP to a domain it gets removed from the "domains" table but not added to the "transport" one! :S I've tried to look at the source but the only "maybe" relevant part is:
Code:
($rs, $sys) = get_file($transport_cfg);
return $rs if ($rs != 0);
($rs, $working) = get_file($transport_working_cfg);
return $rs if ($rs != 0);
$working =~ s/^$dmn_name[\s]+[^\n]+\n//gim;
#
# Let's do some backup first;
#
$rs = store_file($transport_backup_cfg, $sys, $main::cfg{'ROOT_USER'}, $main::cfg{'ROOT_GROUP'}, 0644);
return $rs if ($rs != 0);
#
# Let's write configs;
#
$rs = store_file($transport_working_cfg, $working, $main::cfg{'ROOT_USER'}, $main::cfg{'ROOT_GROUP'}, 0644);
return $rs if ($rs != 0);
$rs = store_file($transport_cfg, $working, $main::cfg{'ROOT_USER'}, $main::cfg{'ROOT_GROUP'}, 0644);
return $rs if ($rs != 0);
But I don't see how is this adding the domain to the transport table... maybe I misspatched something?