BEGIN
DBMS_NETWORK_ACL_ADMIN.CREATE_ACL (
acl => 'smtp_access.xml',
description => 'Permissions to access SMTP servers.',
principal => 'IBS',
is_grant => TRUE,
privilege => 'connect');
COMMIT;
END;
BEGIN
DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL (
acl => 'smtp_access.xml',
host => 'mail.сервер.ru',
lower_port => 25,
upper_port => 25
);
COMMIT;
END;