#3787 VPOPMail module does not use VPOPMail alias domains


When creating an alias virtual server, it should be possible to also create a VPOPMail alias domain matching the mail domain associated with the main virtual server that the alias is created of.

(I filed this under QMail because there is no category "VPOPMail")


  • Christian

    Christian - 2010-10-27
    • labels: --> QMail Configuration
    • milestone: --> 1.510
  • Christian

    Christian - 2010-10-27
    • summary: VPOPMail module does not use VPOMail alias domains --> VPOPMail module does not use VPOPMail alias domains
  • Jamie Cameron

    Jamie Cameron - 2010-10-27

    Are you using the VPOPmail support in Virtualmin there, or a separate VPOPmail module?
    If using Virtualmin, it uses a catchall alias to forward from the alias to the target domain. But if there is a better command for this, I would be interested to know about it..

  • Christian

    Christian - 2010-10-27

    Again, sorry for the confusion. ;) I am referring to Virtualmin VPOPMail support.

    I haven't examined your setup with a catchall but suspect that this is not an exact mapping of all email addresses in the alias domain to the equivalent in the real domain. In other words, if I have a domain example.com with addresses
    alice@example.com and bob@example.com and then create the alias domain domain.net, does that mean that now alice@example.net is synonymous with alice@example.com and bob@example.net with bob@example.com?

    A setup like this is usually realised in VPOPMail using

    vaddaliasdomain example.com example.net


    vaddaliasdomain: usage: [options] real_domain alias_domain

  • Jamie Cameron

    Jamie Cameron - 2010-10-28

    What Virtualmin does is create a .qmail-default file in the domain's directory under /home/vpopmail/domains , containing something like :


    Does that work?

  • Christian

    Christian - 2010-11-03

    I suppose it does work, even though I haven't had a chance to test it, yet.

    I suspect that there is one downside to this solution, though. If in the example I used earlier, I do

    vadduser carol@example.net

    VPOMail will automatically create the mailbox for carol@example.com instead because it knows
    that example.net is an alias for example.com.

    In your solution, I suppose, the same command would create a mailbox for a real address carol@example.net
    in .../domains/example.net which would then be unreachable because of the .qmail-default file.

    Now, this is probably not a problem as long as Virtualmin is used for all mailbox creation. However, if Virtualmin
    and command line are mixed (e.g. if there are admins of different level of command line savvy), this could pose
    a problem. But again, I haven;t had a chance to test that, yet...

  • Jamie Cameron

    Jamie Cameron - 2010-11-03

    It should work OK, as the default alias will catch any email to the alias domain.

    You could test this by creating an alias domain and sending email to an address that is in the target domain.

  • Christian

    Christian - 2010-11-03

    I'll try it on a test system. I just didn't want to play like that on a production system. I'll let you know when I've tried it.

  • Christian

    Christian - 2010-11-03

    I'm not sure what I'm doing wrong but if I create virtual server and then an alias for that server (with "Mail for this domain enabled?" on), I end up with a .qmail-default which contains the line

    | /var/lib/vpopmail/bin/vdelivermail '' bounce-no-mailbox

    Do I have to tell it somewhere else that this is meant to be a domain alias for email?

    Also, the fowarding would probably still not work as you described. The problem is that carol@example.net would be rewritten to carol@example.om but carol.example.com does not exist because vpopmail created carol@example.net as a real mailbox. Vor a vpopmail alias domain, a

    vadduser carol@example.net

    will result in the user carol@example.COM being created instead.

  • Nobody/Anonymous

    I tried a current version of Virtualmin and I still get an incorrect .qamil-default which refers email to VPOPMail instead of forwarding it to the main domain.

  • Christian

    Christian - 2011-06-07
    • status: open --> closed
  • Christian

    Christian - 2011-06-07

    I believe you have included my patch in the latest version, so this should be fixed now.

  • Jamie Cameron

    Jamie Cameron - 2011-06-07

    Yes, your patch has been included ..


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks