OpenEMM Support Forum Index OpenEMM Support
Use this forum to get and provide free help regarding OpenEMM
 
 TOP   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

bav does not forward emails according to bounce filter

 
Post new topic   Reply to topic    OpenEMM Support Forum Index -> Bounce Management
View previous topic :: View next topic  
Author Message
sannc



Joined: 01 Jul 2008
Posts: 10
Location: Aschaffenburg

PostPosted: Tue Jul 01, 2008 12:30 pm    Post subject: bav does not forward emails according to bounce filter Reply with quote

Hi there!

I am almost finished with setting up OpenEMM on a Gentoo box with Postfix as MTA (--> sendmail disabled!). There is one thing which does not work properly yet: Emails to my bounce address (ext_1@openemm.mydomain.com) are not forwarded to the email address I entered as forward-to address.

I spent some time searching for my mistake and stumbled across the files in /home/openemm/var/spool/filter. There is a file called "sent-unspec" which contains all my missing test emails but none of them made it into my inbox.

Which logfile can I check or who can help me with this issue?

TIA
Carsten
Back to top
View user's profile Send private message
ma
Site Admin


Joined: 03 Aug 2006
Posts: 512
Location: Munich, Germany

PostPosted: Wed Jul 02, 2008 9:48 am    Post subject: Reply with quote

You must not use Postfix but the internal SMTP server of OpenEMM (which is automatically enabled is you disable Sendmail). Two MTAs on the same machine running at the same time will cause problems.
_________________
The OpenEMM Team
Back to top
View user's profile Send private message Visit poster's website
sannc



Joined: 01 Jul 2008
Posts: 10
Location: Aschaffenburg

PostPosted: Wed Jul 02, 2008 11:43 am    Post subject: Reply with quote

ma wrote:
You must not use Postfix but the internal SMTP server of OpenEMM (which is automatically enabled is you disable Sendmail). Two MTAs on the same machine running at the same time will cause problems.


Ah ... ok. But there is no way to turn off postfix because this is a hosting machine which is not only used by OpenEMM. If I define a transport in Postfix which forwards all E-Mails to my bounce domain to the local SMTP server (8025), do I need to configure anything else than the bounce filters?

Best regards
Carsten
Back to top
View user's profile Send private message
sannc



Joined: 01 Jul 2008
Posts: 10
Location: Aschaffenburg

PostPosted: Wed Jul 02, 2008 11:55 am    Post subject: Reply with quote

ma wrote:
You must not use Postfix but the internal SMTP server of OpenEMM (which is automatically enabled is you disable Sendmail). Two MTAs on the same machine running at the same time will cause problems.


Next problem: I forwarded all email to my bounce domain to localhost:8025 and this works fine. Now I got a NDR back:

Code:
Mail failed due to 510:
Unknown user ext_1@openemm.mydomain.com


The bounce filter for the address ext_1@openemm.mydomain.com is created and configured as autoresponder. The problem is the same when the bounce filter is configured as forwarder.

Any hints?

Best regards
Carsten
Back to top
View user's profile Send private message
sannc



Joined: 01 Jul 2008
Posts: 10
Location: Aschaffenburg

PostPosted: Tue Jul 08, 2008 8:16 am    Post subject: Reply with quote

*push*
Back to top
View user's profile Send private message
sannc



Joined: 01 Jul 2008
Posts: 10
Location: Aschaffenburg

PostPosted: Wed Jul 09, 2008 8:18 am    Post subject: Reply with quote

Hi!

I tried a little bit more and found the following in bav-update.log

Code:
[09.07.2008  10:10:17] 3592 ERROR/data: Unable to read local-host-names (2, 'No such file or directory')
[09.07.2008  10:10:17] 3592 ERROR/data: Unable to read virtusertable (2, 'No such file or directory')
[09.07.2008  10:10:17] 3592 ERROR/data: Companys domain "openemm.mydomain.com" not found in mailertable


It seems as if OpenEMM tries to figure some sendmail specific things out although I disabled sendmail ... maybe this is a part of the problem?

Please take care of my problem ... I have almost a running system and this is the only thing which does not work yet Sad

Regards
Carsten
Back to top
View user's profile Send private message
ud



Joined: 17 Aug 2006
Posts: 109
Location: Munich, Germany

PostPosted: Wed Jul 09, 2008 9:49 am    Post subject: Reply with quote

So first, you're right, bav-update still looks for some sendmail files (I tested it on a system with sendmail disabled, but sendmail installed, so I did not hit this problem.) The first line is critical, as the own domain won't be recognized:

Code:
[09.07.2008  10:10:17] 3592 ERROR/data: Unable to read local-host-names (2, 'No such file or directory')


These two lines are annoying, but can safely be ignored:

Code:
[09.07.2008  10:10:17] 3592 ERROR/data: Unable to read virtusertable (2, 'No such file or directory')
[09.07.2008  10:10:17] 3592 ERROR/data: Companys domain "openemm.mydomain.com" not found in mailertable


An (untested) short work around: edit the file /home/openemm/bin/scripts/bav-update.py and change the line 151 from
Code:
if agn.iswin:

to
Code:
if agn.iswin or True:

(please make sure to not change the indention of the code!) To get rid of the other two messages, you can change line 192 the same way.

In the next release, a proper fix will be included.

-- ud
Back to top
View user's profile Send private message Visit poster's website
sannc



Joined: 01 Jul 2008
Posts: 10
Location: Aschaffenburg

PostPosted: Wed Jul 09, 2008 10:12 am    Post subject: Reply with quote

Thank you for the quick reply. There is still one error message left:

Code:
[09.07.2008  12:03:24] 23419 ERROR/data: Companys domain "openemm.mydomain.com" not found in mailertable


For sure OpenEMM does not know my domain name if it tries to look it up in the mailertable. But when I disable sendmail it needs to get to know it from somewhere else ... the corresponding field in the company_tbl is filled with "openemm.mydomain.com".

So I still have the problem that the Forwarder I set up in Bounce filters does not work because the built in SMTP server says:

Code:
Mail failed due to 510:
Unknown user ext_2@openemm.mydomain.com


Sad

Regards
Carsten
Back to top
View user's profile Send private message
ud



Joined: 17 Aug 2006
Posts: 109
Location: Munich, Germany

PostPosted: Wed Jul 09, 2008 12:49 pm    Post subject: Reply with quote

Have you restarted OpenEMM? Otherwise the code change won't show any effect.

-- ud
Back to top
View user's profile Send private message Visit poster's website
sannc



Joined: 01 Jul 2008
Posts: 10
Location: Aschaffenburg

PostPosted: Wed Jul 09, 2008 12:50 pm    Post subject: Reply with quote

Sure Smile And the code change does show effect ... two messages are gone but the one I posted remains ...

Regards
Carsten
Back to top
View user's profile Send private message
ud



Joined: 17 Aug 2006
Posts: 109
Location: Munich, Germany

PostPosted: Wed Jul 09, 2008 2:49 pm    Post subject: Reply with quote

Ahh, okay, the message is misleading, the problem is that now only the local host name is considered as known domain, so if openemm.mydomain.com is not the name of your system, this won't work. You can set this domain in line 130, just replace localhost with openemm.mydomain.com (keep the apostrophs.)

In the next version the domain is read from the database, so these quirks are no more necessary.

-- ud
Back to top
View user's profile Send private message Visit poster's website
sannc



Joined: 01 Jul 2008
Posts: 10
Location: Aschaffenburg

PostPosted: Wed Jul 09, 2008 4:41 pm    Post subject: Reply with quote

... and that's the solution! Now I am a happy user who runs OpenEMM on a Gentoo Linux Box with Postfix Smile The only thing I have to fix is the immediate bounce detection by slrtscan ...

Regards
Carsten
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenEMM Support Forum Index -> Bounce Management All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SourceForge.net Logo Powered by phpBB © 2001, 2005 phpBB Group