Baixe notas feitas em sala de aula para csharp e outras Notas de aula em PDF para Processo de Produção, somente na Docsity! Yum install epel Yum install squirrelmail Navigate to /usr/share/squirrelmail/config/ directory: cd /usr/share/squirrelmail/config/ ..and run the following command to configure Squirrelmail. ./conf.pl The following wizard will open. Enter choice “1” to set your organization details: 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 off S Save data Q Quit Command >> 1 The following wizard will open. Enter “1” again to modify your organization details: SquirrelMail Configuration : Read: config.php (1.4.0) --------------------------------------------------------- Organization Preferences 1. Organization Name : SquirrelMail 2. Organization Logo : ../images/sm_logo.png 3. Org. Logo Width/Height : (308/111) 4. Organization Title : SquirrelMail $version 5. Signout Page : 6. Top Frame : _top 7. Provider link : http://squirrelmail.org/ 8. Provider name : SquirrelMail R Return to Main Menu C Turn color off S Save data Q Quit Command >> 1 Set your Organization name and press Enter: We have tried to make the name SquirrelMail as transparent as possible. If you set up an organization name, most places where SquirrelMail would take credit will be credited to your organization. If your Organization Name includes a '$', please precede it with a \. Other '$' will be considered the beginning of a variable that must be defined before the $org_name is printed. $version, for example, is included by default, and will print the string representing the current SquirrelMail version. [SquirrelMail]: Unixmen [localhost]: unixmen.local Enter “3” and change from sendmail to Postfix MTA (i.e. SMTP): SquirrelMail Configuration : Read: config.php (1.4.0) --------------------------------------------------------- Server Settings General ------- 1. Domain : unixmen.local 2. Invert Time : false 3. Sendmail or SMTP : Sendmail A. Update IMAP Settings : localhost:143 (uw) B. Change Sendmail Config : /usr/sbin/sendmail R Return to Main Menu C Turn color off S Save data Q Quit Command >> 3 Enter “2” to switch from sendmail MTA to postfix. You now need to choose the method that you will use for sending messages in SquirrelMail. You can either connect to an SMTP server or use sendmail directly. 1. Sendmail 2. SMTP Your choice [1/2] [1]: 2 Now enter “S” followed by “Q” to save and exit Squirrelmail configuration. Create a squirrelmail vhost in apache config file: vi /etc/httpd/conf/httpd.conf Add the following lines at the end: Alias /webmail /usr/share/squirrelmail <Directory /usr/share/squirrelmail> Options Indexes FollowSymLinks RewriteEngine On AllowOverride All DirectoryIndex index.php Order allow,deny Allow from all </Directory> Restart the Apache service: systemctl restart httpd Create mail users Create some users for testing. In my case I create two users namely “senthil“ and “kumar“. useradd senthil passwd senthil useradd kumar passwd kumar Access Webmail Now navigate to http://ip-address/webmail or http://domain-name/webmail from your browser. The following screen should appear. Enter the username and password of the user which we have created earlier. Now, you’ll be able to access the user mail box. Hurrah! We have got a new mail from
[email protected] mail id. To read the mail, click on it. You’ll now be able to read, reply, delete or compose a new mail. That’s all for now. We’ve successfully configured a local mail server that will serve in/out mails within a local area network.