Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 393
  • Last Modified:

Mail Server.. and a SquirrelMail Problem!

Hello,

I was hosting my application (which is a simple PHP software that creates mail accounts and aliases -forwarders- using hMailServer which works under Windows) on my own local machine.

hMailServer is a Mail Server which has its own database (mySQL) which has all the info of the program, and that makes it easy to modify and add directly to that database (you can add forwarders, accounts, domains..etc) directly, no need to use the APIs of the hMailServer or its interface, and sure it is possible to do so..

Now I'm moving to an online server (probably shared hosting - because dedicated is expensive), so most of hosting companies support SquirrelMail as a Mail Server. What I wanted to know is "Does SquirrelMail use mySQL to store its info?". If not, how can I modify my simple PHP application to add email account or forwarder to the SquirrelMail database? (any special commands or APIs?) If yes, please give me the correct code (PHP).


And please if you know any good Mail Server that uses mySQL Database (to store all its info - including the accounts and forwarders details..etc) and works under Linux, please provide me with its name.


And do you know any good hosting company that provides shared hosting (not dedicated) but for Windows (and with powerful features - like 1.5 TB bandwith..etc), so that I can ask them to install the hMailServer on it incase I couldn't find another substitute?


Thanks alot in advance, I really appreciate your great help!



Regards
0
raladin
Asked:
raladin
  • 6
  • 5
1 Solution
 
ClickCentricCommented:
SquirrelMail is not a mail server, it's a webmail interface.  It just lets you access your email via the web but just uses standard methods of accessing the email.  Your mail server would be another program and you'd need to ask your hosting provider which one they use.  As for a hosting provider...1.5TB bandwidth is a tremendous amount and well outside the scope of any shared hosting plan I've ever come across...even beyond the scope of most dedicated server plans I've seen.  However, several can provide you with this, but you'd have to make a deal with them about it.  http://www.1and1.com is one that can.
0
 
raladinAuthor Commented:
Oh, thanks for the note!

But how to create a forwarder/alias for example on a server running a Linux OS?

Lets say one of these plans: http://www.netfirms.com/enterprise

Do you have any PHP code to do so?


Thanks!
0
 
ClickCentricCommented:
Ok, they appear to be using qmail there.  That's a tremendous amount of bandwidth to be offering at that price.  Make sure you keep backups of all of your stuff because this is one of those deals where it seems a bit too good to be true.  They do use a control panel, but the name isn't one I'm familiar with.  It may be a custom panel.  In most cases where there is a control panel, such things must be done through the control panel as any changes made elsewere will often just get overwritten.  As for php code to do so, what exactly do you want it to do?  
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
raladinAuthor Commented:
Well, it is a very wellknown company world wide, and I believe their services are great..

Well, I need a PHP code that creates a new mail account and Alias (email forwarder) on the qmail, as I don't have control on the database of the qmail on that hosting plan.

Do you think that could be done?


Regards
0
 
ClickCentricCommented:
Well, it's just a word of caution.  I've been tracking hosting companies for years and if I've ever come across them before, it wasn't noticable enough at the time for me to pay atttention to them.  Besides, having backups of all of your stuff at any given time is always a good idea, so even if they work out great, it's still a good idea.  

In answer to your question, though, as that's a shared hosting service, what you want to do is almost definitely impossible.  They could not safely allow individual users to alter the qmail control files with their own scripts as if you messed up, it could take down their entire mail system.  
0
 
raladinAuthor Commented:
Well, then do you have a list of the "qmail" server or an example of PHP application (code) that uses "qmail" to create new aliases, accounts..etc (not the squirrelmail, I want something very simple, just the simple commands of it to use in the PHP)

Thanks!
0
 
ClickCentricCommented:
I'm not sure you're understanding what I'm saying.  You're not going to have access to the qmail control files on a shared server.  If you did, you could ruin everyone elses mail setup.  Now there is a chance that they let you create a localized configuration, but the structure of it wouldn't necessarily be the same as the main qmail control files, so you'd have to find out from the hosting provider first whether it's even possible and if so what files and structure they give you access to.
0
 
raladinAuthor Commented:
So you mean I will not be able to create new accounts or aliases but only from their Hosting Control Panel, right?

So there is no command in that case to use in PHP to create alias or account on the server..

Am I right?
0
 
ClickCentricCommented:
Not with using them as your hosting provider, no...if you had a dedicated server, you could...but on a shared server, they're just not going to give you access to the files that you need to do this..  As I said, if they did, it would mean that any user of the server could destroy the mail settings of other users.
0
 
raladinAuthor Commented:
I see. What solutions do you think could be helpful for me then in my situation?


Regards..
0
 
ClickCentricCommented:
Well, the hosting provider's control panel may have an API that will let you do this.  You'd need to ask them about that.  Really you're entirely at the mercy of the hosting provider.  What will work, if anything, depends on how they have things set up and what they allow you to do.  Anything that anyone could suggest would really be limited to the scope of whether they'd let you do it.  The only way to get outside of that box is to get a dedicated server.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now