Restore email not shown

Issue #988 closed
Jérôme Lagrue created an issue

Hi,

I’m having trouble with emails restore.

I can download zip archives of selected emails after installing php-zip but I can’t see the icon

SMARTHOST is defined, I also defined IMAP_HOST and ENABLE_IMAP_AUTH

If anyone as an idea 🙂

regards
Jérôme

Comments (11)

  1. Janos SUTO repo owner

    I doubt that either SMARTHOST or ENABLE_IMAP_AUTH is set. Show me the following output:

    grep SMARTHOST /usr/local/etc/piler/config-site.php
    

    (Or wherever your config-site.php is)

  2. Janos SUTO repo owner

    Thanks. I suggest you to remove your last comment because I didn’t ask for the contents of config-site.php and thus sharing your passwords, domains with the world.

    Anyway run the following command (and share only its output)

    grep config-site.php /var/piler/www/config.php
    
  3. Jérôme Lagrue reporter

    Damned, I made wrong copy/paste .. sorry (it’s only a test plateform won’t stay up really long)

    root@cu-mailpiler:/home/jlagrue# grep SMARTHOST /var/piler/www/config-site.php
    $config['SMARTHOST'] = '10.1.5.11';
    $config['SMARTHOST_PORT'] = 25;
    
  4. Jérôme Lagrue reporter

    ok .. I got it I think.

    In config.php I have this line :

    require_once '/etc/piler/config-site.php';
    

    I move config-site.php in /etc/piler/ and it’s good now

  5. Jérôme Lagrue reporter

    Hi,
    I’m re-opening this thread because I’ve installed a new piler server.

    I’m having the problem but this time I’ve check that config-site.php is in /etc/piler

    Config files are (almost) same as the other server (almost mostly because hostid is not the same)

    It seems to come from piler.conf because when I download eml file, I have an error message saying

    error parsing the configfile: /etc/piler/piler.conf

    But I can’t figure out where is the problem.

    Here is my /etc/piler/piler.conf

    archive_emails_not_having_message_id=0
    archive_only_mydomains=0
    backlog=20
    cipher_list=ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
    clamd_socket=/tmp/clamd
    default_retention_days=3670
    enable_chunking=0
    enable_cjk=0
    enable_folders=1
    encrypt_messages=1
    extra_to_field=X-Envelope-To:
    extract_attachments=1
    helper_timeout=20
    hostid=archives.xxxxxx.com
    listen_addr=0.0.0.0
    listen_port=25
    max_connections=64
    max_requests_per_child=10000
    memcached_servers=127.0.0.1
    memcached_to_db_interval=900
    memcached_ttl=86400
    min_message_size=100
    min_word_len=1
    mmap_dedup_test=0
    mysql_connect_timeout=2
    mysqlcharset=utf8mb4
    mysqldb=piler
    mysqlpwd=Aiv7QqB92MsmYC
    mysqlsocket=/var/run/mysqld/mysqld.sock
    mysqluser=piler
    number_of_worker_processes=6
    pemfile=/etc/piler/piler.pem
    pidfile=/var/run/piler/piler.pid
    piler_header_field=X-piler-id:
    process_rcpt_to_addresses=0
    server_id=0
    smtp_timeout=60
    spam_header_line=
    syslog_recipients=0
    tls_enable=1
    tweak_sent_time_offset=0
    update_counters_to_memcached=1
    username=piler
    verbosity=3
    workdir=/var/piler/tmp
    

    If you have any idea 🙂

    regards

    Jerome

  6. Janos SUTO repo owner

    Show me ls -la /etc/piler/piler.conf output. Make sure it’s owned by root:piler with 0640 permissions on it.

  7. Jérôme Lagrue reporter

    I feel so ashamed .. I did not check this point ! owner was good but with 600 permissions .

    Changed to 0640 and everything run correctly!

    I hope next time I’ll install one I won’t do the same

    have a good day

    Jerome

  8. Log in to comment