intelmq.bots.outputs.smtp_batch package¶
Submodules¶
intelmq.bots.outputs.smtp_batch.output module¶
-
intelmq.bots.outputs.smtp_batch.output.BOT¶ alias of
intelmq.bots.outputs.smtp_batch.output.SMTPBatchOutputBot
-
class
intelmq.bots.outputs.smtp_batch.output.Mail(key: str, to: str, path: str, count: int)¶ Bases:
object
-
class
intelmq.bots.outputs.smtp_batch.output.SMTPBatchOutputBot(bot_id: str, start: bool = False, sighup_event=None, disable_multithreading: bool = None, settings: Optional[dict] = None, source_queue: Optional[str] = None, standalone: bool = False)¶ Bases:
intelmq.lib.bot.Bot-
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']¶
-
alternative_mail= {}¶
-
alternative_mails= None¶
-
attachment_name= 'intelmq_%Y-%m-%d'¶
-
bcc= None¶
-
build_mail(mail, send=False, override_to=None)¶ creates a MIME message :param mail: Mail object :param send: True to send through SMTP, False for just printing the information :param override_to: Use this e-mail instead of the one specified in the Mail object :return: True if successfully sent.
-
cli= False¶
-
cli_run()¶
-
email_from= ''¶
-
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'}¶
-
gpg_key= None¶
-
gpg_pass= None¶
-
ignore_older_than_days= None¶
-
init()¶
-
limit_results= None¶
-
mail_template= ''¶
-
prepare_mails()¶ Generates Mail objects
-
process()¶
-
redis_cache_db= 15¶
-
redis_cache_host= ''¶
-
redis_cache_port= 0¶
-
redis_cache_ttl= 1728000¶
-
classmethod
run(parsed_args=None)¶
-
send= False¶
-
send_mails_to_tester(mails)¶ - These mails are going to tester’s address. Then prints out their count.
Parameters: mails – list
-
set_cache()¶
-
set_tester(force=True)¶
-
smtp_server= 'localhost'¶
-
subject= 'IntelMQ warning (%Y-%m-%d)'¶
-
testing_to= None¶
-