Page 1 of 1

Openemm + DKIM + bounce managment

Posted: Sat Mar 01, 2014 4:50 pm
by santha@openemm

Did someone manage to make openemm2013 ( centos 6 ) work with DKIM and bounce managment?

I so already the following solutions ( which didnt work for me )
2. ... y-signing/


Re: Openemm + DKIM + bounce managment

Posted: Thu Mar 27, 2014 5:34 pm
by Fatalin

Yes, we have OpenEMM 2013 + DKIM on Gento running.

We used an external contractor via oDesk to do the job.

He had implemented separate mailing-qeues (slow/mid/fast) and signed the mails outside OpenEMM.

Best Regards

Re: Openemm + DKIM + bounce managment

Posted: Sun Apr 20, 2014 1:27 pm
by jim_frey
I just did a new install and got DKIM working with the bounce management. After trying many things, eventually I found an old forum post that helped.

Turn off sendmail in OpenEMM (which I think is some type of Python config of sendmail, it doesn't seem to follow the regular config/milters set up on sendmail) --

Tell OpenEMM to relay everything through the regular config of sendmail --
echo "" > /home/openemm/conf/smart-relay

Install the DKIM package for sendmail
(I used the older DKIM-milter package, and it's working fine. I haven't tried the newer OpenDKIM yet.)
Change your DNS record to add in the DKIM info, mine looks like this - 3600 TXT k=rsa; t=s; p=your_public_key
While you're changing your DNS, you might as well add in the SPF stuff too. 300 TXT v=spf1 a include:yourIPnumber ~all
I found it easiest to test the sendmail config by just sending test emails from the command prompt via sendmail.

You'll want to change the unsubscribe link that is generated in the mail header now via Open up and edit this file -
I just made a form called "removequestion" in openemm for unsubscribing (which is actually set up as subscribing with a zero value, not unsubscribing)
The form removequestion looks like this
<form action="" method="post">
<input type="hidden" name="agnCI" value="1">
<input type="hidden" name="agnFN" value="removedone">
<input type="hidden" value="2" name="agnMAILINGLIST">
<input type="hidden" value="0" name="agnSUBSCRIBE">
Email address to remove: <input type="text" value="$!" name="EMAIL" size="30">
<input type="submit" value="Remove">
Then the form "removedone" takes a single action of "subscribe" with the success form saying "You have been removed"
Now you can set up that unsubscribe link in /home/openemm/conf/semu/semu.cfg

Code: Select all

Once you get sendmail signing DKIM correctly, start OpenEMM back up and you should be good :mrgreen:

EDIT: I've read about people having problems with the bounce management after doing this, but my bounce management seems to be working fine. I've got my bounce filter to simply forward all incoming emails to another email address at another domain. OpenEMM first filters the bounces, then it forwards real emails to my other email address. OpenEMM is catching and logging all types of soft and hard bounces, working great.

Re: Openemm + DKIM + bounce managment

Posted: Fri May 30, 2014 9:43 am
by odie1213
jim_frey I have a problem with openemm-2013 and OpenDkim I don't get the could signing with the dkim, could you help me.? I Follow all your steps but it still not working.

Re: Openemm + DKIM + bounce managment

Posted: Wed Aug 05, 2015 10:57 pm
by jim_frey
odie - sorry I missed your post above. I just upgraded to 2015 R2 and had to look up these instructions because the DKIM wasn't working after the upgrade. It's working now, pretty easy. Have you been able to send an DKIM email via sendmail on its own without OpenEMM? The version of sendmail that comes with OpenEMM is different than the one that's usually already on the server. If you can get the version of sendmail that's on the server to send the DKIM email, then as I instruct above you just re-route OpenEMM to send email though it.

Re: Openemm + DKIM + bounce managment

Posted: Mon Sep 14, 2015 8:59 am
by noetik
Hi jim_frey,
i'm also using OpenEMM2015 R2 (self compiled).

sending newsletter works fine no errors in the logs, bounce management also fine.
But in order to get the Mails DKIM signed i followed your hint in this forum to
disable openemm's sendmail:
create a relay file:
echo "" > /home/openemm/conf/smart-relay

and relay all mails through the os's default sendmail.
The problem is since i disabled openemm's sendmail the synchronous bounce management doesn't work anymore. As far i know the sync bounce management just reads the mail.log and parse it back to openemm. I wonder why this step doesn't seem to work anymore.
I wonder what do adapted to get it working again, after relaying ?

I just got the following in the logs: But this doesn't seem to be processed correctly:

to=<>, delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=124447, [], dsn=5.1.1, stat=User unknown
to=<>, delay=00:00:01, mailer=local, pri=124447, dsn=5.1.1, stat=User unknown
t9AHS0F5024934: postmaster notify: User unknown
Saved message in /var/lib/sendmail/dead.letter

Thanks in adavance!