Qmail: simples e funcional
Qmail é uma ferramenta que se encaixa como "agente de transporte de e-mail". Até hoje poucos bugs foram encontrados nele e é oferecido um prêmio de US 500 para quem encontrar algum outro bug. Então, servidor de e-mail é Qmail!
Parte 8: Instalando e configurando o Squirrelmail
Instalação do Squirrelmail
Definição: Squirrelmail é um ótimo webmail, a sua versão em pt_BR se chama Squirreloutlook, é ele que vamos usar.# cd ..
# tar zxvf webmail.tar.gz -C /var/www/html/
# mkdir /var/sqattachements
# chown -R www-data:www-data /var/sqattachements
# cd /var/www/html
# chown -R www-data:www-data /var/www/html/webmail/data
# cd /var/www/html/webmail/config
# ./conf.pl
Aparecerá isto:
SquirrelMail Configuration : Read: config.php (1.4.0)
--------------------------------------------------
Main Menu --
1. Organization Preferences
2. Server Settings
3. Folder Defaults
4. General Options
5. Themes
6. Address Books
7. Message of the Day (MOTD)
8. Plugins
9. Database
10. Languages
D. Set pre-defined settings for specific IMAP servers
C Turn color on
S Save data
Q Quit
Command >>
Então vamos configurar de acordo com nosso servidor. Digite "1" para configurarmos algumas coisas sobre a "nossa empresa/nosso servidor". Aparecerá a seguinte tela:
Organization Preferences
1. Organization Name : Webmail Teste
2. Organization Logo : ../images/yourlogo.gif
3. Org. Logo Width/Height : (184/46)
4. Organization Title : Webmail Teste
5. Signout Page :
6. Top Frame : _top
7. Provider link : http://www.teste.com.br
8. Provider name : Teste
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Então você faz o mesmo "esquema": digita o número do que tu quer editar, digita o que quer, depois tecla ENTER. Agora digite "S", tecle ENTER novamente e salve o que você fez... e repita isso, alterando todos os dados. Para sair depois de salvar, tecle R, que irá retornar ao menu principal.
Vamos agora configurar o IMAP e SMTP. Quando retornar ao menu principal, tecle 2 em "Server Settings", aparecerá a seguinte tela:
Server Settings
General
-------
1. Domain : 192.168.0.192
2. Invert Time : false
3. Sendmail or SMTP : SMTP
A. Update IMAP Settings : localhost:143 (other)
B. Update SMTP Settings : localhost:25
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Escolha a opção "1" e coloque o IP do seu servidor. No meu caso, 192.168.0.192.
Agora vamos configurar o SMTP, porque o IMAP já vem configurado corretamente por default. Escolha a opção "B", cairá nesta tela:
SMTP Settings
-------------
4. SMTP Server : localhost
5. SMTP Port : 25
6. POP before SMTP : false
7. SMTP Authentication : none
8. Secure SMTP (TLS) : false
9. Header encryption key :
A. Update IMAP Settings : localhost:143 (other)
H. Hide SMTP Settings
R Return to Main Menu
C Turn color on
S Save data
Q Quit
Escolha a opção 7, então aparecerá isto:
If you have already set the hostname and port number, I can try to
automatically detect the mechanisms your SMTP server supports.
Auto-detection is *optional* - you can safely say "n" here.
Try to detect auth mechanisms? [y/N]:
Tecle "y" em seguida tecle ENTER. Então aparecerá isto:
Trying to detect supported methods (SMTP)...
Testing none: SUPPORTED
Testing login: SUPPORTED
Testing CRAM-MD5: SUPPORTED
Testing DIGEST-MD5: SUPPORTED
What authentication mechanism do you want to use for SMTP connections?
none - Your SMTP server does not require authorization.
login - Plaintext. If you can do better, you probably should.
cram-md5 - Slightly better than plaintext.
digest-md5 - Privacy protection - better than cram-md5.
*** YOUR SMTP SERVER MUST SUPPORT THE MECHANISM YOU CHOOSE HERE ***
If you don't understand or are unsure, you probably want "none"
none, login, cram-md5, or digest-md5 [none]:
Digite "login" e pronto. Agora tecle "S" para salvar e "Q" para sair de vez.
Vamos fazer o teste do nosso servidor web agora. Acesse:
http://IP_SERVIDOR/webmail