I'm using Qmail+Vpopmail as the email system. When I add a new domain, the main user has "Enable Primary Email address" to "yes" by default.
I'm using vpopmail with a mysql backend and when I looked at the vpopmail database I noticed that this means an alias is created like this when primary email address is enabled:
domain@domain.com alias to '| /home/vpopmail/bin/vdelivermail "" domain@domain.com '
Now if I send an email to domain@domain.com the message will get delivered to this alias which will again try to deliver it to the same address and again get into the same alias, end so on ... creating an infinite loop ( well actually until vpopmail can't connect to mysql anymore because of connections limit and then qmail-send crashes )
I fixed this by not enabling primary email address and then to set an alias for domain@domain.com to another email address but this is a workaround.
It would be better if virtualmin would set this by default to point to something like postmaster@domain.com or maybe just deliver it the maildir instead of setting up an alias for it.
Comments
Submitted by mihaisecasiu on Wed, 07/15/2009 - 12:37 Comment #2
Why is this bug report closed? Virtualmin still creates this alias wrongly.
Submitted by mihaisecasiu on Wed, 07/15/2009 - 12:58 Comment #3
and I just found one more problem with this ( not sure if it should be a new bug ). If I set the "primary address ernabled" to "No" the alias is not deleted, so the only way to fix this is to modify vpopmail's database.
Submitted by JamieCameron on Wed, 07/15/2009 - 13:48 Comment #4
So you are still seeing the original problem, even in the 3.70 Virtualmin release?
The issue here may be that vpopmail doesn't do delivery to non-vpopmail users in the same way as other mail servers. What would be the correct alias for delivery to a Unix user?
Submitted by mihaisecasiu on Thu, 07/16/2009 - 09:16 Comment #5
yes this is still a problem in 3.703.gpl I don't think vpopmail is meant to deliver email to unix users. If I want to receive messages sent to local unix users I would just set up a domain in virtualmin with the same name as the hostname and then set up the user accounts where I want to receive messages or set the domain as catchall. I don't know any other way of doing this.
The problem is not as bad as before because now virtualmin doesn't enable the primary email address by default so it's less likely that qmail will just crash because of this by just adding a domain.
Submitted by JamieCameron on Thu, 07/16/2009 - 14:32 Comment #6
Ok .. so really Virtualmin shouldn't even allow the domain owner Unix user to have a primary email address.
Submitted by mihaisecasiu on Thu, 07/16/2009 - 15:18 Comment #7
Yes, I think this would be the best.
Submitted by JamieCameron on Thu, 07/16/2009 - 16:13 Comment #8
Ok, that will be done in the next release.
Submitted by Issues on Thu, 07/30/2009 - 17:18 Comment #9
Automatically closed -- issue fixed for 2 weeks with no activity.