Hello,
We have a mail server in wich we have postfix installed and a php script that sends emails through the postfix instance mentioned in php.ini file
in postfix we have some couple of instances each one binds to a particular ip address and send email from it.
the instances name are : postfix-1 postfix-2 postfix-3 ……..
in php.ini we can specify the postfix instance to use in order to send email from it: we edit from root the sendmail_path = /usr/sbin/sendmail -t -i -C /etc/postfix-1
we change postfix-1 by postfix-2 if we want to send from the second instance and restart apache.
We have in parralel some couple of domain names. In the php mailing script we select a from domain and send test emails to a specific email as a test..
What we want is to create a web page script that automates all of this tasks to not have to do them manualy, idea of using cron jobs to execute a php customized script that does all of this:
- Edits php.ini file to select a postfix instance, saves the file and restarts apache, then start automatically sending emails using all from email domains we have; when finished with the first postfic instance it automatically selects the second postfix instance in php.ini and saves it then restarts apache and start sending automatically using all from emails; and so forth for all postfix instances we have.
-Aility to tell the the webscript the postfix instances we have: (postfix-1 postfix-2 postfix-3……)
- Ability to give the web script the list of from domains we have and update them;
-Ability to use return_pah ( the same as the from email);
- Ability to give the web script the list of postfix instances that we will use (postfix-1 postfix-2……………..);
- ability to enter the message body that will be sent in a box;
- ability to enter in a box the email address tests will be sent to;
-Ability to start the tests using a button;
-Ability to stop tests using a button;
So it’s all about a web page script that will send email tests automatically using all (domains/instances combilnations we have) to a single address email.
NB: Ability to give us the source code and the way to install the script on the server..