Posts by Number 6

    Hi Nuxwin,
    (just for reference Derek and I are working on the same system together)
    Thanks for resolving that one :-)


    We got a little further but another error has come up now, looks like a problem with Crypt::CBC -



    [ERROR] │
    │ │
    │ Error while performing step: │
    │ │
    │ Rebuilding customers files │
    │ │
    │ Error was: │
    │ │
    │ main::setupRebuildCustomerFiles: Can't locate object method "new" via package "Crypt::CBC" (perhaps you forgot to │
    │ load "Crypt::CBC"?) at /var/www/imscp/engine/imscp_common_methods.pl line 366. │
    │ Compilation failed in require at /var/www/imscp/engine/imscp-sw-mngr line 27. at │
    │ /usr/local/src/imscp-1.3.x/engine/PerlLib/iMSCP/DbTasksProcessor.pm line 321.

    Hi Ninos,
    I think I have the same issue, with a slightly different use case.


    Assuming example.tld is a domain hosted within i-MSCP:


    One of my users has an e-mail forwarder:
    my-user@example.tld
    This forwards on to an another account:
    my-user-another-account@any-domain.tld
    Note that in my use case, it doesn't matter if "any-domain.tld" is another within my server, or an external account like gmail, etc.


    The e-mail is delivered as expected:

    Code
    1. my-own-account@my-domain.tld ---sends-to-> my-user@example.tld ---forwarded-> my-user-another-account@any-domain.tld


    If I send an e-mail to my-user@example.tld, it correctly forwards to my-user-another-account@any-domain.tld
    When my-user-another-account@any-domain.tld replies to my e-mail (using the standard Reply mechanism not Reply All), it comes from my-user-another-account@any-domain.tld - this is expected of course.

    Code
    1. my-user-another-account@any-domain.tld ---sends-to-> my-own-account@my-domain.tld


    The problem arises when there is more than one recipient:


    I send an e-mail to my-user@example.tld and some-other-user@any-domain.tld
    Again, any-domain.tld can literally be any domain, it doesn't matter if it is the same domain as the sender, or if it is hosted within my server. some-other-user@any-domain.tld is just "any e-mail address".

    Code
    1. my-own-account@my-domain.tld ---sends-to-> my-user@example.tld ---forwarded-> my-user-another-account@any-domain.tld some-other-user@any-domain.tld

    That all works correctly, as expected.


    However, when the recipient who has the forwarder uses Reply All, their e-mail client looks at the headers, etc. and says:


    Quote from my-user-another-account@any-domain.tld e-mail client

    Wait! This was sent to "my-user@example.tld" and "some-other-user@any-domain.tld" - neither of those are me! I'm "my-user-another-account@any-domain.tld" - I will add "my-user-another-account@any-domain.tld" as the From address and move "my-user@example.tld" to the list of CC addresses.


    The e-mail is then sent by the user, and because their own forwarder is on the CC list, they receive a copy of their own e-mail too:


    Code
    1. my-user-another-account@any-domain.tld ---sends-to-> my-own-account@my-domain.tld some-other-user@any-domain.tld my-user@example.tld ---forwarded-> my-user-another-account@any-domain.tld

    Next, some-other-user@any-domain.tld replies to this e-mail:

    Code
    1. some-other-user@any-domain.tld ---sends-to->
    2. my-own-account@my-domain.tld
    3. my-user-another-account@any-domain.tld
    4. my-user@example.tld ---forwarded-> my-user-another-account@any-domain.tld

    So from that point on, the person with the forwarder gets two copies of every e-mail which in which recipients use Reply All.


    Of course, nothing is actually going wrong, per se. The e-mail system is working exactly as it's technically supposed to - but it is annoying and discourages users from using the very useful forwarders.


    Does this sound like we're having the same problem from different angles?

    Thanks, that helps :-)


    One of the .conf files I need to write a listener for is the proftpd.conf - where in the i-MSCP code would I look to find the appropriate events to listen for? Is there a common pattern to the event names so I can grep for them in the source?


    Thanks :-)

    Hi all,


    I'm currently running i-MSCP 1.2.0 and was about to start upgrading to the latest release, however I have some customisations in various .conf files which will be wiped out by the installer.


    Since this is a problem every time I upgrade, I thought I would write some listener files to deal with the modifications (I believe that's the correct way?), however I'm unable to find a list of the events which the listeners have available to them, or any documentation on how listeners work.


    The only information I've been able to find are the listeners which others have made on the forum here, i-MSCP listener files ( previously known as hook files ) and a brief document here https://github.com/i-MSCP/imsc…onfigs/debian/listeners.d


    In the brief sample listener on github, I can see that the sample listener is listening for the "beforeInstall" event, and in the "add a sender canonical map to postfix" listener here https://github.com/i-MSCP/hook…stfix_sender_canoncial.pl I can see that the event is "afterMtaBuildMainCfFile"


    I can't seem to locate a list of the events however, so I can't write my listeners because I don't know what other events are available or when they trigger.


    For my postfix .conf files, I can use the provided listeners and modify to my needs, but I would prefer to properly understand how to create listener files from scratch so that I can be sure that I know what I'm doing and what effect it will have on my instance of i-MSCP. All testing is being done on a virtual machine so I'm not worried about breaking anything, but I need a starting point to begin experimenting.


    I've tried searching for "hooks", "listeners" and "events" on the forum, the Wiki and even the web in general, but I can't find any more information. Could somebody point me in the correct direction please?


    Thanks!
    :)