Submitted by bvi@postcy.com on Fri, 09/03/2010 - 15:28
dear support
Is it possible my clients to login on web mail with their email andress (for example: user@domain.com) instead of (user.domain, user@domain or user%domain).
thanks in advance Vakis
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Sat, 09/04/2010 - 21:19 Comment #1
Yes - in fact, that should work out of the box already, assuming you have a standard Virtualmin install from our setup script.
Submitted by bvi@postcy.com on Sun, 09/05/2010 - 02:23 Comment #2
Ok thanks. How can I make it work?
Submitted by JamieCameron on Sun, 09/05/2010 - 14:34 Comment #3
I guess the real question is actually why isn't it working right now? :-)
Check the file
/etc/usermin/miniserv.conf
for theuser_mapping
line - it should be something like :user_mapping=/etc/postfix/virtual
then check the file it references to make sure that it exists and contains the email addresses of your users.
Submitted by bvi@postcy.com on Sun, 09/05/2010 - 15:22 Comment #4
I've checked the file /etc/usermin/miniserv.conf and it contains the following:
port=20000
addtype_cgi=internal/cgi
realm=Usermin Server
logfile=/var/usermin/miniserv.log
errorlog=/var/usermin/miniserv.error
pidfile=/var/usermin/miniserv.pid
logtime=168
ppath=
ssl=1
env_WEBMIN_CONFIG=/etc/usermin
env_WEBMIN_VAR=/var/usermin
atboot=
logout=/etc/usermin/logout-flag
listen=
denyfile=\.pl$
log=1
blockhost_failures=5
blockhost_time=60
session=1
unixauth=user
localauth=/usr/sbin/lsof
pam=usermin
premodules=WebminCore
userfile=/etc/usermin/miniserv.users
keyfile=/etc/usermin/postcy.com.key
passwd_file=/etc/shadow
passwd_uindex=0
passwd_pindex=1
passwd_cindex=2
passwd_mindex=4
passwd_mode=2
sidname=usid
preroot=virtual-server-theme
passdelay=1
domainstrip=1
domainuser=1
extracas=
certfile=/etc/usermin/postcy.com.cert
ssl_redirect=1
sockets=
pam_conv=
blockuser_time=
passwd_blank=
blockuser_failures=
logouttime=
syslog=
utmp=
user_mapping_reverse=0
host=postcy.com
root=/usr/libexec/usermin
mimetypes=/usr/libexec/usermin/mime.types
mobile_preroot=virtual-server-mobile
mobile_agents=
mobile_prefixes=
mobile_nosession=0
Submitted by JamieCameron on Sun, 09/05/2010 - 15:31 Comment #5
Looks like the
user_mapping
line is missing. Try adding the line :user_mapping=/etc/postfix/virtual
then running :
/etc/usermin/restart
Submitted by bvi@postcy.com on Sun, 09/05/2010 - 15:51 Comment #6
I've done it but it still not working.. Do you have any other idea of what to do?
Submitted by JamieCameron on Sun, 09/05/2010 - 16:00 Comment #7
Can you verify that the address you are trying to login with is in the
/etc/postfix/virtual
file?Submitted by bvi@postcy.com on Mon, 09/06/2010 - 01:34 Comment #8
from where can i verify that?
Submitted by JamieCameron on Mon, 09/06/2010 - 01:45 Comment #9
Just SSH in as root and run the command :
grep email@domain.com /etc/postfix/virtual
and see if it outputs anything.
Submitted by bvi@postcy.com on Mon, 09/06/2010 - 02:17 Comment #10
[root@ns1 ~]# grep info@postcy.com /etc/postfix/virtual info@postcy.com info.postcy [root@ns1 ~]#
Submitted by JamieCameron on Mon, 09/06/2010 - 02:35 Comment #11
Ok, that looks good to me...
And yet if you try to login to https://yourserver:20000/ as info@postcy.com , it doesn't work?
But logging in as info.postcy does work?
Submitted by bvi@postcy.com on Mon, 09/06/2010 - 03:09 Comment #12
with info@postcy.com doesn't work :( when i try info.postcy is working fine.
Submitted by JamieCameron on Mon, 09/06/2010 - 12:16 Comment #13
Any chance I could login to your system myself to see what is going wrong?
Submitted by bvi@postcy.com on Mon, 09/06/2010 - 13:16 Comment #14
yes sure. you want send you user and pass here?
Submitted by JamieCameron on Mon, 09/06/2010 - 14:05 Comment #15
You can email them to me at jcameron@virtualmin.com
Submitted by JamieCameron on Mon, 09/06/2010 - 23:11 Comment #16
Adding
user_mapping_reverse=1
in/etc/usermin/miniserv.conf
was the fix.Submitted by Issues on Tue, 09/21/2010 - 01:20 Comment #17
Automatically closed -- issue fixed for 2 weeks with no activity.