This short guide helped a number of people, also newbies in some cases, to successfully install a mail server based on qmail
.
In case the informations published here are not sufficiently clear and exhaustive, if you want to address me a comment, an hint or a criticism, don't hesitate to post a comment or to contact me via email!
Anyway, if you don't want to take the trouble to read all the documentation and do it by yourself, because you don't have the time, or you need help concerning the qmail world or even if you want to migrate qmail
/vpopmail
to postfix
and you don't know how to do it, I can offer a consulting service.
How to contribute to the project
Days ago a qmail
guru wrote to me appreciating my contribution for <<keeping the spirit of qmail
high>>. Besides having given me particular pleasure, I think it is a good slogan of what this space has become over the years, above all thanks to your contribution.
In addition to contributing in terms of testing, bug fixing and sharing your code, if you care about the project and want to preserve it, you can use the donate button below to reduce the maintenance costs of my server, which doesn't host any commercial product.
If you have a server available, I am also looking for a partnership to exchange the secondary DNS service.
Comments
delivery xx: success: client_connect:_connect_failed:_2/ did_0+0+1/
Nicolas PEYRESAUBES December 28, 2023 13:56 CET
Hello,
Old qmail user I'm getting stuck on an issue I've never seen before.
Since last night I'm getting empty mail just with header and in qmail/current I get the following error
For information this just happen for incoming mails (the ones generated locally are correctly delivered.
I tried to recompile vpopmail and qmail with latests releases, regenerating the keys but nothing resolve the issue .. .
Has anybody encountered this kind of issue ?
Regards
Nicolas
Reply | Permalink
delivery xx: success: client_connect:_connect_failed:_2/ did_0+0+1/
Roberto Puzzanghera Nicolas PEYRESAUBES December 28, 2023 16:07 CET
Hello,
which qmail and vpopmail are using? which vpopmail driver? which delivery agent and which driver to connect to vpopmail?
Reply | Permalink
delivery xx: success: client_connect:_connect_failed:_2/ did_0+0+1/
Anonymous Roberto Puzzanghera December 29, 2023 23:46 CET
Hello I continue looking around and I found that spamassassin was the root cause of my issue ... when I set it to no in simscan, it's okay when set to yes I have my issue ...
what misled me is that usually when having issue in simscan chain ... I have no mail at all, but there getting empty ones. I need to review all spamassassin install ...
Reply | Permalink
Still not email incomming and Submission issue
Kenneth Haas August 21, 2023 17:45 CET
Hello Roberto,
Love your configuration of qmail as I have used used it serveral times to correct issues.
I am still havning issue with the SMTP not delivering MAIL and the 587 Not reading config files.
Have looked through all the information on you web site and nothing.
Here is the SMTP log inforamtion .
Here is the Submission Log
Any hints would be fantastic as I have been unable to get mail for over a week now.
Reply | Permalink
Still not email incomming and Submission issue
Roberto Puzzanghera Kenneth Haas August 21, 2023 18:47 CET
Can you show also the qmail send? Are you using dovecot LDA? If yes post LDA log as well
Reply | Permalink
Still not email incomming and Submission issue
Roberto Puzzanghera Kenneth Haas August 21, 2023 17:59 CET
Can you do an strace with submission service and send it via mail?
Reply | Permalink
tcp.submission is not able to be read
Kenneth Haas August 18, 2023 19:27 CET
Hello
Just had qmail stop recognizing the postgresql 7.4 database so I rebuilt it to use version 11 of postgresql. The Dovecot reads the database and many of the vadddomain and vdominfo all pull from the database and it is able to do many thing ( are issues with missing tables but that is another issue)
Have netqmail-1.06 and vpopmail 5.4.33 and have applies your patches as per the instructions on the website.
I am able to get to the mail server and see the mail but the system rejects all emails that are in the database.
when I attempt to telnet into the 587 port i get error 421 unable to read control files which I have narrowed down to the tcp.sumbission file. it is setup with your configuration and it just fails.
Since this is failing to execute the file I am assuming the incomming mail is also unable to read the tcp.smtp.cdb file which is why the may is not being found.
Any suggestions or direction would be greatly appreciated as I have built this many times and have been down for a week.
Thanks
Kenneth
Reply | Permalink
tcp.submission is not able to be read
Roberto Puzzanghera Kenneth Haas August 18, 2023 20:57 CET
I'm out of home now and cannot do researches. I would try to see what it cannot find with strace.
Have a look here
https://notes.sagredo.eu/en/qmail-notes-185/testing-qmail-smtp-and-auth-22.html#comment2874
Just guessing: did you enable qmail-spp and forgot to create the smtpplugins file?
Reply | Permalink
how to install DKIM ?
ted2525 June 16, 2023 19:40 CET
Hello, Roberto.
I want to install DKIM to my server.
But I can't it.
after try
but "dknewkey: command not found".
I find "The dknewkey shipped by the dkim patch itself" in your instructions.
How to install function of "libdomainkeys" ?
Reply | Permalink
how to install DKIM ?
Roberto Puzzanghera ted2525 June 16, 2023 23:20 CET
Hi, assuming that you are using the latest patch, did you get any error during the patch and compilation process?
Reply | Permalink
how to install DKIM ?
ted2525 Roberto Puzzanghera June 17, 2023 04:52 CET
Hello, Roberto. thank you for reply.
I resolve this problem, its bigenners mistake.
I can do it using this command ”/var/qmail/bin/dknewkey",.
I make new path # export PATH="$PATH:/var/qmail/bin".
Now I can use command "# dknewkey ~ ".
My environment is AlmaLinux release 8.7.
Thank you.
Reply | Permalink
qmail-smtpd: read failed (hang up before quit cmd)
blueintheface March 8, 2021 11:53 CET
I get hundrets of errors like in the subject:
One of the checks is to ask qmail server xxx.xxx.xxx.xxx via smtp if the mailbox (here: user@localdomain.com) exists, and if so and all checks are passed, the mail is delivered to qmail via smtp.
So, whats in the log is the communication between UTM (yyy.yyy.yyy.yyy) and qmail (xxx.xxx.xxx.xxx)
There are a lot of lines with "read failed" in the send-log and the mail isn't delivered to the mailbox. I searched the net for this error, but can't find anything.
I'm running other qmail-servers (rather old ones, based on Bill's Linux Qmail Toaster v 0.9.4), there are no such problems; communication between UTM and qmailservers is the same for all servers.
Any idea?
Reply | Permalink
qmail-smtpd: read failed (hang up before quit cmd)
Roberto Puzzanghera blueintheface March 8, 2021 18:32 CET
Times ago I did a check and realized that messages from these IPs are regularly delivered. I think they violate the smtp protocol in some way (they close the connection before the final quit).
I don't think this is an error of your MTA and it wouldn't even logged in vanilla qmail
Reply | Permalink
bounce queue too long
charles October 2, 2019 03:24 CET
I got this bounce:
any idea?
Reply | Permalink
bounce queue too long
Roberto Puzzanghera charles October 3, 2019 14:36 CET
DNS records are wrong or not set up correctly or inaccessible, or your server is trying to retrieve ANY dns records, which produces a very large response from the DNS that may overflow your response buffer. In this case the any-to-cname patch would help. Are you using my combined patch?
Reply | Permalink
DKIM on Qmail
Thorpe Mayes November 15, 2018 19:40 CET
Hi,
I have qmail running on CentOS 7.x. It was installed per Life With Qmail. It is working fine.
I need to add DKIM.
I assumed that I could simply add the dkim-netqmail-1.06 patch on top of the patches I initially added (qmail-1.03.errno.patch
qmail-1.03.qmail_local.patch
qmail-0.0.0.0.patch
qmail-1.03.qmtpd-netstring.patch
qmail-103.patch)
When I did that I got the following errors:
I went ahead and ran make, and got this:
Clearly I am not doing something correctly. Do I need to simply start over? Eliminate one or more of the other patches? Something else?
I am grateful for any ideas.
Thorpe
Reply | Permalink
DKIM on Qmail
Roberto Puzzanghera Thorpe Mayes November 17, 2018 10:54 CET
Hi, the DKIM patch is intended to be applied over a fresh netqmail. In this case, before compiling, you have to open those .rej files, look what went wrong during the patch process and then manually correct the source.
Edit: Perhaps it could be easier to apply DKIM firstly, and then add all the other extra patches not included already in netqmail
Reply | Permalink
DKIM on Qmail
Thorpe Mayes Roberto Puzzanghera November 20, 2018 15:24 CET
Hi Roberto,
Thank you for the reply and insights.
I have DKIM working, which turned out to be simpler than I was making it.
Thank you.
Thorpe
Reply | Permalink
Qmail Alias
Tim September 11, 2018 09:50 CET
Hello,
i installed qmail with your tutorial and everything ist working fine exept of the aliases.
I want that when i write an Email to an adress that qmail triggers a script which i run with an command in the alias:
|/path/to/the/script/script.sh&
But that doesn't work. Can you help me?
kind regards
Tim
Reply | Permalink
Qmail Alias
Roberto Puzzanghera Tim September 11, 2018 10:13 CET
Hi, I suppose you are inserting that line in your .qmail files... what error do you get?
Reply | Permalink
Adding qmail to supervisord
Jitender May 28, 2018 00:30 CET
Hi,
I am trying to dockerize qmail.
Installling daemontools kills the container(send sig hup 1 which kills init script) + it tries to change innittab. I tried commenting out that part. Compiled qmail and related services + patch. But. now I am having issue adding this to supervirsord.I tried adding all running services related to qmail from a working installation but looks I am doing this wrong:
----
--
I am getting this for al except svscan and svscanboot.
Reply | Permalink
Adding qmail to supervisord
Roberto Puzzanghera Jitender May 28, 2018 13:19 CET
Sorry, I'm not familiar with supervisord
Reply | Permalink
mail not delivered in mailbox follow up
Ed Vrijmoet November 11, 2017 00:30 CET
after looking in my send log i see failure:
but the mailbox is there.
it looks like it can not find my mailbox what could be wrong in the configuration.
Reply | Permalink
mail not delivered in mailbox follow up
Roberto Puzzanghera Ed Vrijmoet November 11, 2017 13:19 CET
Hi, you should provide more details... at least the complete qmail-send log
Are you strictly following my guide? Which lda are you using? dovecot or vpopmail?
And since I received a lot of messages about the missing log@domain mailbox, sorry if I ask, but are you sure that the missing mailbox is the recipient and not the log@yourdomain?
Reply | Permalink