Re: Setup SquirreMail with Virtual Host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Report Feedback for solution this problem: postfix with suport squirrelmail in apache2.
Considerations: My LAMP(in DEBIAN 7) IP:192.168.2.50
configuration in my bind(DNS Autorytative):
step 1: setup my mail in DNS:
vim db.oduvaldocozzi.intranet
mail IN A 192.168.2.50
oduvaldocozzi.intranet. IN      MX      10      mail.oduvaldocozzi.intranet.
step 2: Setup a Vhost with SSL access:
mail.oduvaldocozzi.intranet.conf
sslmail.oduvaldocozzi.intranet.conf

content: mail.oduvaldocozzi.intranet.conf
<VirtualHost  *:80>
ServerName mail.oduvaldocozzi.intranet
ServerAdmin postmaster@mail.oduvaldocozzi.intranet
Redirect "/" "https://mail.oduvaldocozzi.intranet"
</VirtualHost>

content:  sslmail.oduvaldocozzi.intranet.conf
<VirtualHost  *:443>
ServerName mail.oduvaldocozzi.intranet
DocumentRoot /usr/share/squirrelmail/
DirectoryIndex index.php
ServerAlias mail.oduvaldocozzi.intranet
Alias /squirrelmail  /usr/share/squirrelmail

SSLEngine On
SSLCertificateFile /etc/ssl/certs/mailssl.crt
SSLCertificateKeyFile /etc/ssl/private/mailssl.key
<Location />
SSLRequireSSL On
SSLVerifyClient optional
SSLVerifyDepth 1
SSLOptions +StdEnvVars +StrictRequire
</Location>
</VirtualHost>

OFF: Modules Apache2 Loaded:
Loaded Modules:
 core_module (static)
 so_module (static)
 watchdog_module (static)
 http_module (static)
 log_config_module (static)
 logio_module (static)
 version_module (static)
 unixd_module (static)
 access_compat_module (shared)
 alias_module (shared)
 auth_basic_module (shared)
 authn_core_module (shared)
 authn_file_module (shared)
 authz_core_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 deflate_module (shared)
 dir_module (shared)
 env_module (shared)
 filter_module (shared)
 mime_module (shared)
 mpm_prefork_module (shared)
 negotiation_module (shared)
 php5_module (shared)
 reqtimeout_module (shared)
 rewrite_module (shared)
 setenvif_module (shared)
 socache_shmcb_module (shared)
 ssl_module (shared)
 status_module (shared)

My enviroment work fine, send and received mail in my local network.
Thank you all.




2018-01-19 12:33 GMT-02:00 Rodrigo Cunha <rodrigo.root.rj@xxxxxxxxx>:
Tks Michelle Konzack,
i see you configurations and setup my redirect from 80 to 443, and work.
I send my configfile here.
[]'s,

Livre de vírus. www.avast.com.

2018-01-19 9:11 GMT-02:00 Michelle Konzack <linux4michelle@tamay-dogan.net>:
Hello Rdrigo,

I have a buch of Squirrelmail VHosts like
    <https://webmail.tamay-dogan.net/>
running and it is a simple VHost.
I had not to change anything but simply setup a VHost in Apache2

----[ '/srv/APACHE_availlable/webmail.xxxxx-xxxxx.xxx' ]----------------
<VirtualHost 78.47.247.21:80>
    ServerAdmin     hostmaster@xxxxxxxxx.xxxxx-xxxxx.xxx
    ServerName      webmail.xxxxx-xxxxx.xxx
    Redirect        / https://webmail.xxxxx-xxxxx.xxx/
</VirtualHost>

<VirtualHost 78.47.247.21:443>
    ServerAdmin     hostmaster@xxxxxxxxx.xxxxx-xxxxx.xxx
    ServerName      webmail.xxxxx-xxxxx.xxx

    SSLCertificateFile /srv/CONFIG_webmail.xxxxx-xxxxx.xxx/ssl/cert.pem
    SSLCertificateKeyFile /srv/CONFIG_webmail.xxxxx-xxxxx.xxx/ssl/privkey.pem
    SSLCertificateChainFile /srv/CONFIG_webmail.xxxxx-xxxxx.xxx/ssl/chain.pem
    Include         /srv/APACHE_configs/SSL

    DocumentRoot    /srv/CONFIG_webmail.xxxxx-xxxxx.xxx/htdocs

    Alias /squirrelmail             /usr/share/squirrelmail

    <Directory /srv/CONFIG_webmail.xxxxx-xxxxx.xxx/htdocs>
      Options Indexes FollowSymLinks
      <IfModule mod_php5.c>
        php_flag register_globals off
      </IfModule>
      <IfModule mod_dir.c>
        DirectoryIndex index.php
      </IfModule>

      <Files configtest.php>
        order deny,allow
        deny from all
      </Files>
    </Directory>

    <Directory />
        Options         FollowSymLinks Indexes
        AllowOverride   None
    </Directory>

    # debug, info, notice, warn, error, crit, alert, emerg.
    LogLevel    warn
    ErrorLog    /srv/CONFIG_webmail.xxxxx-xxxxx.xxx/log/apache/error.log

    LogFormat   "%{[%Y-%m-%d %H:%M:%S %z]}t %h [%V] %l %u \"%r\" %>s %b
\"%{Referer}i\" \"%{User-Agent}i\"" vhost
    CustomLog   /srv/CONFIG_webmail.xxxxx-xxxxx.xxx/log/apache/access.log
vhost

    ServerSignature  On
</VirtualHost>
------------------------------------------------------------------------

This is JUST WORKING!

Am 2018-01-19 hackte Rodrigo Cunha in die Tasten:
> Dear, i have a problem in config vhost squirremail.
> I'm following the steps in the tutorial [
> http://www.100security.com.br/postfix-squirrelmail-outlook/] . The autor
> indicate setup this changes in apache2.conf:
>
> Alias /webmail “/usr/share/squirrelmail/”
> DirectoryIndex index.php
>
> but i want create vhost for my domain "mail.mydomain.com" and not create
> redirect IP/webmail.I want config this mail with my other localwebsites
> like:
> /etc/apache2/site-available/mail.mydomain.conf  and setup this file with
> a2ensite mail.mydomain.conf, etc.
>
> What is steps for configure my squirremail with vhost and not ip/webmail.
> Tks.
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




--
Atenciosamente,
Rodrigo da Silva Cunha
São Gonçalo, RJ - Brasil




--
Atenciosamente,
Rodrigo da Silva Cunha
São Gonçalo, RJ - Brasil


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux