| View previous topic :: View next topic |
| Author |
Message |
sannc
Joined: 01 Jul 2008 Posts: 10 Location: Aschaffenburg
|
Posted: Tue Jul 01, 2008 12:30 pm Post subject: bav does not forward emails according to bounce filter |
|
|
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 |
|
 |
ma Site Admin
Joined: 03 Aug 2006 Posts: 512 Location: Munich, Germany
|
Posted: Wed Jul 02, 2008 9:48 am Post subject: |
|
|
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 |
|
 |
sannc
Joined: 01 Jul 2008 Posts: 10 Location: Aschaffenburg
|
Posted: Wed Jul 02, 2008 11:43 am Post subject: |
|
|
| 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 |
|
 |
sannc
Joined: 01 Jul 2008 Posts: 10 Location: Aschaffenburg
|
Posted: Wed Jul 02, 2008 11:55 am Post subject: |
|
|
| 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:
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 |
|
 |
sannc
Joined: 01 Jul 2008 Posts: 10 Location: Aschaffenburg
|
Posted: Tue Jul 08, 2008 8:16 am Post subject: |
|
|
| *push* |
|
| Back to top |
|
 |
sannc
Joined: 01 Jul 2008 Posts: 10 Location: Aschaffenburg
|
Posted: Wed Jul 09, 2008 8:18 am Post subject: |
|
|
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
Regards
Carsten |
|
| Back to top |
|
 |
ud
Joined: 17 Aug 2006 Posts: 109 Location: Munich, Germany
|
Posted: Wed Jul 09, 2008 9:49 am Post subject: |
|
|
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
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 |
|
 |
sannc
Joined: 01 Jul 2008 Posts: 10 Location: Aschaffenburg
|
Posted: Wed Jul 09, 2008 10:12 am Post subject: |
|
|
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:
Regards
Carsten |
|
| Back to top |
|
 |
ud
Joined: 17 Aug 2006 Posts: 109 Location: Munich, Germany
|
Posted: Wed Jul 09, 2008 12:49 pm Post subject: |
|
|
Have you restarted OpenEMM? Otherwise the code change won't show any effect.
-- ud |
|
| Back to top |
|
 |
sannc
Joined: 01 Jul 2008 Posts: 10 Location: Aschaffenburg
|
Posted: Wed Jul 09, 2008 12:50 pm Post subject: |
|
|
Sure And the code change does show effect ... two messages are gone but the one I posted remains ...
Regards
Carsten |
|
| Back to top |
|
 |
ud
Joined: 17 Aug 2006 Posts: 109 Location: Munich, Germany
|
Posted: Wed Jul 09, 2008 2:49 pm Post subject: |
|
|
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 |
|
 |
sannc
Joined: 01 Jul 2008 Posts: 10 Location: Aschaffenburg
|
Posted: Wed Jul 09, 2008 4:41 pm Post subject: |
|
|
... and that's the solution! Now I am a happy user who runs OpenEMM on a Gentoo Linux Box with Postfix The only thing I have to fix is the immediate bounce detection by slrtscan ...
Regards
Carsten |
|
| Back to top |
|
 |
|