Nethserver uses templates to write the config files. That’s the reason your changes are overwritten on reboot or config change.
http://docs.nethserver.org/projects/nethserver-devel/en/v7/templates.html
Do you really want to REPLACE the port? Why not using a relay port like @pagaille recommended and @saitobenkei has explained?
Sorry, I misunderstood the whole thing
Just add a custom template to /etc/e-smith/templates-custom/etc/postfix/master.cf/41smtpd_custom with following content:
#
# 41smtpd_custom -- custom public smtp server on port 8025
#
8025 inet n - n - { $connections_limit > 0 ? $connections_limit: '-' } smtpd
{
$OUT = join("\n", map { " -o " . $_ } @smtpd_public_options);
}
Now you have port 8025 open additionally to port 25. I don’t recommend a replacement of the port as it implies a replacement of the 40smtpd_custom template which may lead to troubles with updates.