Need help?

April 30, 2011 Roberto Puzzanghera9 comments

This short guide helped a number of people, also newbies in some case, 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, I can offer a consulting service.

Comments

DKIM on Qmail

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:

Hunk #2 FAILED at 18.
Hunk #3 FAILED at 42.
Hunk #4 FAILED at 63.
3 out of 4 hunks FAILED -- saving rejects to file dns.c.rej

Hunk #1 FAILED at 23.
Hunk #2 succeeded at 35 (offset -11 lines).
Hunk #3 succeeded at 83 (offset -11 lines).
Hunk #4 succeeded at 109 (offset -11 lines).
Hunk #5 succeeded at 129 (offset -11 lines).
1 out of 5 hunks FAILED -- saving rejects to file qmail.c.rej

Hunk #3 FAILED at 73.
Hunk #5 succeeded at 171 with fuzz 2.
1 out of 8 hunks FAILED -- saving rejects to file qmail-pop3d.c.rej

Hunk #3 FAILED at 66.
1 out of 4 hunks FAILED -- saving rejects to file qmail-popup.c.rej

I went ahead and ran make, and got this:

make
( cat warn-auto.sh; \
echo CC=\'`head -1 conf-cc`\'; \
echo LD=\'`head -1 conf-ld`\' \
) > auto-ccld.sh
cat auto-ccld.sh make-load.sh > make-load
chmod 755 make-load
cat auto-ccld.sh find-systype.sh > find-systype
chmod 755 find-systype
./find-systype > systype
( cat warn-auto.sh; ./make-load "`cat systype`" ) > load
chmod 755 load
cat auto-ccld.sh make-compile.sh > make-compile
chmod 755 make-compile
( cat warn-auto.sh; ./make-compile "`cat systype`" ) > \
compile
chmod 755 compile
( ( ./compile tryvfork.c && ./load tryvfork ) >/dev/null \
2>&1 \
&& cat fork.h2 || cat fork.h1 ) > fork.h
rm -f tryvfork.o tryvfork
./compile qmail-local.c
./compile qmail.c
qmail.c: In function ‘qmail_open’:
qmail.c:38:13: error: ‘pic’ undeclared (first use in this function)
qq->fdc = pic[0]; close(pic[1]);
^
qmail.c:38:13: note: each undeclared identifier is reported only once for each function it appears in
make: *** [qmail.o] Error 1

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

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

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

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

Hi, I suppose you are inserting that line in your .qmail files... what error do you get?

Reply | Permalink

Adding qmail to supervisord

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:

----

018-05-26 15:31:09,785 INFO exited: qmail-pop3d (exit status 126; not expected) 2018-05-26 15:31:09,786 INFO exited: tcpserver-smtpd (exit status 111; not expected) 2018-05-26 15:31:09,787 INFO exited: qmail-smtpd (exit status 126; not expected)

--

I am getting this for al except svscan and svscanboot.

Reply | Permalink

Adding qmail to supervisord

Sorry, I'm not familiar with supervisord

Reply | Permalink

mail not delivered in mailbox follow up

after looking in my send log i see failure:

Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/ 

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

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