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

Yes - in fact, that should work out of the box already, assuming you have a standard Virtualmin install from our setup script.

Ok thanks. How can I make it work?

I guess the real question is actually why isn't it working right now? :-)

Check the file /etc/usermin/miniserv.conf for the user_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.

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

Looks like the user_mapping line is missing. Try adding the line :

user_mapping=/etc/postfix/virtual

then running :

/etc/usermin/restart

I've done it but it still not working.. Do you have any other idea of what to do?

Can you verify that the address you are trying to login with is in the /etc/postfix/virtual file?

from where can i verify that?

Just SSH in as root and run the command :

grep email@domain.com /etc/postfix/virtual

and see if it outputs anything.

Any chance I could login to your system myself to see what is going wrong?

yes sure. you want send you user and pass here?

Adding user_mapping_reverse=1 in /etc/usermin/miniserv.conf was the fix.

Automatically closed -- issue fixed for 2 weeks with no activity.