Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Programming/Scripts

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th October 2009, 19:47
tuananh87vn tuananh87vn is offline
Member
 
Join Date: Sep 2009
Posts: 39
Thanks: 8
Thanked 0 Times in 0 Posts
Default postfix administration- using php to handle linux commands

hi,
firstly i'm not sure if this is the right place to put my question into, if not so can you help me move it to another box? thanks!

alright, i've just finished setting up my postfix email server on Debian with a HOWTO guide and now i'm going to create my own postfix administration application (web-based) using php

with the main purpose of managing domains and users, which are stored in mySql database, some useful web pages are expected to be created using php-- well, pushing and pulling data with php-mysql shouldn't be difficult tasks.

the problem is, however, when i create a new email account, in order to initialise the new maildir, i need to use some linux commands (mail, or telnet port 25) to send them a sort of welcome email, or used when we want to send broadcast message to all email accounts. my question is, how to use php to handle such these linux commands. i know php, i know some linux shell but i don't know how to use the former to control the latter

thanks in advance!

Last edited by tuananh87vn; 18th October 2009 at 19:54.
Reply With Quote
Sponsored Links
  #2  
Old 19th October 2009, 15:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
Default

http://de.php.net/manual/en/book.exec.php
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 20th October 2009, 16:52
id10t id10t is offline
Senior Member
 
Join Date: Nov 2008
Posts: 242
Thanks: 2
Thanked 22 Times in 22 Posts
 
Default

You should also look at the php mail() function

Good function documentation at php.net
__________________
I'm a very happy linode.com customer, I'm sure you will be too!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix not responding to telnet CarbonCopy Server Operation 6 8th May 2009 06:39
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 12:14
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 18:39
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 16:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 16:36


All times are GMT +2. The time now is 09:52.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.