Multi E-Mail Addresses

  • Ok I tried what you said:

    - Changed my mail account from mail to mail+forward

    - Added onw forward address to the list called "testaddress@domain.tld"

    - Send a mail to "testaddress@domain.tld"

    - Got error (User unknown in virtual mailbox table)

    Basically, what you want is ability to send mails to aliases in which case, the mails should be delivered into the mailbox of the mail account for which you have defined them. Problem is that aliases don't always belong to locally hosted domains.. You can have an alias address such as user@gmail.com ... But I'll check the behavior and see if we can add specific "rules" for aliases that belong to local domains. By local, I mean those for which domains are hosted locally. In reality, those are virtual domains...

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

    account_detailed.gif

  • Nuxwin

    Added the Label to be implemented
  • UncleSam


    Right now, when creating a normal + forward account, we end with something as follow (alias map):


    Code
    1. # Postfix aliases map - auto-generated by i-MSCP
    2. # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
    3. whatever@bbox.nuxwin.com whatever@bbox.nuxwin.com,alias@bbox.nuxwin.com


    Here, any mail sent to the whatever@bbox.nuxwin.com mail account would be:

    1. Delivered to the whatever@bbox.nuxwin.com mailbox
    2. Forwarded to the alias@bbox.nuxwin.com alias

    This is the current behavior but you, you want also be able to send mail to aliases:


    Code
    1. # Postfix aliases map - auto-generated by i-MSCP
    2. # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
    3. whatever@bbox.nuxwin.com whatever@bbox.nuxwin.com,alias@bbox.nuxwin.com
    4. alias@bbox.nuxwin.com whatever@bbox.nuxwin.com


    This is the same as above but with another alias entry. Mail sent to the alias@bbox.nuxwin.com would be:

    1. Forwarded to the alias@bbox.nuxwin.com

    You see the problem here? This create a loop and you would end with a "loopback to myself" error:


    Mail sent to alias => forwarded to whatever => forwarded to alias => forwarded to whatever... (LOOP)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

    account_detailed.gif

  • Yes that is what I want, but I was not aware that someone could configure something like a loop like that... This is a nice to have feature which would be great if you need to add a lot of aliases. But please do not spend too much time on it. I thought it is something you could do in 10 minutes or something like that.

  • UncleSam


    I've just made a test with the following entries:


    Code
    1. root@bionic:/etc/postfix/imscp# cat domains
    2. # Postfix domains map - auto-generated by i-MSCP
    3. # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
    4. bbox.nuxwin.com OK


    Code
    1. # Postfix aliases map - auto-generated by i-MSCP
    2. # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
    3. alias@bbox.nuxwin.com whatever@bbox.nuxwin.com
    4. whatever@bbox.nuxwin.com whatever@bbox.nuxwin.com,alias@bbox.nuxwin.com


    This seem to work as expected (no loop).

    Below the SMTP session (sending mail to alias@bbox.nuxwin.com which is an alias of whatever@bbox.nuxwin.com :



    Note: Don't pay attention to the warning regarding TLD... (self-signed cert)...


    As you can see, the mail sent to alias@bbox.nuxwin.com (alias address) has been delivered into the whatever@bbox.nuxwin.com mailbox. This is what you expect. My thinking is that this would cause a loop but it seem that not the case... I need to do more tests to be sure but if that still OK, I'll improve the feature, automatically adding required entries for aliases (when those belong to a domain that is hosted locally).


    The received mail (source)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

    account_detailed.gif