Adding a PHP Function?
I try to customize ISPConfig 2.x to be able to insert Records to a MySQL DB on a remote Server which serves as an Antivirus/Antispam Mailgateway. I hope someone can put me in the right Direction. Iím running 2 Servers one as the Primary Mailserver without ISPConfig (Frontend Server). The second Server is equipped with ISPConfig.
The Frontend Server is running Postfix, Spamassassin and Greylisting in Virtual User/Domain Mode, the Server receive the Mails scan them for Viruses and Spam and forwards only the clean ones to the Backendserver
The Backend Server is running ISPConfig 2 and is the Mainpoint for adding/editing of the Domains and Useraccounts.
The Problem is when I add a new Domain/User (using ISPConfig) on the Backend Server I have to edit manually the DB on the Frontend server which stores the Virtual Domain/User Data otherwise the Mails will be rejected since the Frontend Server is the first MX Record.
My Idea is to adopt the ISPConfig Functions with a little PHP Script which will connect to the MySQL DB on the Frontend Server and adds the required Records to the DB. I have already figured out how to use the Form Designer of ISPConfig to create the needed Form. But I canít figure out how to hook up my PHP Script to the Form I have created in ISPConfig Formdesigner. I thought I can add my Script with the include() function to the File which will be called after submitting the Form but Iím only able to connect to the db_ispconfig DB and even if I create a new Table in it I get the Error that the Table not exists. Maybe can someone give me some hints how to solve this problem or just put me in the right DirectionÖ
THX in advance