Current time: 05-18-2024, 05:54 PM Hello There, Guest! (LoginRegister)


Post Reply 
Mail relay to customer server
Author Message
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #20
RE: Mail relay to customer server
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?


Attached File(s)
.txt  mxpatch2.txt (Size: 11.6 KB / Downloads: 6)
06-10-2008 11:35 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Mail relay to customer server - ispcomm - 05-19-2008, 04:38 PM
RE: Mail relay to customer server - Cube - 05-20-2008, 08:34 AM
RE: Mail relay to customer server - simple - 05-21-2008, 12:51 AM
RE: Mail relay to customer server - rbtux - 05-20-2008, 07:07 PM
RE: Mail relay to customer server - kilburn - 06-10-2008 11:35 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)