I have a php script that logs in to the database of the old ispconfig system and gets the dns_soa records and then queries the database of the new ispconfig system to know if I need to call a new record creation or an edit existing record api call. I'm to the point now where I need to create/update dns zones and the api is telling me that my mbox value is failing regex testing. The new ispconfig system is running 3.0.5.4p8 the email address I'm sending is an email address, and has been validated with every regex I know of to try. It is in the format [3 alpha characters]@[5 alpha characters].org. Its really simple email address and should be validating easily. The data is coming from the database of the old ispconfig server so needs to be sanitized before it can be inserted into the new one. The data starts with a . replacing the @ and a trailing . I'm truncating the last . and substring replacing the . for a @ to get the data to send to the ispconfig api. Can someone tell me what I am doing wrong, or failing that, what I can do about it.
You had simply sent email addresses in the wrong format. The email address of a dns record never contains an @, the @ is replaced by a dot in DNS, see e.g. BIND documentation or take a look at a BIND zone file. So the ispconfig API has to take care that you do not send email addresses in wrong format( with @) and complains if you do so.
Thanks, I'll give it a try. I don't see where api documentation specifies data formats so I was using the ISPConfig web ui as a guide for the kind of data it was expecting.