Skip to content
This repository has been archived by the owner on Mar 1, 2021. It is now read-only.

How to test the validation function of batv-milter #1

Open
kinglok opened this issue Aug 23, 2013 · 3 comments
Open

How to test the validation function of batv-milter #1

kinglok opened this issue Aug 23, 2013 · 3 comments

Comments

@kinglok
Copy link

kinglok commented Aug 23, 2013

Hi Andrew,

Thank you for developing batv-tools. I've managed to install batv-tools ver 0.4 to the postfix 2.9.6 on the debian wheezy mail server. I run batv-tools as milter in postfix.

/etc/postfix/main.cf:
smtpd_milters = unix:private/batv-milter
non_smtpd_milters = unix:private/batv-milter

When checking maillog, I can see the address is signed with "+" subaddressing correctly. But how I can test the validation function?

Here is my test case:
I've tried to send to an non-existent gmail account and there is no X-Batv-Status in the email header in the reply email. How can I trigger it?

Thanks a lot for attending.

@AGWA
Copy link
Owner

AGWA commented Aug 23, 2013

Hi,

Is the test bounce coming from the same postfix server that's running batv-milter? If so, the problem is that by default postfix doesn't apply milters to bounces that it generates itself. This is actually OK for batv-milter because you can trust any bounce from your own server. For testing, you need to cause a different server to generate a bounce to you. I should set up a special email address people can use for this, but in the meantime I'll privately email you an address which I know causes bounces.

It is also possible to make postfix apply milters to its own bounces by setting the postfix option internal_mail_filter_classes = bounce. However, the postfix documentation says "It's generally not safe to enable content inspection of Postfix-generated email messages. The user is warned." I only learned about this option recently and I'm planning on asking the postfix developer why this option is not safe before I recommend that people enable it.

@kinglok
Copy link
Author

kinglok commented Aug 23, 2013

Hi,

Thank you for replying. I confirm that there must be internet_mail_filter_classes = bounce for checking batv status of the bounced mail from other server.

Thanks.

@solairajm
Copy link

Hi Team,
Hope am a newbie here and seeks support regarding inbox delivery of our own mail server,we have hosted email server in our Private DC with virgin static ip ,configured dkim,spf,dmarc and ptr considered as valid stuffs,unfortunately even with all positive records our mails are marked as spam by gmail and outlook,in search of a reason ,we found out the batv template got missed or need to add in our postfix emails,please guide to install indulge batv in postfix 3.5 running on centos 7 server

Regards,

Solai.M

Linux Administrator

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants