-
Notifications
You must be signed in to change notification settings - Fork 97
postfix:cleanup subject contains a url #84
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Looks like a good example for this issue, wasn't able to reproduce this. I'll try to look into it (after the weekend, i'm afraid) |
no problems and thanks |
Been messing about a bit; I think this is a KV issue with the '=' character I have also being playing with some regex in host OS and this seems to be along the lines of what I would look for the postfix_subject cat /var/log/maillog | grep postfix/cleanup | awk -F'Subject:' '{print $2}' | awk -F';' '{ print $1 }' | awk '{ FS = " from (([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-][a-zA-Z0-9]).)([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-][A-Za-z0-9])[[0-9]." } ; { print $1 }' I don't profess to know what I am talking about, so the above may be completely and utterly wrong. Requires "/^Subject:/ WARN" in the postfix headers file and "header_checks = regexp:/etc/postfix/header_checks" in the main.cf |
Ok, some more tinkering I have done the following:
It seems to work for me. I presume there is a much neater solution available Thanks |
Fix postfix_warning pattern, solves #84
Solved issue in PR #85. Thanks for reporting! |
Hi
Firstly thanks for the patterns. it is appreciated.
I am having an issue when the "warning" (we add the subject so we can easily find the email) contains strange characters such as below
Essentially we get
This seems to only be happening on the CLEANUP messages.
Is there a way that we can get these formatted correctly ? (some thing like if contains warning: header Subject: the reset is the data for postfix_subject)
Any help is greatly appreciated ?
Thanks
The text was updated successfully, but these errors were encountered: