September 11, 2022 Roberto Puzzanghera 89 comments
qmailAdmin is a free software package that provides a web interface for managing a qmail system with virtual domains. It provides admin for adding/deleting users, Aliases, Forwards, Mailing lists and Autoresponders.
qmailadmin
's skin from now on.cracklib
in order to check for the password strenght. This should avoid unsafe accounts created by domain administrators such as "test 123456".qmailadmin
to have authentication failures logged. This makes possible to ban malicious IPs via fail2ban
. It is required to create the log file /var/log/qma-auth.log
initially and assign write priviledges to apache
.ezmlm-idx-7
(thanks to J.D. Trolinger for the advice)..qmail
files are modifiedcracklib
Cracklib
is a library of functions providing a password complexity check against a word list. It compares the chosen password with the words contained in a database and if it is similar to one of them it returns a negative response.
Before installing qmailadmin
we have to set up cracklib
and then apply the patch. This patch upgrades the one of Inter7, which enforces qmailadmin
only in the case of user modification but not when creating the user or simply when the user navigates the "change password" page.
It's likely that you have the cracklib
package and words list available in your Linux distribution repository. In this case proceed to the next step.
A note for Debian users: the cracklib
package has libpam-cracklib
as dependence. But it turns out that libpam-cracklib
replaces libpam-modules
, which is a system library that should not be touched without a good reason. Therefore I suggest to install cracklib
from source on /usr/local as explained above. I tested this solution a couple of times and it will not interfere with libpam
.
To install cracklib
from source go ahead as follows in the normal way:
wget https://ftp.osuosl.org/pub/blfs/conglomeration/cracklib/cracklib-2.9.8.tar.bz2 tar xjf cracklib-2.9.8.tar.bz2 cd cracklib-2.9.8 ./configure --with-default-dict=/usr/share/cracklib/pw_dict make make install ldconfig
Create the dictionary folder (the same as used in the configure command)
mkdir /usr/share/cracklib cd /usr/share/cracklib
Download the words list
wget https://ftp.osuosl.org/pub/blfs/conglomeration/cracklib/cracklib-words-2.9.8.bz2 bunzip2 cracklib-words-2.9.8.bz2
Format and pack the dictionary into pw_dict.* files
cracklib-format cracklib-words-2.9.8 | cracklib-packer pw_dict
Now check that the cracklibs-words
database has been created:
ls cracklib-words-2.9.8 pw_dict.hwm pw_dict.pwd pw_dict.pwi
The database is made up of those three pw_dict.*
compiled files. You can always enrich the database adding lines to the plain-text file and using a combination of cracklib-format/
cracklib-packer
as shown above.Take also note of where the database has been installed because we'll have to pass its path to the qmailadmin
's configure
program.
cracklib
Let's play a bit with cracklib
:
# cracklib-check roberto roberto: it is based on a dictionary word 123456 123456: it is too simplistic/systematic roberto928 roberto928: it is based on a dictionary word robe99 robe99: it is based on a dictionary word 99robe 99robe: it is based on a dictionary word robe@99 robe@99: it is based on a dictionary word Qwerty123 Qwerty123: it is based on a dictionary word Qwerty!123 Qwerty!123: it is based on a dictionary word Rob&02f Rob&02f: OK Rob&rto Rob&rto: OK ^C
To enable cracklib
compile qmailadmin
as
--enable-cracklib=/usr/share/cracklib/pw_dict
qmailadmin
Please note that in the commands below you have to provide an autoreconf
, as the original configure.in
has been modified.
touch /var/log/qma-auth.log chgrp apache /var/log/qma-auth.log chmod g+w /var/log/qma-auth.log cd /usr/local/src wget https://notes.sagredo.eu/files/qmail/tar/qmailadmin-1.2.16.tar.gz wget https://notes.sagredo.eu/files/qmail/patches/qmailadmin/roberto-qmailadmin/roberto-qmailadmin-1.2.16.patch tar xzf qmailadmin-1.2.16.tar.gz cd qmailadmin-1.2.16 patch -p1 < ../roberto-qmailadmin-1.2.16.patch chown -R root:root . autoreconf -f -i QMAILROOT=/var/www/qmail ./configure \ --enable-htmldir=${QMAILROOT} \ --enable-cgibindir=${QMAILROOT}/cgi-bin \ --enable-cgipath=/cgi-bin/qmailadmin \ --enable-imagedir=${QMAILROOT}/qmailadmin/files \ --enable-imageurl=/qmailadmin/files \ --enable-htmllibdir=${QMAILROOT}/qmailadmin \ --enable-qmaildir=/var/qmail \ --enable-domain-autofill \ --enable-vpopuser=vpopmail \ --enable-vpopgroup=vchkpw \ --enable-autoresponder-path=/usr/local/bin \ --enable-ezmlmdir=/usr/local/bin/ezmlm \ --enable-modify-quota \ --disable-ezmlm-mysql \ --disable-trivial-password \ --disable-catchall \ --enable-cracklib=/usr/share/cracklib/pw_dict
Before compiling you may want to save the qmail logo png files into the "images" folder of your source directory:
wget -O images/favicon-16x16.png https://notes.sagredo.eu/files/qmail/patches/qmailadmin/skin/img/favicon-16x16.png wget -O images/favicon-32x32.png https://notes.sagredo.eu/files/qmail/patches/qmailadmin/skin/img/favicon-32x32.png wget -O images/logo.png https://notes.sagredo.eu/files/qmail/patches/qmailadmin/skin/img/logo.png wget -O images/logo_big.png https://notes.sagredo.eu/files/qmail/patches/qmailadmin/skin/img/logo_big.png
Then compile and install as usual:
make make install-strip
This installs qmailadmin
in /var/www/qmail
.
Define QMAILROOT /var/www/qmail Define LOGDIR /var/log/apache2 <VirtualHost *:443> ServerName mydomain.tld DocumentRoot ${QMAILROOT} ScriptAlias /cgi-bin/ ${QMAILROOT}/cgi-bin/ ErrorLog ${LOGDIR}/qmailadmin_error.log CustomLog ${LOGDIR}/qmailadmin_access.log common <Directory ${QMAILROOT}> Require all granted AllowOverride None </Directory> <Directory ${QMAILROOT}/cgi-bin> AllowOverride None Options ExecCGI Require all granted </Directory> </VirtualHost>
Now browse to https://mydomain.tld/cgi-bin/qmailadmin
and login as postmaster.
RBL and Bordermailer
March 20, 2023 09:31
RBL and Bordermailer
March 20, 2023 09:13
RBL and Bordermailer
March 18, 2023 15:52
Bug in dknewkey
March 18, 2023 11:35
What is qq_internal_bug_?
March 18, 2023 11:28
What is qq_internal_bug_?
March 18, 2023 11:08
What is qq_internal_bug_?
March 18, 2023 08:48
What is qq_internal_bug_?
March 18, 2023 08:08
What is qq_internal_bug_?
March 18, 2023 07:43
What is qq_internal_bug_?
March 18, 2023 04:37
Tags
apache clamav dkim dovecot ezmlm fail2ban hacks lamp letsencrypt linux linux-vserver lxc mariadb mediawiki mozilla mysql openboard owncloud patches php proftpd qmail qmail to postfix qmail-spp qmailadmin rbl roundcube rsync sieve simscan slackware solr spamassassin spf ssh ssl surbl tcprules tex ucspi-tcp vpopmail vqadmin
Comments
New cracklib version released: 2.9.8
Gabriel Torres September 10, 2022 17:25
Hi Roberto,
Just to let you know that the version 2.9.8 was released and you will need to update this page accordingly.
Cheers,
Gabriel.
Reply | Permalink
New cracklib version released: 2.9.8
Roberto Puzzanghera Gabriel Torres September 11, 2022 19:56
Thank you, updated.
Reply | Permalink
Missing suid and sgid
yasuo June 8, 2022 10:42
I've got file permission error after successful login. I had to suid/sgid /cgi-bin/qmailadmin so that qmailadmin binary can read/write /var/vpopmail/domain contents.
Reply | Permalink
Missing suid and sgid
Roberto Puzzanghera yasuo June 8, 2022 12:31
The suid/sgid /cgi-bin/qmailadmin permissions should be set at installation time for the vpopuser defined in your configure command. Check that --enable-vpopuser and --enable-vpopgroup match your vpopmail user/group
Reply | Permalink
Installing qmailadmin
Gabriel Torres April 9, 2022 02:57
Hi Roberto,
In the Installing qmailadmin section, the image URL parameter is misconfigured.
This line:
Should be:
Otherwise images won't show up.
I also recommend adding the line below to the configure part:
Catchall configuration is really bad for spam.
Cheers.
Reply | Permalink
Installing qmailadmin
Roberto Puzzanghera Gabriel Torres April 9, 2022 09:52
Hi Gabriel,
it works because I have
in the apache configuration. Actually this is not needed, so I'm going to cancel this alias.
PS I added --disable-catchall to the config
Reply | Permalink
configure: WARNING: unrecognized options: --enable-cracklib
Nic March 10, 2022 18:58
Hi Roberto,
I have patch qmailadmin with roberto-qmailadmin-1.2.16.patch but patched qmailadmin is not allowing me to enable cracklib.
Any advise please.
Thank you
Reply | Permalink
configure: WARNING: unrecognized options: --enable-cracklib
Roberto Puzzanghera Nic March 10, 2022 19:47
I think you forgot this before configuring
Reply | Permalink
configure: WARNING: unrecognized options: --enable-cracklib
Nic Roberto Puzzanghera March 11, 2022 04:43
Thank you!
Reply | Permalink
qmailadmin can create new users, but can it change .qmail files ?
Marco Varanda October 30, 2021 18:21
Hello Roberto.
Thank you, your tutorial is excellent !
So, I use CentOS 8 with roundcube, qmailadmin, and SPAM control with bash scripts filters inside .qmail files.
Usually, I created new users, with bash script, and vadduser (vpopmail), that I created default folders structures (Spam, Draft, etc)
This an exemple of my .qmail file for each user:
Can I create .qmail files, and Spam (and other folders) using qmailadmin "Create EmailAccount" ?
Running a bash script after creation (if exist)
Thanks
Reply | Permalink
qmailadmin can create new users, but can it change .qmail files ?
Roberto Puzzanghera Marco Varanda October 30, 2021 19:32
Hello Marco,
qmailadmin can't be of any help if you want to customize your .qmail files in that way. It can write into them just when you define a forwarder or an autorespoder.
Reply | Permalink
qmailadmin can create new users, but can it change .qmail files ?
Marco Varanda Roberto Puzzanghera October 31, 2021 01:14
There are more here !
https://www.mail-archive.com/qmailadmin@inter7.com/msg05527.html
https://github.com/qmail/qmailadmin/blob/master/qmailadmin/user.c (LINE 522 without pathes)
Reply | Permalink
qmailadmin can create new users, but can it change .qmail files ?
Marco Varanda Roberto Puzzanghera October 31, 2021 01:04
I found this, that we can run an script to create Spam, Draft, etc, and change .qmail
This page has 18 years old !
https://vchkpw.inter7.narkive.com/zhZCBC2R/auto-create-dir-for-spam-email#post2
qmailadmin ==> README.hooks
"Basically, it'll tell you to create a .qmailadmin-hooks file, what to
put in it and the various places you may want to place the file. Make
sure that .qmailadmin-hooks has the correct user and group ownership, too."
"I use it to call a bash script. It could probably also call"
/home/vpopmail/etc/.qmailadmin-hooks
Have you seen this before ?
Reply | Permalink
qmailadmin can create new users, but can it change .qmail files ?
Roberto Puzzanghera Marco Varanda October 31, 2021 10:30
No, I've never heard of qmailadmin hookes before... thanks for letting me know. I hope that this solves your needs :-)
Reply | Permalink
qmailadmin can create new users, but can it change .qmail files ?
Marco Varanda Roberto Puzzanghera December 12, 2021 13:38
Hello Roberto.
I must update some information here.
I finally did qmailadmin-hooks to works !
I'm using CentOS 8 and Apache runs with apache:apache user/group, but qmailadmin needs vpopmail:vchkpw to run.
I've tried to use suExec, and change user.c from original qmailadmin, but no success.
The best solution in this case, is start a second Apache instance, with user vpopmail:vchkpw (1st is running with apache:apache and serving webpages to customers)
Apache from CentOS 8 has a file /usr/share/doc/httpd/instance.conf informing how to run multiples instances. (it is quite easy to do this)
Usando o qmailadmin-hooks we can do some bash scripts to run, and create additional folders (Spam, Sent, Trash, etc) setting .qmail files and put SPAM filters there, and many other things that must happens together with an email account creation. (or deletion, or modifying). (see more in README.hooks, from original qmailadmin package)
Most Linux distributions run Apache with other user:group and never from vpopmail:vchkpw, making qmailadmin-hooks do not work properly (it can create/delete/change an account, but hooks never run because wrong permissions)
Thanks for your site !
Reply | Permalink
qmailadmin can create new users, but can it change .qmail files ?
Roberto Puzzanghera Marco Varanda December 12, 2021 14:52
Thank you, it's very much appreciated
Reply | Permalink
qmailadmin not working
Newb August 3, 2021 17:26
Hello,
i did as in tutorial, installed qmailadmin but it didnt show me any site from https://mail.zareckao.online/cgi-bin/qmailadmin
At the moment right now i changed the port from 443 to 80 in the apache virtualhost file to try HTTP and under the page it appears downloading the file
Reply | Permalink
qmailadmin not working
Roberto Puzzanghera Newb August 3, 2021 19:08
If it tries to download the file you should double check your cgi stuff
Reply | Permalink
qmailadmin not working
Roberto Puzzanghera Newb August 3, 2021 17:35
It could be an Apache or even a DNS issue.
can you post the result of
and the result of
I'm on an holiday trip and it will be difficult for me answering
Reply | Permalink
qmailadmin not working
Anonymous Roberto Puzzanghera August 3, 2021 17:45
Reply | Permalink
qmailadmin not working
Roberto Puzzanghera Anonymous August 3, 2021 18:40
Please do not post your comments twice. If I don't reply immediately it's because I can't :-)
Post your Apache config please
Reply | Permalink
qmailadmin not working
Anonymous Roberto Puzzanghera August 3, 2021 20:26
also here u got apache2.conf file
Reply | Permalink
qmailadmin not working
Roberto Puzzanghera Anonymous August 3, 2021 21:12
The apache2.conf is not important. You have to enable CGI moving the module config file into the modules-enabled dir, and eventually also some other config files
Reply | Permalink
qmailadmin not working
Newb Roberto Puzzanghera August 3, 2021 22:15
thanks, it worked :)
Reply | Permalink
qmailadmin not working
Anonymous Roberto Puzzanghera August 3, 2021 18:53
this is for port 80:
and this is for 443:
Reply | Permalink
Autoresponder & SpamAssasin are not working good togheder
Pablo Murillo March 8, 2021 18:18
Hi
Today I realized that qmailadmin autoresponder don't work in the right way when spamassassin is enable on limits via VpopMail
The FROM and SUBJECT are repited, and the autorespond messages is returned
If I disable SPAMASSASSIN from VPOPMAIL limits (mysql), autoresponders works perfect
Any idea ?
Reply | Permalink
Autoresponder & SpamAssasin are not working good togheder
Roberto Puzzanghera Pablo Murillo March 10, 2021 16:46
Do you mean that you have disable_spamassassin=1 in the limit table? Do you get this error in the smtp session or when creating the autoresponder via qmailadmin?
Reply | Permalink
libcrack.so.2: cannot open shared object file: No such file or directory
Thomas October 8, 2020 14:16
Hello!
If you downloaded the cracklib dictionary, then runing the command:
and you encounter the following error:
You should run `ldconfig` command and run the command again.
Reply | Permalink
libcrack.so.2: cannot open shared object file: No such file or directory
Roberto Puzzanghera Thomas October 8, 2020 16:16
thank you. Added the ldconfig command
Reply | Permalink
qmailadmin patch error
Tony Fung September 2, 2020 11:28
Hi Roberto
The following error occurred when applying the patch "roberto-qmailadmin-1.2.16_20200901.patch":
Please correct it.
Reply | Permalink
qmailadmin patch error
Roberto Puzzanghera Tony Fung September 2, 2020 14:26
Thank you. Corrected
Reply | Permalink
User can still enter "password" as password
Kris von Mach August 28, 2020 12:01
Cracklib patch works great and it can detect bad passwords, except if user uses password as password. It lets it through.
Reply | Permalink
User can still enter
Roberto Puzzanghera Kris von Mach August 28, 2020 12:16
It's rejecting "password" as password here...
Reply | Permalink
User can still enter
Kris von Mach Roberto Puzzanghera August 28, 2020 14:42
Hrm, that is strange then. It clearly is using cracklib to check, as I tried for example !7350r13r0 as password that's in cracklib-words-2.9.7 and got error "Bad password - it is based on a dictionary word." However if I use password, it creates the account with it successfully. Like as if it wasn't checking cracklib.
cracklib is correctly rejecting it.
Any ideas as to how I could trouble shoot this further?
Reply | Permalink
User can still enter
Roberto Puzzanghera Kris von Mach August 28, 2020 15:40
Unfortunately I've no idea at the moment
Reply | Permalink
Small fix to the tutorial
Gabriel Torres August 16, 2020 03:28
Should update this:
With this:
Reply | Permalink
Small fix to the tutorial
Roberto Puzzanghera Gabriel Torres August 16, 2020 09:48
Thank you. Corrected
Reply | Permalink
Differences between full patch and skin patch
Pablo Murillo August 11, 2020 19:34
Hi Roberto
I find a little difference in mailinglist.c
Lines :
Ful patch at the end of the last block
Skin patch same place
You can see that there are a lot of deleted lines (5)
Which is ok? Full or Skin?
Reply | Permalink
Differences between full patch and skin patch
Roberto Puzzanghera Pablo Murillo August 11, 2020 19:51
Hi Pablo, the skin patch is intended for vanilla qmailadmin. The full embeds a patch to make it ezmlm-idx-7 compliant, which is important, as you know. Therefore, it depends if you want to apply that patch by yourself or you want to use the full one.
In any case the full patch code is correct because already includes that fix
Reply | Permalink
Little correction to skin patch
Pablo Murillo August 9, 2020 22:32
HI !
Very nice work
You forgot the value for Rela Name in mod_user.html
Line 2425 add : value="##i7"
I don't know why I don't see the page just like your examples, something may be missing
Reply | Permalink
Little correction to skin patch
Roberto Puzzanghera Pablo Murillo August 10, 2020 13:48
Thank you, Pablo. Patch updated.
Concerning your problem, do you get any error in your browser inspector's console? Maybe a missing apache setting which prevents some element to be displayed?
Reply | Permalink
Little correction to skin patch
Pablo Murillo Roberto Puzzanghera August 10, 2020 18:37
I solved the problem with the different look
I forget to tell you that I'm using FreeBSD with ports
For every patch you made, I have a lot of ours to "translate" to "ports"
Ajajajajaja
I reallized that you are using a differente version of qmailadmin, the problem was in the CSS and I only used the style patch, not the full patch, and I found that in style patch there is a missing patch for Makefile.in to copy CSS
Reply | Permalink
Little correction to skin patch
Roberto Puzzanghera Pablo Murillo August 10, 2020 19:01
Sorry, I can't get what you mean concerning the translation problem. Can you clarify so that I can improve the documentation and avoid that others will have the same issue?
As far as the patch is concerned, I'm going to add a modification for Makefile.in in my patch as well. Thanks for the advice. Please provide any hint as you can to improve this guide for FreeBSD users.
Reply | Permalink
Little correction to skin patch
Pablo Murillo Roberto Puzzanghera August 10, 2020 20:27
Sorry, my english is not so good :D
For "translate" to "ports" I mean, convert your patch to a new one that works with FreeBSD ports collection
I can do everything "by hand", but I have to maintain a lot of server and it is more easy mainain everything with ports
For example :
qmailadmin in FreeBSD ports is on version 1.2.15 and include all the patchs you combined in your patch, so, I only used the style patch, but it don't work as is, I had to make some changes to make it work
And also, I have make a change (by hand) on the Makefile in the port
Reply | Permalink
Little correction to skin patch
Roberto Puzzanghera Pablo Murillo August 10, 2020 23:29
it would be great if you can share your FreeBSD patches once converted them. I could publish them together with my linux patches... I remember that other people here complained of not been able to compile and I can only guess that the more people will be using qmail for FreeBSD the more hints and material will come back to them, just like it happens for linux :)
Reply | Permalink
Little correction to skin patch
Pablo Murillo Roberto Puzzanghera August 11, 2020 00:01
I make patches and "manually" update the files needed in the port tree (Makefile and other files sometimes), is something not "easy"
Your patches work on FreeBSD when instaling every manually, but, using external patches on ports is not posible, the port must be modified to use it
Every time a port is update by the maintener, all the files in the port are overwriting
What I really need to do is to update the port "officially" , but I do some things, only for the way we build servers, so, what I make is not for everyone, I should do other patches to share, and really, I don't have the time :(
Reply | Permalink
/bin/bash: aclocal-1.15: command not found
Gabriel Torres May 24, 2020 19:57
In order to solve:
I had to run:
Before running the ./configure line.
Reply | Permalink
malformed patch?
Richard Chen October 31, 2019 01:50
I got this output:
This is on a centos 7.7 host. Can you confirm if the patch file is corrupted or not?
Thanks
Richard
Reply | Permalink
malformed patch?
Roberto Puzzanghera Richard Chen October 31, 2019 08:41
thanks for the advise. Corrected
Reply | Permalink
Autoresponder not working with patch for the password strenght
jmecherie September 13, 2019 18:46
With patch for password strenght applied autoresponse can't be set the error is: "The password must be at least 8 caracthers long!"
The password box is indeed empty because i don't want to change password I want to sent vacation auto response.
Reply | Permalink
Autoresponder not working with patch for the password strenght
Roberto Puzzanghera jmecherie September 13, 2019 18:53
Yes you are right, I will improve that patch when I'll find the time.
I created that patch to solve the big problem of the pwd strenght and didn't pay attention to autoresponder because I use sieve for the purpose and don't let users manage the account via qmailadmin.
In the meantime you can reverse the patch or type the pwd when setting autoresponse
Reply | Permalink
Autoresponder not working with patch for the password strenght
jmecherie Roberto Puzzanghera September 13, 2019 19:37
To bypas I added a new line to check if password is 0 lenght.
And thank you very much for your site.
Very helpful !
Reply | Permalink
Autoresponder not working with patch for the password strenght
Roberto Puzzanghera jmecherie September 13, 2019 21:40
you missed a double == here
btw I think that in this way you could set a blank pwd if you submit the form without setting the vacation.
Take a look at this new version of the patch
This what I changed with respect to the previous
There is a modification in mod_user.html as well
Reply | Permalink
compiler error 1.2.16
Loz January 7, 2019 12:48
I get compiler errors if I try to compile 1.2.16 with or without your patches -
user.c:173:11: error: unknown type name ‘storage_t’; did you mean ‘stack_t’?
Is there a working version of 1.2.16? I can manually fix this by copying over missing files from 1.12.15, but surely 1.2.16 should compile without errors out the box?
Reply | Permalink
compiler error 1.2.16
Roberto Puzzanghera Loz January 7, 2019 16:36
the compilation is ok with gcc-8.2 as well here
(the problem is qmail-tls, which is not compatible with openssl-1.1 :-(
Reply | Permalink
compiler error 1.2.16
Roberto Puzzanghera Loz January 7, 2019 16:13
which version of gcc? both versions work here (gcc-5.5)
Reply | Permalink
Blank screen after login to Qmailadmin
Lodex March 29, 2017 17:35
I have followed your guide and I am at the point of logging into Qmailadmin.
The page comes up perfectly but after entering postmaster, domain and password, it gives a blank screen.
I checked all the error logs and there are no entries pointing to a reason for this behaviour.
Using the following versions:
qmailadmin 1.2.16
vpopmail 5.4.33
Reply | Permalink
Blank screen after login to Qmailadmin
jmecherie Lodex September 13, 2019 18:17
When there is a blank screen after you put password on qmailadmin page, check permision for qm-auth.log file
It should be the permission of webserver. On debian/ubuntu usualy is www-data (not apache as in Roberto guide)
Reply | Permalink
did you check the syslog to
roberto puzzanghera Lodex March 31, 2017 09:20
did you check the syslog to look for a segfault? Anyway.. I would try to recompile qmailadmin
Reply | Permalink
Ezmlm-idx patch for qmailadmin
John August 5, 2016 21:10
The qmailadmin-1.2.16 with ezmlm-idx-7.2.2 needs a patch in order to manage the mailing lists. I had had to add this patch to my src directory then re-compile.
patch < ../mailinglist.c.ezmlm7.patch
I also use your qmailadmin-1.2.16-pwd-strenght.patch-2015.04.25 and qmailadmin-1.2.16-log.patch with this patch.
I am not sure if this is in your patch list Roberto. There are a few sources and I am not sure which one to post.
Thanks,
John D. Trolinger
Reply | Permalink
Thanks for the advise, John.
roberto puzzanghera John August 5, 2016 22:29
Thanks for the advise, John. I was not aware of this patch, but I found it in the qmailrocks site. Tomorrow I'm going to study the idea behind it and eventually I'll add it to my qmailadmin.
Can you report what kind of error you get when the patch is not applyed?
Reply | Permalink
Ezmlm-idx patch for qmailadmin
John Trolinger roberto puzzanghera August 6, 2016 02:15
Before the patch I had to use the command line to add moderators. Also I could not change settings for the various mailing lists.
This may not be typical; I had migrated from another server running older versions of qmailadmin and ezmlm.
Best Regards
Reply | Permalink
I added mailinglist.c.ezmlm7
roberto puzzanghera John Trolinger August 6, 2016 14:05
I added mailinglist.c.ezmlm7.patch to the patch list
Reply | Permalink
Password patch
nic January 31, 2016 11:30
Hi,
The password qmailadmin-1.2.16-pwd-strenght.patch-2015.04.25 patch does not work for me. I am able to use simple password like 1234.
Anyone also encounter this?
thanks
nic
Reply | Permalink
and you can open the js file
roberto puzzanghera nic January 31, 2016 11:47
and you can open the js file with your browser?
Reply | Permalink
Hi Roberto,
nic roberto puzzanghera January 31, 2016 12:46
Hi Roberto,
Sadly to say, i dont know the path to it even.
Sorry and thanks
nic
Reply | Permalink
Probably you installed the
roberto puzzanghera nic January 31, 2016 14:04
Probably you installed the pwd_strenght_chk.js file in the wrong path. Just navigate to the "add new user" page, right click to look at the html code and click over the javascript file. The file must be accessible by your web server.
Reply | Permalink
Hello,
nic roberto puzzanghera January 31, 2016 14:46
Hello,
The absolute path of add user
The path of the javascript
Cgi-bin path
Configuration
Can you help me to spot any mistake.
Many thanks again
nic
Reply | Permalink
It depends on your web server
roberto puzzanghera nic January 31, 2016 16:15
It depends on your web server configuration as well. Try to check if the webserver can access that file as suggested in my previous post
Reply | Permalink
Hi,
nic roberto puzzanghera January 31, 2016 19:30
Hi,
I can see the source.
But if i goto http://domain.com/cgi-bin/qmailadmin/html/pwd_strenght_chk.js i will just be directed to http://domain.com/cgi-bin/qmailadmin/
regards
nic
Reply | Permalink
Nic, your web server looks
roberto puzzanghera nic January 31, 2016 19:43
Nic, your web server looks for the script in this path http://domain.com/qmailadmin/html/pwd_strenght_chk.js. Note that the dir is different. Try again and if it fails double check your web server config as far the qmailadmin virtual domain is concerned and also that apache can actually access that file
Reply | Permalink
Thanks Roberto.
nic roberto puzzanghera January 31, 2016 20:15
Thanks Roberto.
All the functions in /html folder are working. I even edited the footer.html and it is also reflected in qmailadmin pages. I just don't know why the js file is not called.
sigh
nic
Reply | Permalink
perhaps you have javascript
roberto puzzanghera nic January 31, 2016 20:23
perhaps you have javascript disabled in your browser?
Reply | Permalink
Hello,
nic roberto puzzanghera January 31, 2016 20:43
Hello,
I had checked. javascript.enabled is true and i did a "Do i have java" on Java.com
Thanks for leading me this far. I think its up to myself to look for the broken link.
regards
nic
Reply | Permalink
Hi,
nic nic January 31, 2016 21:50
Hi,
I cannot find where is the broken link, or how it is broken. But i copy the js file into a public folder and edit the path of add_user.html, change_password.html and mod_user.html to URL of the new js file location.
All working now.
Thanks
nic
Reply | Permalink
I guess you have
roberto puzzanghera nic February 1, 2016 11:31
I guess you have some apache permissions problems.. try to browse to that js file with your browser and look at the error you get
Reply | Permalink
qmailadmin auth log
Tony May 27, 2015 07:47
Hi,
Thanks for your great works on this guide. I would like to share the patch for qmailadmin (1.2.16) in order to have auth logging. The patch shall log the failed login in qmailadmin login page. The patch as underneath:
It is required to created the log file /var/log/qma-auth.log initially. Then we can use the log in fail2ban with the underneath filter:
Hope the patch is helpful.
Tony
Reply | Permalink
Tony, I added your patch to
roberto puzzanghera Tony May 27, 2015 15:42
Tony, I added your patch to the present guide. Thanks a lot
Reply | Permalink
verrry much apreciated, as
roberto puzzanghera Tony May 27, 2015 13:21
verrry much appreciated, as this is one thing I was looking for. At the moment I have an apache authentication before the web page is displayed, just to record the failures in the apache log.
Reply | Permalink
Warning of using the login picture from qmailadmin
Marc February 25, 2015 10:20
Hello Roberto,
i want to warn you about the risks of using the login picture from qmailadmin. Seriously this is no joke and i couldn't believe it the first time but using qmailadmin with this picture (middleleft1.png ) had cost me a fine of several hundreds Euro. This has happened: A few weeks ago i've got a letter from the company Getty Images, that i'm using illegal the picture provided in the login form from qmailadmin. Getty Images says that they has the legal rights of this image an i didn't have a license to use the picture and i have to pay this amount of money as an compensation for violating the copy right of this picture and of course i have to remove the picture immediatelly. I googled this thing and found out that this is true and even the guys from inter7 are aware of this thing, that happend to other qmailadmin users too (see the full thread of this post: http://article.gmane.org/gmane.mail.qmail.admin/4804). I contacted a lawyer and he said that under german and EU copyright laws this is true and i violated the copy right because i have to make sure that when i publish on a website a picture i'm responsible to make sure that i don't violate any copyright rules, even when the picture is part of an open source software. Another lawyer told me that i can try to go against it but the uncertain of succes and the costs of an lawyer for this put me to the decision to pay the fine.
So be warned when using the picture and check the copyright laws of your country.
Cheers
Reply | Permalink
Thanks for the hint Mark. I'm
roberto puzzanghera Marc February 25, 2015 12:26
Thanks for the hint Mark. I'm going to write a note asap
I suppose that this is the reason why that image is not shown anymore in the latest version. I thought that it was a bug, but I think this is an explanation.
Reply | Permalink
qmailadmin set catchall blank screen
george September 19, 2014 18:08
Hi Roberto,
I'm trying to setup email server based on your blog on Centos 6.5 x64
I manage to get everything to work until Qmailadmin part, when i test the menu "Set catchall email deleted" "Set catchall bounced" and "Set remote catch all account" , the page just show blank screen, even when i refresh (F5) , other menu seems ok.
Do you have any hint about this problem ?
Thanks.
Reply | Permalink
qmailadmin-catchall fix
roberto puzzanghera george December 2, 2016 21:27
this issue is fixed (thanks to Luca Franceschini). Patch
Reply | Permalink
downgrading vpopmail solved qmailadmin's catch-all account break
roberto puzzanghera george October 3, 2014 18:42
Dear all,
after some testing I found out that it works when downgrading vpopmail to v. 5.4.32 and qmailadmin to 1.2.15.
I also noticed that the compilation of qmailadmin breaks when compiling 1.2.16 over vpopmail 5.4.32, or 1.2.15 over vpopmail 5.4.33.
Summarizing:
Reply | Permalink
Hi George, I have the same
roberto puzzanghera george September 19, 2014 18:17
Hi George,
I have the same issue here. It worked in the past. I think it could be a bug... let me know if you solve
Reply | Permalink
same issue: qmailadmin set catchall blank screen
Anonymous roberto puzzanghera October 3, 2014 08:14
it was working before, must be some upgrade to apache, php, bash(?), or who knows what broke this.
Reply | Permalink
surely it does not depend on
roberto puzzanghera Anonymous October 3, 2014 11:20
surely it does not depend on php because it's not written in php.
I would try to downgrade qmailadmin to see if it's broken only in the latest version
Reply | Permalink
Qmailadmin logging Invalid attempts
Boatner roberto puzzanghera February 18, 2015 00:53
Hi Roberto,
I cannot find where qmailadmin logs failed login attempts or failed change password attempts. I'd like to work with fail2ban to ban those who attempt too many logins.
Thank you,
Boatner
Reply | Permalink
Hi Boatner, I know. This is a
roberto puzzanghera Boatner February 18, 2015 13:02
Hi Boatner, I know. This is a problem. It doesn't log anything nor to /var/log/maillog nor to mysql
Reply | Permalink