I am programmatically adding IPs to the SMTP Deny list with no issues.
However, when I try to remove an IP from the SMTP Deny list the following code returns 1 but does not remove the IP from SMTPDENY.tab file or SMTP GUI
In SMTPDENY.tab i have the exact line item as following for the given IP;
126.96.36.199 1 CONNECT SYSTEM
var smtpAccess = new MailEnable.Administration.SMTPAccess();
smtpAccess.AddressMask = "188.8.131.52"; // this contains the IP address string thats in Smtp Deny list
//smtpAccess.Host = ""; // seems not used, no difference commented or not
smtpAccess.Mode = 1; // smtp deny
smtpAccess.Account = "SYSTEM"; // account, correct as per smtp deny entry
smtpAccess.Right = "CONNECT"; // correct as per smtp deny entry, although api documentation says not used
smtpAccess.Status = 1; // it represents add, but calling RemoveAccess below so changing this to 0 doesnt differ
Any gentle soul out there can shed some light on why its likely not working?
What am I doint wrong or missing?