Openemm + DKIM + bounce managment

Use this forum for questions regarding installation, upgrading and configuration of OpenEMM

Moderator: moderator

santha@openemm
Posts: 2
Joined: Tue Feb 25, 2014 12:47 pm

Openemm + DKIM + bounce managment

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

Hi,

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 )
1. https://forum.openemm.org/post3773.html#p3773
2. http://www.bridgeinfomatics.com/2011/10 ... y-signing/

Thanks

Fatalin
Posts: 111
Joined: Wed Aug 05, 2009 10:51 am
Location: Troisdorf, Germany
Contact:

Re: Openemm + DKIM + bounce managment

Post by Fatalin » Thu Mar 27, 2014 5:34 pm

Hi,

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
Markus
Günstige Software gibt es bei http://www.Software-Butler.de

jim_frey
Posts: 129
Joined: Wed Nov 29, 2006 11:32 pm
Location: Middle Caicos, Turks and Caicos Islands
Contact:

Re: Openemm + DKIM + bounce managment

Post by jim_frey » Sun Apr 20, 2014 1:27 pm

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) --
/home/openemm/bin/sendmail-disable.sh

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

Install the DKIM package for sendmail http://www.sendmail.com/sm/open_source/dkim/
(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 -
yourmailsubdomain._domainkey.yourdomain.com 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.
yourmailsubdomain.yourdomain.com 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 semu.py. Open up and edit this file -
/home/openemm/conf/semu/semu.cfg
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="form.do" 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="$!requestParameters.email" name="EMAIL" size="30">
<input type="submit" value="Remove">
</form>
--------------------
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

uri: http://www.yourdomain.com/form.do?agnCI=1&agnFN=removequestion&agnMAILINGLIST=2&agnSUBSCRIBE=0&email=%(urlrecv)s
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.
OpenEMM Moderator

odie1213
Posts: 1
Joined: Fri May 30, 2014 9:39 am

Re: Openemm + DKIM + bounce managment

Post by odie1213 » Fri May 30, 2014 9:43 am

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.

jim_frey
Posts: 129
Joined: Wed Nov 29, 2006 11:32 pm
Location: Middle Caicos, Turks and Caicos Islands
Contact:

Re: Openemm + DKIM + bounce managment

Post by jim_frey » Wed Aug 05, 2015 10:57 pm

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.
OpenEMM Moderator

noetik
Posts: 3
Joined: Wed Sep 09, 2015 6:48 pm
Location: Munich

Re: Openemm + DKIM + bounce managment

Post by noetik » Mon Sep 14, 2015 8:59 am

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:
/home/openemm/bin/sendmail-disable.sh
create a relay file:
echo "127.0.0.1" > /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=<invaliduser@valid-domain.com>, delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=124447, relay=mail.valid-domain.com. [88.7.168.101], dsn=5.1.1, stat=User unknown
to=<mailer@news.openemm.com>, 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!

Post Reply