-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BatchSMTP crashes on send #2437
Comments
@e3rd can you help here? |
Give us your config file, or only its part concerning the bot, @slebrun1 , thanks! |
It seems I found it. Unless the PR is merged, the fix for you is to set the bcc attribute to a mere (The problem was, when the default |
Unfortunately, that doesn't seem to have fixed it for me, but the error does look a bit different. My original config simply didn't have a 'bcc' line (I've noticed that bots sometimes don't like having unused attributes,) but adding 'bcc: []' didn't made any difference, nor did taking it back out. I also tried with and without a custom 'subject' attribute, same issue. Bot config: SMTPBatch-Output:
bot_id: SMTPBatch-Output
description: Missing description
enabled: true
group: Output
module: intelmq.bots.outputs.smtp_batch.output
name: SMTPBatch
parameters:
allowed_fieldnames: [time.source, source.ip, classification.taxonomy, classification.type,
time.observation, source.geolocation.cc, source.asn, event_description.text,
malware.name, feed.name, feed.url, raw]
attachment_name: intelmq_%Y-%m-%d
bcc: []
cli: false
destination_queues: {}
email_from: [email protected]
fieldnames_translation: {classification.taxonomy: class, classification.type: type,
event_description.text: description, feed.name: feed_name, feed.url: feed_url,
malware.name: malware, raw: raw, source.asn: asn, source.geolocation.cc: country_code,
source.ip: ip, time.observation: time_delivered, time.source: time_detected}
ignore_older_than_days: 4
mail_template: /var/lib/intelmq/bots/SMTPBatch/default.txt
redis_cache_db: 15
redis_cache_host: localhost
redis_cache_port: 6379
redis_cache_ttl: 1728000
send: false
smtp_server: {host: xxx.xxx.xxx.xxx, password: bigolepassword, port: 25, subject: Lakeland
IntelMQ Alerts %Y-%m-%d, user: [email protected]}
subject: IntelMQ Batch Events List
run_mode: continuous Output when run against that config:
|
That seems a completely different error. Note that
(note I've removed some private parameters like |
Hah! It was indeed the 'subject' attribute in the smtp_server parameter that was the issue:
causes the error,
works as expected. The documentation points to the CZ-NIC envelope documentation, and I must have gotten it into my head to include a subject there as part of the info being passed to the SMTP server. Thanks for your help with this! |
Debian 12 with native packages, intelmq 3.2.1, envelope 2.0.2
Sending email with the SMTP output bot works as expected. Trying to use the SMTPBatch output bot works up until one actually tries to send, throwing a python error.
The text was updated successfully, but these errors were encountered: