Windows, no Sendmail, hard bounces

Use this forum for all questions related to bounce management of OpenEMM

Moderator: moderator

manamop
Posts: 4
Joined: Wed Sep 03, 2014 7:59 am

Windows, no Sendmail, hard bounces

Post by manamop »

Hi, I am trying to install/configure OpenEMM for a couple of days now and I am quite stuck at this moment. Everything seems to work except for bouncing.

I don't have hard bounces working, so I have not even tried soft bounces yet.

Could you please help?


My current situation is this:

OS: Windows Server 2012 R2
What works:
  • * Apache
  • * Tomcat
  • * Apache->Tomcat redirect
  • * MySQL
  • * OpenEMM admin interface (I can crete recipients, I can create mailings)
  • * smart relay (when I send mailing, it will contact our SMTP server and successfully deliver the email if the target address is valid)
  • * mailer daemon emails are successfully redirected to SEMU

What does not work:
  • * in Mailing -> Statistics, I can see 0 bounces although I have 3 recipients - 1 is OK, 1 is testing member that should hard bounce, 1 is normal member that should hard bounce


As for "mailer daemon emails are successfully redirected to SEMU" - this works for me since I have manually redirected all mails to ext_1@em.mydomain.com. Previous attempts to use bav.conf-local alias failed (error message like "invalid target recipient"). So now, when my mail server is about to create mailer-daemon message, it sends it directly to ext_1@em.mydomain.com. However, bounces are not counted.

However, var/spool/filter now contains this new file "unspec-1", which contains all bounced messages from our relay SMTP server.

In OpenEmm/var/log I can see log from SEMU and the relevant part (time window of my mailing) looks like this:

Code: Select all

[03.09.2014  08:30:59] 2368 DEBUG/ADMIN: Found 0 files in queue
[03.09.2014  08:31:30] 2368 DEBUG/ADMIN: Found 0 files in queue
[03.09.2014  08:31:32] 2368 DEBUG/QUEUE: Found 6 files in queue
[03.09.2014  08:31:32] 2368 DEBUG/00000900000000001: New entry C:\OpenEMM\var\spool\QUEUE\qf00000900000000001 for Mailing 9 and Customer 1
[03.09.2014  08:31:32] 2368 DEBUG/00000900000000001: Entry is ready to send, current trycount is 1
[03.09.2014  08:31:32] 2368 DEBUG/00000900000000002: New entry C:\OpenEMM\var\spool\QUEUE\qf00000900000000002 for Mailing 9 and Customer 2
[03.09.2014  08:31:32] 2368 DEBUG/00000900000000002: Entry is ready to send, current trycount is 1
[03.09.2014  08:31:32] 2368 DEBUG/00000900000000003: New entry C:\OpenEMM\var\spool\QUEUE\qf00000900000000003 for Mailing 9 and Customer 3
[03.09.2014  08:31:32] 2368 DEBUG/00000900000000003: Entry is ready to send, current trycount is 1
[03.09.2014  08:31:32] 2368 INFO/00000900000000001: Successful 250: Message send via localhost
[03.09.2014  08:31:32] 2368 INFO/00000900000000003: Successful 250: Message send via localhost
[03.09.2014  08:31:32] 2368 INFO/sent: 00000900000000001: dsn=2.5.0, from=<em@em.mydomain.com>, relay=localhost, to=<okmailhere@gmail.com>, stat=Sent (Message send via localhost)
[03.09.2014  08:31:32] 2368 INFO/sent: 00000900000000003: dsn=2.5.0, from=<em@em.mydomain.com>, relay=localhost, to=<dfauierughuaerghuiraehg@gmail.com>, stat=Sent (Message send via localhost)
[03.09.2014  08:31:32] 2368 DEBUG/rule: Unable to open C:\OpenEMM\conf\bav\bav_1.rule (2, 'No such file or directory')
[03.09.2014  08:31:32] 2368 DEBUG/rule: Reading rules from C:\OpenEMM\conf\bav\bav.rule
[03.09.2014  08:31:32] 2368 VERBOSE/dsn: Found DSN 5.1.1 / Text "http://support.google.com/mail/bin/answer.py?answer=6596 m5si1146411wiw.91 - gsmtp" in body: Error Type: SMTP   Remote server (173.194.65.26) issued an error.   hMailServer sent: RCPT TO:<dfauierughuaerghuiraehg@gmail.com>   Remote server replied: 550 5.1.1 http://support.google.com/mail/bin/answer.py?answer=6596 m5si1146411wiw.91 - gsmtp
[03.09.2014  08:31:32] 2368 INFO/uid: UID 20140903082919-1.1.9.3.0.mqacgrnq8a valid
[03.09.2014  08:31:32] 2368 INFO/scanid: Found new uid in body: Message-ID: <20140903082919-1.1.9.3.0.mqacgrnq8a@openemm.invalid> 
[03.09.2014  08:31:33] 2368 INFO/00000900000000002: Successful 250: Message send via localhost
[03.09.2014  08:31:33] 2368 INFO/sent: 00000900000000002: dsn=2.5.0, from=<em@em.mydomain.com>, relay=localhost, to=<fff@gmail.com>, stat=Sent (Message send via localhost)
[03.09.2014  08:31:33] 2368 VERBOSE/dsn: Found DSN 5.1.1 / Text "http://support.google.com/mail/bin/answer.py?answer=6596 x3si1148706wiw.85 - gsmtp" in body: Error Type: SMTP   Remote server (173.194.65.26) issued an error.   hMailServer sent: RCPT TO:<fff@gmail.com>   Remote server replied: 550 5.1.1 http://support.google.com/mail/bin/answer.py?answer=6596 x3si1148706wiw.85 - gsmtp
[03.09.2014  08:31:33] 2368 INFO/uid: UID 20140903082919-1.1.9.2.0.0tr61pc1dm valid
[03.09.2014  08:31:33] 2368 INFO/scanid: Found new uid in body: Message-ID: <20140903082919-1.1.9.2.0.0tr61pc1dm@openemm.invalid> 
[03.09.2014  08:32:00] 2368 DEBUG/ADMIN: Found 0 files in queue
[03.09.2014  08:32:31] 2368 DEBUG/ADMIN: Found 0 files in queue
[03.09.2014  08:33:01] 2368 DEBUG/ADMIN: Found 0 files in queue


and the unspec-1 file contains the bounce message, which looks like this:

Code: Select all

From mailer-daemon@mydomain.com  09/03/14 08:31:32
Return-Path: <mailer-daemon@mydomain.com>
dkim-signature: v=1; a=rsa-sha256; d=mydomain.com; s=dkim;
 c=relaxed/relaxed; q=dns/txt;
 h=From:Subject:Date:To:MIME-Version:Content-Type:Content-Transfer-Encoding;
 bh=glNFMQ8sTP9Rf5iQsbmdURZigg0Z1whRlXD21789ARI=;
 b=MEQ9jC25DvRLLePkuLCJI1QHrkvShe+LDipCD8Vz0Cz8ymTmuKoF4p3XoO08jzcX5DwHFADnqNATx5Bg9dKMIRYetlDZ2JmVRrCPKr5cw//xxgbEovo5zlEoS2pZ2Yq+yKvXtfa55kVvQZpRUOP4GzU968MwGYTP+00CND85+8QrPb2NE4ZFJwPWUb2xuUaj7VWFmicDxi9l5/JKpysjyzruSsmeyrK0RjvaCOGZMDmeoKoc1jOCknoell
 L3BCX+0lqXOXYCXWsgL/a0qDzzM4uywmY4fkrvzUwRp1pz3tsOP3J2Gwm2sipcMHiJvw4B4+ObajyIt78YETEfYwWqQw==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
From: Mailer Daemon
Subject: Undeliverable: testujeme
To: "Bounce Manager" <ext_1@em.mydomain.com>
Content-Transfer-Encoding: quoted-printable
Date: Wed, 3 Sep 2014 08:31:32 +0200
X-AGNLoop: set
X-AGNMailloop: rid=1, cid=1, from=mailer-daemon@mydomain.com,
 to=ext_1@em.mydomain.com

Your message did not reach some or all of the intended recipients:
dfauierughuaerghuiraehg@gmail.com

Error Type: SMTP   Remote server (173.194.65.26) issued an error.   hMailServer sent: RCPT TO:<dfauierughuaerghuiraehg@gmail.com>   Remote server replied: 550 5.1.1 http://support.google.com/mail/bin/answer.py?answer=3D6596 m5si1146411wiw.91 - gsmtp

Original Message Headers Below:=20

Received: from [130.193.10.74] (mydomain.local [127.0.0.1]) by mail.mydomain.com ; Wed, 3 Sep 2014 08:31:32 +0200=20
?mP?Return-Path: <em@em.mydomain.com>=20
Received: by openemm.invalid for <dfauierughuaerghuiraehg@gmail.com>; Wed,  3 Sep 2014 06:29:37 GMT=20
Message-ID: <20140903082919-1.1.9.3.0.mqacgrnq8a@openemm.invalid>=20
Date: Wed,  3 Sep 2014 06:29:37 GMT=20
From: "testovaci sender" <em@em.mydomain.com>=20
To: <dfauierughuaerghuiraehg@gmail.com>=20
Subject: testujeme=20
X-Mailer: OpenEMM V2013=20
MIME-Version: 1.0=20
Content-Type: multipart/alternative; boundary=3D"-=3D=3DAGNITASOUTER164240059B29000009=3D=3D"=20
List-Unsubscribe: http://localhost/unsubscribe.html?dfauierughuaerghuiraehg%40gmail.com=20




Could you please help?
Many thanks!
manamop
Posts: 4
Joined: Wed Sep 03, 2014 7:59 am

Re: Windows, no Sendmail, hard bounces

Post by manamop »

Answer:

adding

Code: Select all

Remote server replied: 55[0-3]
to [hard] section of bav.rule helped ...
ud
Posts: 154
Joined: Thu Aug 17, 2006 9:56 am
Location: Munich, Germany
Contact:

Re: Windows, no Sendmail, hard bounces

Post by ud »

We try to avoid false bounce informations due to misconfigured mail servers, so we only try to accept hardbounces which are really proved to be a hard bounce. These are the codes 511 (user unkown) and 512 (domain unknown). To avoid marking your users due to a false bounce message, but still catch these cases, you can extend your rule to include the DSN:

Code: Select all

Remote server replied: 55[0-9] 5\.1\.[12]
-- ud
manamop
Posts: 4
Joined: Wed Sep 03, 2014 7:59 am

Re: Windows, no Sendmail, hard bounces

Post by manamop »

Make sense, thanks!

However, I will probably have to tweak the rules more because from 58 emails I sent to addresses that Mandrill marked as hard or soft bounce, my OpenEMM installation recognized only 41 as bounces - both hard and soft combined and after 7 days after sending. Will see ...
blackbee045
Posts: 1
Joined: Wed Oct 22, 2014 7:16 pm

Re: Windows, no Sendmail, hard bounces

Post by blackbee045 »

This works for me since I have manually redirected all mails to ext_1@em.mydomain.com. Previous attempts to use bav.conf-local alias failed (error message like "invalid target recipient"). So now, when my mail server is about to create mailer-daemon message, it sends it directly to ext_1@em.mydomain.com. However, bounces are not counted.??
You can easily check out our high quality 70-461 dumps with help of latest HP We offer up-to-dated Alaska Pacific University contains all those materials you want to University of Chicago dumps exam by using Olivet Nazarene University
Post Reply