AutoMail Error 504

Discussion in 'Plugins/Modules/Addons' started by ledufakademy, Mar 15, 2022.

  1. ledufakademy

    ledufakademy Member HowtoForge Supporter

    hello , can't achieve to make working this plugins (from schaal-it.com):

    =>> Error.log
    =>> Client browser view
    ==>> testing https://panel.domain.cloud:8080/remote/
    Give me : 1 (so working) , "Remote acces" for Remote user , ticked.

    i strongly suspect ... this module code not working ... because phpinfo gave me ... information !
     
    Last edited: Mar 16, 2022
  2. ledufakademy

    ledufakademy Member HowtoForge Supporter

    nano /var/www/autoconfig.domain.cloud/web/index.php
    PHP:
    <?php

    require_once('autoconfig.inc.php');
    require_once(
    'config.php');
    phpinfo();
    //$ac = new autoconfig($conf);
    ?>
    ... then gave me :
     
  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Which plugins?
    Do you mean this:
    https://schaal-it.com/ispconfig-automail/
    That plugin does work, but new versions of Outlook and I guess other Microsoft e-mail clients can not get configurations since they implemented some new autoconfiguration protocol which nobody outside Microsoft seems to know how it works.
    The Schaal automail works fine with Thunderbird.
     
  4. ledufakademy

    ledufakademy Member HowtoForge Supporter

    hello Taleman,
    yes this automail.
    when i try
    got :
    Code:
    --2022-03-15 18:10:36--  http://autoconfig.dufour.cloud/[email protected]
    Résolution de autoconfig.dufour.cloud (autoconfig.dufour.cloud)… 80.67.179.181
    Connexion à autoconfig.dufour.cloud (autoconfig.dufour.cloud)|80.67.179.181|:80… connecté.
    requête HTTP transmise, en attente de la réponse… 504 Gateway Time-out
    Nouvel essai.
    
    --2022-03-15 18:11:37--  (essai :  2)  http://autoconfig.dufour.cloud/[email protected]
    Réutilisation de la connexion existante à autoconfig.dufour.cloud:80.
    requête HTTP transmise, en attente de la réponse… 504 Gateway Time-out
    Nouvel essai.
    
    --2022-03-15 18:12:39--  (essai :  3)  http://autoconfig.dufour.cloud/[email protected]
    Réutilisation de la connexion existante à autoconfig.dufour.cloud:80.
    requête HTTP transmise, en attente de la réponse… 504 Gateway Time-out
    Nouvel essai.
    
    And ispconfig site work fine.
    https://autoconfig.dufour.cloud/

    i think there is an issue when the php code is trying to connect to ispconfig server.
    i don't understand why there is a need of having remote user access !!
    Mozilla autoconfig preconization don't need that.
     
  5. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    See web server logs for why 504 error. Also log files in the autoconfig website log directory.
     
  6. ledufakademy

    ledufakademy Member HowtoForge Supporter

    When i try to Re do install of this sh...t : i try to remove automail , record ...
    then got : CSRF attempt blocked.
    not good at all
     
  7. ledufakademy

    ledufakademy Member HowtoForge Supporter

    log are posted on first mail.
     
  8. ledufakademy

    ledufakademy Member HowtoForge Supporter

    Code:
    2022/03/15 18:11:36 [error] 213425#213425: *66 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 82.66.60.103, server: autoconfig.dufour.cloud, request: "GET /[email protected] HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php7.4-fpm/web7.sock", host: "autoconfig.dufour.cloud"
    2022/03/15 18:12:37 [error] 213425#213425: *66 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 82.66.60.103, server: autoconfig.dufour.cloud, request: "GET /[email protected] HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php7.4-fpm/web7.sock", host: "autoconfig.dufour.cloud"
    2022/03/15 18:13:24 [crit] 213425#213425: *117 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 107.178.238.63, server: 0.0.0.0:443
    2022/03/15 18:13:39 [error] 213425#213425: *66 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 82.66.60.103, server: autoconfig.dufour.cloud, request: "GET /[email protected] HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php7.4-fpm/web7.sock", host: "autoconfig.dufour.cloud"
    2022/03/15 18:25:49 [error] 213425#213425: *290 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 82.66.60.103, server: autoconfig.dufour.cloud, request: "GET /[email protected] HTTP/1.1", upstream: "fastcgi://unix:/var/lib/php7.4-fpm/web7.sock", host: "autoconfig.dufour.cloud"
    2022/03/15 18:28:09 [error] 213425#213425: *318 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 82.66.60.103, server: autoconfig.dufour.cloud, request: "GET /[email protected] HTTP/2.0", upstream: "fastcgi://unix:/var/lib/php7.4-fpm/web7.sock", host: "autoconfig.dufour.cloud"
    2022/03/15 18:47:53 [crit] 213425#213425: *646 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 185.23.182.31, server: 0.0.0.0:443
    2022/03/15 19:33:15 [error] 213425#213425: *785 openat() "/var/www/autoconfig.dufour.cloud/web/remote/fgt_lang" failed (2: No such file or directory), client: 45.134.144.140, server: autoconfig.dufour.cloud, request: "GET ///remote/fgt_lang?lang=/../../../..//////////dev/ HTTP/1.1", host: "80.67.179.181"
    2022/03/15 20:12:51 [crit] 213425#213425: *1032 SSL_do_handshake() failed (SSL: error:141CF06C:SSL routines:tls_parse_ctos_key_share:bad key share) while SSL handshaking, client: 192.241.213.175, server: 0.0.0.0:443
    
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Any software that needs to communicate with ISPConfig and is not running within the ISPConfig vhost normally uses the remote API. You should also check the global apache error.log if there are any errors there when this plugin tries to connect to ISPConfig.
     
  10. ledufakademy

    ledufakademy Member HowtoForge Supporter

    ok, i will see nginx log.
    i do not understand why an app , running on this only one server, i have, need remote access ... (on a multi-setup ok , but in this case ...)
    i take a look to /var/log/nginx/error.log ... see nothing.
    Question : where can we found ISPconfig API (remote user attempting to log) log ?
     
    Last edited: Mar 15, 2022
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    I explained why. Remote does not mean on another server, remote means code not being part of the same application and running under a different user and having different privileges. Communication between different applications normally happens through defined api's and that's the case here.
     
  12. ledufakademy

    ledufakademy Member HowtoForge Supporter

    after 5 retry :
    Code:
    --2022-03-15 21:14:44--  (essai :  5)  http://autoconfig.dufour.cloud/[email protected]
    Réutilisation de la connexion existante à autoconfig.dufour.cloud:80.
    requête HTTP transmise, en attente de la réponse… 200 OK
    Taille : non indiqué [text/html]
    Enregistre : «autoconfig.txt»
    
    autoconfig.txt                                                      [ <=>                                                                                                                                                 ]       7  --.-KB/s    ds 0s    
    
    2022-03-15 21:15:44 (1,03 MB/s) - «autoconfig.txt» enregistré [7]
    
    content of autoconfig.txt ==> no data

    this is weird !
     
  13. ledufakademy

    ledufakademy Member HowtoForge Supporter

    okay, i see. So do i need to tick : "Remote access" (and give ip or local name ?) of the server himself ?

     
  14. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Seems the remote access worked. Verify the files for automail are installed on the website. And the config.php contains the correct values.
     
  15. ledufakademy

    ledufakademy Member HowtoForge Supporter

    :


    i copy ./website to my /var/www/clientx/weby/web dir too ....
    And sure config.php was edit. according to my ispconfig Remote user.

    and put this in UI "web sites" :
    PHP:
    location ^~ /config\.php deny all; }

    location / {
    rewrite autodiscover\.xml$ /index.php last;
    rewrite Autodiscover\.xml$ /index.php last;
    rewrite config-v1\.1\.xml$ /index.php last;
    }
    server_name autoconfig.*;
     
    Last edited: Mar 17, 2022
  16. ledufakademy

    ledufakademy Member HowtoForge Supporter

    So it's not correct to write , in my point of view, : "Remote Access" in case we are only having one server ...
     
  17. till

    till Super Moderator Staff Member ISPConfig Developer

    The label is correct. I see that you don't understand how this all works, but you should not claim then that something is wrong because you don't understand how REST and SOAP API's and restricting access by IP work. Remote access controls which IP addresses can be used to access the API. Anything that's not 127.0.0.1 (localhost) is remote from point of your server.
     
  18. ledufakademy

    ledufakademy Member HowtoForge Supporter

    till : just have one , 1 , server : so it's localhost access , so no remote , isn't it ?
     
  19. ledufakademy

    ledufakademy Member HowtoForge Supporter

    now with ... this beautiful plugins i can't delete any create automail server !!!!
    and i got
    • CSRF attempt blocked.
     
    Last edited: Mar 16, 2022
  20. ledufakademy

    ledufakademy Member HowtoForge Supporter

    this plug ins (AutoconfigMail)is a real plague !
    no log to debug, while activating debug log !!!
    PHP:
    class autoconfig {

        private 
    $xml_version;
        private 
    $xml_encoding;
        private 
    $client_config_version;
        private 
    $conf;
        private 
    $mode;
        private 
    $domain;
        private 
    $email;
            private 
    $debug true;
    can't delete server record, got :

    • CSRF attempt blocked.
     

Share This Page