How to install and configure a webmail? [closed]

Solution 1:

You don't need "a webmail". (It's actually "a webmail client", by the way). As AliGibbs said, you need a mail server.

Here's instructions on how to install ad configure Postfix for CentOS

To explain to you the difference and answer some of your questions:

A mail server like Postfix is designed to handle sending and receiving of emails. It uses the SMTP protocol to exchange email with other email servers.

A webmail client is a collection of scripts (PHP, perl, ASP, etc) which act as a HTTP interface to a mail server, generally both an SMTP server like Postfix and also a POP/IMAP server.

Webmail is for humans. It's a user interface, like Microsoft Outlook, Thunderbird, Apple's Mail.App, Eudora, pine... etc. It has no bearing on wether PHP can send email.

To answer your specific questions:

  1. I recommend Roundcube as a webmail client. But again, read the above, installing Roundcube won't let you send email. You want an email server, not an email client.

  2. Roundcube is just a client. Webmail is just a client. You want an email server.

  3. Postfix is an email server. This is what you need. Zimbra is an enture suite, containing an email server, a webmail client, a Jabber server, a web IM client, calender and contact management, browser-based document editing, and more. It's great, but, much more than what you need here.

  4. POP and IMAP are two different ways of accessing email which has already been sent and is sitting in a user's mailbox. You don't use then to send mail, only to transfer mail from a mail server to your email client so you can read it. Which is "better" is subjective and a much longer question. I'll boil it down to this: When using POP3, email messages are removed from the server and downloaded to the email client. When using IMAP, the messages remain on the server and the email client "syncs" with the server, allowing multiple email clients (desktop system, laptop system, smartphone, etc) to check the same mailbox and all synchronize.

  5. Generally speaking, you need spam filtering software in or before your SMTP server to block SPAM, it's not part of a webmail client. Check out SpamAssassin.

  6. You will have to configure your email server. yes. I recommend installing Webmin, as it sounds like it may be helpful to you to have a GUI interface to configure things via. Then, Peruse the postfix questions here on ServerFault before asking more questions. Most likely, your next question ("How do I configure Postfix?") has already been asked. Keep in mind that a lot of the "configuration" of a server to make sure it can properly send emails has much more to do with DNS, reverse IPs, RFC requirements, best practices, etc than it does with actually configuring an email server to send emails.

Solution 2:

You don't need webmail installed if you only want to send emails to users. You need a mail engine that will send these mails. Suggestions include:

Sendmail Postfix & a ton more.