All you should have to do is move qmail-remote (original) back to qmail-remote

What's in /var/qmail/bin


# ls -l  /var/qmail/bin


If there is a symbolic link to qmail-remote (unlink qmail-remote).

do you have qmail-remote.orig ???????


On 4/7/2024 9:47 AM, Biju Jose wrote:
How do I reverse  steps 11 and 12?

 1. DKIM verification (no patch):
     1. Assumes 'QMAILQUEUE="/var/qmail/bin/simscan"' defined in
        /etc/tcprules.d/tcp.smtp
        && /var/qmail/bin/qmail-queue is a link.
        Note: Spamassassin has DKIM verification making this unnecessary.
         1. # qmailctl stop
         2. Add 'export DKVERIFY=1' to /var/qmail/supervise/smtp/run
         3. Increase softlimit to 128000000 in
            /var/qmail/supervise/smtp/run
         4. # cd /var/qmail/bin
         5. # wget http://www.qmailtoaster.org/dkimverify.pl
         6. # wget http://www.qmailtoaster.org/qmail-queue.pl.sh
         7. # chown root:root dkimverify.pl
         8. # chown qmailq:qmail qmail-queue.pl.sh
         9. # chmod 755 dkimverify.pl
        10. # chmod 4777 qmail-queue.pl.sh
        11. # unlink qmail-queue
        12. # ln -s qmail-queue.pl.sh qmail-queue
        13. # qmailctl start
        14. Send email to user on the host
        15. Check email header dkim verification



------------------------------------------------------------------------
*From:* Biju Jose <bijuko...@outlook.com>
*Sent:* 07 April 2024 21:14
*To:* qmailtoaster-list@qmailtoaster.com <qmailtoaster-list@qmailtoaster.com>
*Subject:* Re: [qmailtoaster] Re: I messed up DKIM setup
the qmail-remote.orig file I have is 52,056 bytes root:qmail -rwx—x—x

This is not working. Can I get the file please ?
------------------------------------------------------------------------
*From:* Eric Broch <ebr...@whitehorsetc.com>
*Sent:* 07 April 2024 21:01
*To:* qmailtoaster-list@qmailtoaster.com <qmailtoaster-list@qmailtoaster.com>
*Subject:* Re: [qmailtoaster] Re: I messed up DKIM setup

Then


mv /var/qmail/bin/qmail-remote.orig /var/qmail/bin/qmail-remote


check permissions


-rwx--x--x 1 root qmail 69864 Mar 30  2022 /var/qmail/bin/qmail-remote



On 4/7/2024 9:18 AM, Biju Jose wrote:
 qmailctl queue
messages in queue: 937
messages in queue but not yet preprocessed: 935
7 Apr 2024 13:15:35 GMT  #269010074  45155 <b...@home-trendz.in> <mailto:b...@home-trendz.in>  bouncing 7 Apr 2024 13:16:12 GMT  #269010075  63818 <b...@whitesindia.com> <mailto:b...@whitesindia.com>  bouncing

Priority is to bring it back to send and receive state, DKIM can be setup next weekend.
------------------------------------------------------------------------
*From:* Eric Broch <ebr...@whitehorsetc.com> <mailto:ebr...@whitehorsetc.com>
*Sent:* 07 April 2024 20:46
*To:* qmailtoaster-list@qmailtoaster.com <mailto:qmailtoaster-list@qmailtoaster.com> <qmailtoaster-list@qmailtoaster.com> <mailto:qmailtoaster-list@qmailtoaster.com>
*Subject:* Re: [qmailtoaster] Re: I messed up DKIM setup

And while your at it, can you check the queue?

#qmailctl queue


I might ask, do you want to debug this now, or do you want mail to start flowing again?


On 4/7/2024 9:14 AM, Eric Broch wrote:


That won't work because you'll have


#my $debugfile  = undef;

my $debugfile    = '/tmp/dkim.debug';
.
.
. (A bunch of code)
.
.
my $debugfile  = undef;

remove what you've put in that file.

Find the line
my $debugfile  = undef;

comment it

#my $debugfile  = undef;

create an new line under it

my $debugfile    = '/tmp/dkim.debug';

save the file



On 4/7/2024 9:01 AM, Biju Jose wrote:
I added this to the top of qmail-remote
#my $debugfile  = undef;
my $debugfile    = '/tmp/dkim.debug';

Tried send/receive, but nothing in  cat /tmp/dkim.debug
------------------------------------------------------------------------
*From:* Eric Broch <ebr...@whitehorsetc.com> <mailto:ebr...@whitehorsetc.com>
*Sent:* 07 April 2024 20:06
*To:* qmailtoaster-list@qmailtoaster.com <mailto:qmailtoaster-list@qmailtoaster.com> <qmailtoaster-list@qmailtoaster.com> <mailto:qmailtoaster-list@qmailtoaster.com>
*Subject:* Re: [qmailtoaster] Re: I messed up DKIM setup

Change qmail-remote to look like this


#my $debugfile  = undef;
my $debugfile    = '/tmp/dkim.debug';


send an email


cat /tmp/dkim.debug


post output.



On 4/7/2024 8:31 AM, Biju Jose wrote:
@400000006612abd814cc842c warning: trouble injecting bounce message, will try later @400000006612abd814d79434 warning: trouble injecting bounce message, will try later @400000006612ac5419dfcd5c warning: trouble injecting bounce message, will try later @400000006612ac5419eda83c warning: trouble injecting bounce message, will try later @400000006612acd01e97e2e4 warning: trouble injecting bounce message, will try later @400000006612acd01ea413fc warning: trouble injecting bounce message, will try later @400000006612ad4c21f3b044 warning: trouble injecting bounce message, will try later @400000006612ad4c2202a07c warning: trouble injecting bounce message, will try later @400000006612adc825609c74 warning: trouble injecting bounce message, will try later @400000006612adc8256ce114 warning: trouble injecting bounce message, will try later
------------------------------------------------------------------------
*From:* Eric Broch <ebr...@whitehorsetc.com> <mailto:ebr...@whitehorsetc.com>
*Sent:* 07 April 2024 19:59
*To:* qmailtoaster-list@qmailtoaster.com <mailto:qmailtoaster-list@qmailtoaster.com> <qmailtoaster-list@qmailtoaster.com> <mailto:qmailtoaster-list@qmailtoaster.com>
*Subject:* Re: [qmailtoaster] Re: I messed up DKIM setup

Is there anything in /var/log/qmail/send/current log?


On 4/7/2024 8:27 AM, Biju Jose wrote:
The guide was at http://www.qmailtoaster.com/dkim.html <http://www.qmailtoaster.com/dkim.html>
------------------------------------------------------------------------
*From:* Biju Jose <bijuko...@outlook.com> <mailto:bijuko...@outlook.com>
*Sent:* 07 April 2024 19:56
*To:* qmailtoaster-list@qmailtoaster.com <mailto:qmailtoaster-list@qmailtoaster.com> <qmailtoaster-list@qmailtoaster.com> <mailto:qmailtoaster-list@qmailtoaster.com>
*Subject:* [qmailtoaster] I messed up DKIM setup
Hi,

I need some urgent help.

I messed up a qmail server running on centos 7

I was trying to setup DKIM using this guide. But somewhere I made a mistake and now emails are not going out. Request help to solve the issue.

Thanks
Biju Jose

Reply via email to