Posts by UncleSam

    thank you very much @Ninos - is there a way to reconfigure all my domains using this listener?

    Ok found it in the first post, sry (perl /var/www/imscp/engine/setup/imscp-setup)

    I moved to another server and copied my dualstack listener file (only to add one ipv6 addresse to every domain). Now I have a problem using ssl and ipv6.


    Ipv4 is working great, but somehow the listener gets ... confused ... which port it should use:


    Apache port 80 configuration file of a domain:

    Code
    1. <VirtualHost 123.123.123.123:80 [aaaa:bbbb:cccc:dddd:eeee:ffff:0000:1111]:443>


    Apache port 443 (ssl) configuration file of a domain:


    Code
    1. <VirtualHost 123.123.123.123:443 [aaaa:bbbb:cccc:dddd:eeee:ffff:0000:1111]:80>


    • Can anyone tell me what I am doing wrong? This script worked on my old server without ony troubles.
    • Is there a way to tell I-MSCP to recreate the vhost information after fixing this?

    I have no idea if it is a "perfect" way or not (... I think It's not, but it's working). I am not a professional in postfix or dovecot - so please check my answer before trying it at your productive server!!! If someone has the know how to proove or correct my solution, please tell us all the "perfect" solution for further restores :-).


    My restore process for e.g. mail@domain.tld:

    • I extracted my backup of /var/mail/ into a seperate place: /backup/
    • Copied the file "subscriptions" from backup to mail folder:
      Code
      1. cp /backup/var/mail/virtual/domain.tld/mail/subscriptions /var/mail/virtual/domain.tld/mail/
    • After that I copied all mails:
      Shell-Script
      1. cp -r /backup/var/mail/virtual/domain.tld/mail/.* /var/mail/virtual/domain.tld/mail/
    • IMPORTANT: run the snipped from Nuxwin to correct the permissions!
      Shell-Script
      1. perl /var/www/imscp/engine/setup/set-engine-permissions.pl -v


    My restore process timeline:

    • Created the new server parallel, installed I-MSCP and created all mail boxes again.
    • Switched dns from old server to new server IP.
    • Waited about two days that every host in the world wide web knows the new server.
    • Did a backup of /var/mail/ on the old server and copied it to the new one.
    • Restored the way I told above.

    In my situation this was the best solution. Every mailbox was empty for some days or only filled with new mails. After copying the old mails backupthere should be every mail there, even the mails which were sent to the old server during dns change.

    Hi there,


    I moved to another server and wanted to stay as secure as possible. So I tried to create all iptable rules first and found an easier solution called "ufw".
    So I decided to remove the default iptables and use ufw instead. Is there anyone who has more knowledge about iptables and ufw who could tell me if it is a "good way" or not?


    Versions:


    Here is my current script which creates my ufw iptable rules:

    Ok thank you very much for your answer.


    Before I saw your answer I transfered just the missing folders and mails and replaced the file "subscription". After it I set the folder permission to "vmail:mail" - this worked for me but I run the permission script later when I am back at my pc.


    Is there any plan to include a restore process for emails too?

    Hallo,


    I moved to another server and copied my backup files including the e-mail backup to the backup directory of the domain. I pressed the restore button and domain, subdomains and sql databases got restores. But why is the e-mail backup not restored?


    Is there something i have to do?

    Same thing happens to my Strato virtual server (VPS)


    My solution for Strato vserver / VPS:
    - reboot in recovery mode
    - move /etc/resolv.conf to another location (e.g. /etc/resolv.conf.backup
    - create a new resolv.conf containing (works for my server):


    nameserver 85.214.7.22
    nameserver 81.169.163.106

    Hallo,


    today i saw inside /var/log/mail.log on restarting the dovecot service there are a lot of warning message. Can you please tell me if there is something to do or if I can safely ignore them:



    Code
    1. Jul 30 11:25:10 srv dovecot: master: Warning: /var/www/virtual/domain.tld/logs/subdomain.domain.tld is no longer mounted. See http://wiki2.dovecot.org/Mountpoints

    I have for every domain and subdomain one of these entries on dovecot restart.