Partage
  • Partager sur Facebook
  • Partager sur Twitter

Cherche solution technique : serveur mail ???

    12 avril 2015 à 12:45:11

    Salut tout le forum.

    Je suis professeur.

    J'ai créé un serveur sous debian 7.7.

    J'ai créé un site (html-php-css) et base de données (mysql) pour que mes élèves puissent savoir où ils en sont dans leur formation et choir leur TP.

    Je voudrais maintenant qu'ils puisent une fois leur TP finis s'envoyer leur fichier par mail.

    Comme nous avons au lycée un serveur pédagogique les élèves se loguent sur les PC avec un identifiant et un mot de passe et ça crée un nouvel utilisateur.

    Je suis donc obligé de configurer sur chaque PC et pour chaque utilisateur un client de messagerie.

    Quelle solution je pourrai adopter pour que mon serveur fasse office de client de messagerie ?

    Merci pour votre aide.

    _seb_

    -
    Edité par _seb_ 12 avril 2015 à 13:01:48

    • Partager sur Facebook
    • Partager sur Twitter
      12 avril 2015 à 16:26:33

      Salut

      si cela répond à ton besoin, tu pourrais installer un webmail. Sous linux tu as RoundCube, RainLoop, Zimbra, etc

      • Partager sur Facebook
      • Partager sur Twitter
        13 avril 2015 à 22:45:53

        Merci.

        J'ai installé RoundCube 1.1.1. Cette vidéo m'a bien aidé : How to install RoundCube 0.9.2 WebMail on your server

        J'ai vu que beaucoup de personne installe en plus également postfix / postfix-mysql / Dovecot qu'est ce que cela apporte ? il y a beaucoup d'informations contradictoires sur le net.

        _seb_

        -
        Edité par _seb_ 13 avril 2015 à 22:49:35

        • Partager sur Facebook
        • Partager sur Twitter
          14 avril 2015 à 6:29:15

          Roundcube ne fait que webmail, il ne gère pas les mails en tant que tel. Il a besoin d'un serveur IMAP et éventuellement d'un serveur SMTP : http://trac.roundcube.net/wiki/Howto_Requirements

          dovecot sert de serveur POP/IMAP.

          postfix gère la distribution des emails, c'est un MTA : http://fr.wikipedia.org/wiki/Mail_Transfer_Agent

          • Partager sur Facebook
          • Partager sur Twitter
            22 avril 2015 à 13:41:28

            Ou rondcube a évolué ou je n'ai pas compris.

            J'ai installé roundcube et dans le processus d'installation à la fin il faut créer le fichier config dans lequel il faut indiquer tous les paramètres du serveur entrant pop où imap et du serveur sortant smtp.

            J'arrive à envoyer et recevoir mes mails sans aucune autre installation que roundcube.

            • Partager sur Facebook
            • Partager sur Twitter
              23 avril 2015 à 10:33:30

              Fais un netstat -antp et regarde si tu as les ports 25, 110 ou 143 d'ouverts. Si c'est le cas, tu as déjà des serveurs SMTP et POP/IMAP d'installés.
              • Partager sur Facebook
              • Partager sur Twitter
                24 avril 2015 à 21:04:53

                Salut elalitte

                je ne vois aucun de ces ports ouverts. ( je suis sur une machine virtuelle avec VirtualBox)

                • Partager sur Facebook
                • Partager sur Twitter
                  25 avril 2015 à 13:30:35

                  Alors regarde la configuration de roundcube pour voir ou il va chercher les infos, dans Localsettings.php
                  • Partager sur Facebook
                  • Partager sur Twitter
                    25 avril 2015 à 16:10:33

                    Pas de Localsettings.php mais config.inc.php

                    <?php
                    
                    /* Local configuration for Roundcube Webmail */
                    
                    // ----------------------------------
                    // SQL DATABASE
                    // ----------------------------------
                    // Database connection string (DSN) for read+write operations
                    // Format (compatible with PEAR MDB2): db_provider://user:password@host/database
                    // Currently supported db_providers: mysql, pgsql, sqlite, mssql or sqlsrv
                    // For examples see http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php
                    // NOTE: for SQLite use absolute path: 'sqlite:////full/path/to/sqlite.db?mode=0646'
                    $config['db_dsnw'] = 'mysql://roundcube:**********@localhost/roundcubemail';
                    
                    // ----------------------------------
                    // IMAP
                    // ----------------------------------
                    // The mail host chosen to perform the log-in.
                    // Leave blank to show a textbox at login, give a list of hosts
                    // to display a pulldown menu or set one host as string.
                    // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
                    // Supported replacement variables:
                    // %n - hostname ($_SERVER['SERVER_NAME'])
                    // %t - hostname without the first part
                    // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
                    // %s - domain name after the '@' from e-mail address provided at login screen
                    // For example %n = mail.domain.tld, %t = domain.tld
                    // WARNING: After hostname change update of mail_host column in users table is
                    //          required to match old user data records with the new host.
                    $config['default_host'] = 'ssl://imap.gmail.com';
                    
                    // TCP port used for IMAP connections
                    $config['default_port'] = 993;
                    
                    // ----------------------------------
                    // SMTP
                    // ----------------------------------
                    // SMTP server host (for sending mails).
                    // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
                    // If left blank, the PHP mail() function is used
                    // Supported replacement variables:
                    // %h - user's IMAP hostname
                    // %n - hostname ($_SERVER['SERVER_NAME'])
                    // %t - hostname without the first part
                    // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
                    // %z - IMAP domain (IMAP hostname without the first part)
                    // For example %n = mail.domain.tld, %t = domain.tld
                    $config['smtp_server'] = 'ssl://smtp.gmail.com';
                    
                    // SMTP port (default is 25; use 587 for STARTTLS or 465 for the
                    // deprecated SSL over SMTP (aka SMTPS))
                    $config['smtp_port'] = 465;
                    
                    // SMTP username (if required) if you use %u as the username Roundcube
                    // will use the current username for login
                    $config['smtp_user'] = '%u';
                    
                    // SMTP password (if required) if you use %p as the password Roundcube
                    // will use the current user's password for login
                    $config['smtp_pass'] = '%p';
                    
                    // ----------------------------------
                    // SYSTEM
                    // ----------------------------------
                    // THIS OPTION WILL ALLOW THE INSTALLER TO RUN AND CAN EXPOSE SENSITIVE CONFIG DATA.
                    // ONLY ENABLE IT IF YOU'RE REALLY SURE WHAT YOU'RE DOING!
                    $config['enable_installer'] = false;
                    
                    // provide an URL where a user can get support for this Roundcube installation
                    // PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
                    $config['support_url'] = '';
                    
                    // this key is used to encrypt the users imap password which is stored
                    // in the session record (and the client cookie if remember password is enabled).
                    // please provide a string of exactly 24 chars.
                    $config['des_key'] = '***************************';
                    
                    // Automatically add this domain to user names for login
                    // Only for IMAP servers that require full e-mail addresses for login
                    // Specify an array with 'host' => 'domain' values to support multiple hosts
                    // Supported replacement variables:
                    // %h - user's IMAP hostname
                    // %n - hostname ($_SERVER['SERVER_NAME'])
                    // %t - hostname without the first part
                    // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
                    // %z - IMAP domain (IMAP hostname without the first part)
                    // For example %n = mail.domain.tld, %t = domain.tld
                    $config['username_domain'] = 'gmail.com';
                    
                    // ----------------------------------
                    // PLUGINS
                    // ----------------------------------
                    // List of active plugins (in plugins/ directory)
                    $config['plugins'] = array();
                    
                    // the default locale setting (leave empty for auto-detection)
                    // RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR
                    $config['language'] = 'fr_FR';
                    
                    // Set the spell checking engine. Possible values:
                    // - 'googie'  - the default (also used for connecting to Nox Spell Server, see 'spellcheck_uri' setting)
                    // - 'pspell'  - requires the PHP Pspell module and aspell installed
                    // - 'enchant' - requires the PHP Enchant module
                    // - 'atd'     - install your own After the Deadline server or check with the people at http://www.afterthedeadline.com before using their API
                    // Since Google shut down their public spell checking service, the default settings
                    // connect to http://spell.roundcube.net which is a hosted service provided by Roundcube.
                    // You can connect to any other googie-compliant service by setting 'spellcheck_uri' accordingly.
                    $config['spellcheck_engine'] = 'pspell';
                    • Partager sur Facebook
                    • Partager sur Twitter
                      25 avril 2015 à 18:44:02

                      Tu utilises gmail comme serveur SMTP.

                      Pour revenir à la question initiale, un postfix (ou autre serveur local) t'enlèverait cette dépendance à Google.

                      • Partager sur Facebook
                      • Partager sur Twitter

                      Cherche solution technique : serveur mail ???

                      × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
                      × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
                      • Editeur
                      • Markdown