lewisjenkins (User)
Posts: 14
|
| Duplicate users bug 2008/05/07 14:22 |
|
|
Hi
If I create a new mail user in Virtualmin, and then go to the Read User Mail page there are two users showing instead of one, in the following formats:
user-domain.com user@domain.com
In the /home/domain.com/homes directory, only one folder exists (correctly).
If I send mail to the user, then the Read User Mail page displays as follows:
user-domain.com (47.78 kB in 1) user@domain.com (47.78 kB in 1)
If I try to login via POP3, only the user-domain.com is accepted (incorrectly - it should be user@domain.com).
Virtualmin is setup for user@domain.com format.
How can I get rid of this second unwanted user-domain.com mailbox?
|
|
|
|
The administrator has disabled public write access. |
Joe (Admin)
Posts: 3796
|
| Re:Duplicate users bug 2008/05/07 14:43 |
|
|
|
|
|
|
The administrator has disabled public write access. |
lewisjenkins (User)
Posts: 14
|
| Re:Duplicate users bug 2008/05/07 14:46 |
|
|
Thanks Joe - I thought you might say that!
I have read this FAQ, but I don't think it is related. I do already have the -r flag, it was already there when I installed my Fedora 8.
Even though there is only one mailbox, Virtualmin is showing two, and it is confusing my system!
Lewis
|
|
|
|
The administrator has disabled public write access. |
Joe (Admin)
Posts: 3796
|
| Re:Duplicate users bug 2008/05/07 15:07 |
|
|
I have read this FAQ, but I don't think it is related.
Nope, it's definitely related:
Virtualmin has several clever hacks to workaround this particular feature of Postfix, revolving around the creation of a second user with the same UID and paths, which Postfix can deliver to. This has many potential problems and might confuse other software that isn’t smart enough to deal with multiple usernames with the same UID (this is perfectly legitimate, and ought to work, but it is a common failing and even some of our stuff has had some bugs uncovered, but now fixed, by this hack).
Even though there is only one mailbox, Virtualmin is showing two, and it is confusing my system!
Where is Virtualmin showing two? This would be a bug.
What aspect of your system is confused?
If you want Postfix to deliver mail for a user with @ in their name, you must have two users--one without the @ and one with, and a mapping in the virtual map that sends mail tot he right place. You are then able to use either username for sending and receiving and logging into Usermin (or other webmail clients). The only alternatives are: Don't use @ in usernames, or don't use Postfix as your MTA. Postfix will not deliver to a user with an @ in the name, under any circumstances.
|
|
|
|
The administrator has disabled public write access. |
lewisjenkins (User)
Posts: 14
|
| Re:Duplicate users bug 2008/05/07 15:14 |
|
|
Thanks for the lengthy reply. By the way, I didn't have the '-r' flag installed... I was looking at the wrong server. But I do now.
Nonetheless, there does appear to be a bug here, with duplicates in Read User Mail.
I can give you access to my Webmin installation if you like - you'll see that in Read User Mail there are two users where there should only be one :
info-davidroder.co.uk (1.55 kB in 1) info@davidroder.co.uk (1.55 kB in 1)
It does appear to be confused!
Lewis
|
|
|
|
The administrator has disabled public write access. |
Joe (Admin)
Posts: 3796
|
| Re:Duplicate users bug 2008/05/07 15:33 |
|
|
Yep, that'd be a bug. I'll file it.
|
|
|
|
The administrator has disabled public write access. |
JamieCameron (Admin)
Posts: 342
|
| Re:Duplicate users bug 2008/05/07 18:25 |
|
|
Hi Lewis,
Do these users get their mail delivered to ~/Maildir , or files under /var/mail ? In the former case, Virtualmin should already be skipping the duplicates, as they would have the same mailbox file..
|
|
|
|
The administrator has disabled public write access. |
lewisjenkins (User)
Posts: 14
|
| Re:Duplicate users bug 2008/05/07 23:58 |
|
|
OK, my apologies.
My mail was being delivered to /var/mail.
Adding
home_mailbox = Maildir/
to /etc/postfix/main.cf seems to have solved the duplicate mailbox problem, so thanks very much.
Sorry for shouting 'bug' so quickly!
|
|
|
|
The administrator has disabled public write access. |
JamieCameron (Admin)
Posts: 342
|
| Re:Duplicate users bug 2008/05/08 06:34 |
|
|
It was a bug though - webmin shouldn't display duplicate users even when /var/mail is being used, as normally the mailboxes for - and @ format usernames are linked together. I'll fix this in the next release.
|
|
|
|
The administrator has disabled public write access. |
markedwards (User)
Posts: 62
|
| Re:Duplicate users bug 2008/05/09 07:35 |
|
|
This is mildly disturbing, as I also use user@domain for my users. The reason I use that form is that its far easier for my users to remember their email address and login with it than to remember user.domain or user-domain.
I've had no issue with it. I'm just wondering if this functionality will stick around, or if you guys will go the way of Wietse and deprecate it at some point?
Thanks!
|
|
|
|
The administrator has disabled public write access. |
|