bounce stat

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

Moderator: moderator

percivalg
Posts: 10
Joined: Fri Jan 16, 2009 11:51 am

bounce stat

Post by percivalg » Fri Jan 16, 2009 12:16 pm

Hi,

I have installed openemm on a vz, and sending mass mails are ok, my bounce stats are not working, i have followed every post in this forum, I have different domains set for my host server and my mx server but with same pointed on one ip address

openemm.mycompany.com.ph --IN A
emmnews.mycompany.com.ph --IN MX

emmnews is set on my /etc/mail/relay-domains and my
/etc/mail/mailertable is emmnews.mycompany.com.ph procmail:/home/openemm/conf/bav/bav.rc


I have followed the manual setting the sendmail.mc based on the manual.
I have set the bounce filter to forward to my gmail account

my bav.conf-local is
newsletter@emmnews.mycompany.com.ph alias:ext_4@emmnews.mycompany.com.ph

I have created an unknown user on gmail and yahoo account that will surely bounce back for my test. when I send my mailing, mails deliverd to the valid email address, I checked my /var/log/maillog and got this:

Jan 16 18:43:29 openemm sendmail[4732]: n0GAhSbk004732: from=<>, size=5208, class=0, nrcpts=1, msgid=<20090116104313.1FD381210D@calypso.mycompany.com.ph>, proto=ESMTP, daemon=MTA, relay=[192.168.0.4]
Jan 16 18:43:29 openemm sendmail[4732]: n0GAhSbk004732: Milter add: header: X-AGNMailloop: from=<>,rid=4,cid=1,fwd=emmopen@gmail.com,to=<newsletter@emmnews.mycompany.com.ph>
Jan 16 18:43:29 openemm sendmail[4732]: n0GAhSbk004732: Milter add: header: X-AGNLoop: set
Jan 16 18:43:29 openemm sendmail[4735]: n0GAhSbk004732: to=<newsletter@emmnews.mycompany.com.ph>, delay=00:00:01, xdelay=00:00:00, mailer=procmail, pri=125208, relay=/home/openemm/conf/bav/bav.rc, dsn=2.0.0, stat=Sent

I have doubled checked all the settings, scan this forum, checked the manual but still cant seems to make my bounce stats to work.

Have I missed out a config or something? Please help.

thanks

percivalg
Posts: 10
Joined: Fri Jan 16, 2009 11:51 am

bounce stat - sendmail relayhost

Post by percivalg » Fri Feb 27, 2009 1:00 pm

I found the problem with my setup, Im using a relayhost on my sendmail on the DS part of sendmail.cf,
# "Smart" relay host (may be null)
DS
#DS192.168.0.4
When I use a relayhost, bounce stats wont work. When I removed the relayhost and send the mailings directly from my server the bounce stats works. It also automatically removes the bounce email address from my mailing list. And openrate are working great.

Here is my follow up question, I need to use a relayhost to my openemm, because my relayhost has the rdns setup and spf records setup, which minimizes my mailings to be categorize as spams to yahoo/gmail. I tried setting up the smart-relay from the /home/openemm/conf/smart-relay and put my relayhost ip address in it

/
home/openemm/conf (#1049) cat smart-relay
192.168.0.4
The emails was sent, openrate stats are working, but still the bounce stats are not working with smart-relay host setup.

here are my questions:
Can the bounce stats work with a smart-relay or a relayhost?

1. where can I find the smart-relay host logs? because in sendmail i can look at /var/log/maillog, Is it located in /home/openemm/var/log? which one?

thanks in advance

ud
Posts: 141
Joined: Thu Aug 17, 2006 9:56 am
Location: Munich, Germany
Contact:

Post by ud » Mon Mar 02, 2009 4:41 pm

Here you mix up two things. The file /home/openemm/conf/smart-relay is only used in a non sendmail enviroment, where sending is managed by the internal MTA. So this file has no effect in your case.

On the other hand, it looks like you did everything right. If you do not send mail using a smart relay you will get the bounces directly during sending and they are handled correctly (as you have written.) If you use the smart relay, all mail is initially delivered successfully, but the smart relay server will send a delayed bounce in case of failure.

Your sendmail logfile in your first post shows the arrival of such a delayed bounce message. Could you please look inside the directory /home/openemm/var/spool/filter if you can find the mail there? If the mail does not contain any secrets, you can post it here. Perhaps the body could not be parsed to find enough information to write the bounce to the database.

-- ud

percivalg
Posts: 10
Joined: Fri Jan 16, 2009 11:51 am

Post by percivalg » Tue Mar 03, 2009 11:24 am

thanks for the reply ud,
I found no file inside /home/openemm/var/spool/filters

ud
Posts: 141
Joined: Thu Aug 17, 2006 9:56 am
Location: Munich, Germany
Contact:

Post by ud » Tue Mar 03, 2009 11:43 am

Thats strange (btw, its filter, not filters.) Could you please look through the logfiles under /home/optnemm/var/log starting with a timestamp for error or warning messages? And can you do a:

Code: Select all

$ ls -l /home/openemm/bin/scripts
to chechk for missing links.

-- ud

percivalg
Posts: 10
Joined: Fri Jan 16, 2009 11:51 am

Post by percivalg » Tue Mar 03, 2009 11:45 am

sorry for that, here is my ls -l /home/openemm/bin/scripts
total 349
drwxr-xr-x 2 openemm openemm 624 Feb 27 19:20 ./
drwxr-xr-x 3 openemm openemm 752 Feb 26 18:48 ../
-rwxr-xr-x 1 openemm openemm 45907 Sep 3 20:07 agn.py*
-rw-rw-r-- 1 openemm openemm 57165 Feb 26 18:49 agn.pyc
-rwxr-xr-x 1 openemm openemm 4923 Sep 3 20:07 bav-trigger.py*
-rwxr-xr-x 1 openemm openemm 13499 Sep 3 20:07 bav-update.py*
-rwxr-xr-x 1 openemm openemm 26083 Sep 3 20:07 bavd.py*
-rw-rw-r-- 1 openemm openemm 29493 Feb 27 19:20 bavd.pyc
-rwxr-xr-x 1 openemm openemm 42218 Sep 3 20:07 bavwrap*
-rwxr-xr-x 1 openemm openemm 9497 Sep 3 20:07 config.sh*
lrwxrwxrwx 1 openemm openemm 7 Feb 26 18:48 filter_or_forward -> bavwrap*
lrwxrwxrwx 1 openemm openemm 7 Feb 26 18:48 is_no_systemmail -> bavwrap*
-rwxr-xr-x 1 openemm openemm 6940 Sep 3 20:07 pickdist.py*
lrwxrwxrwx 1 openemm openemm 7 Feb 26 18:48 scan_and_unsubscribe -> bavwrap*
-rwxr-xr-x 1 openemm openemm 25532 Sep 3 20:07 semu.py*
-rwxr-xr-x 1 openemm openemm 5212 Sep 3 20:07 slrtscn.py*
-rwxr-xr-x 1 openemm openemm 3398 Sep 3 20:07 smenable.py*
-rw-rw-r-- 1 openemm openemm 4376 Feb 26 18:49 smenable.pyc
-rwxr-xr-x 1 openemm openemm 10283 Sep 3 20:07 softbounce.py*
-rwxr-xr-x 1 openemm openemm 14509 Sep 3 20:07 update.py*
-rwxr-xr-x 1 openemm openemm 19824 Sep 3 20:07 upgrade.py*

ud
Posts: 141
Joined: Thu Aug 17, 2006 9:56 am
Location: Munich, Germany
Contact:

Post by ud » Tue Mar 03, 2009 11:50 am

That looks okay .... One possible thing I can think of: if sendmail should use a smart relay, it may ignore the route given in /etc/mail/mailertable and really send everything to the smart relay. But the entry from the logfile in your first post states, that the mail is routed to /home/openemm/conf/bav/bav.rc which is correct.

-- ud

percivalg
Posts: 10
Joined: Fri Jan 16, 2009 11:51 am

Post by percivalg » Tue Mar 03, 2009 12:06 pm

Thank you Ud, I will triple check my settings again, post any findings if positive or negative, also will try this post here.

percivalg
Posts: 10
Joined: Fri Jan 16, 2009 11:51 am

throttle

Post by percivalg » Wed Mar 11, 2009 12:15 pm

change of plan, i need to send my mailing directly from my server where OpenEMM is installed,

My question is, can OpenEmm be throttled to send mail say 100 emails every 5minutes?

Or can Sendmail do this?

Can OpenEmm work with Postfix? Because if OpenEMM and sendmail cant throttle I will use Postfix to throttle my mailings.

Thanks in advance

Post Reply