Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Email Marketing
  3. Bulk Import Email Blacklist v 15.0
  4. Sales Conditions FAQ

Bulk Import Email Blacklist

by Farhan Ashraf https://apps.odoo.com/apps/modules/browse?author=Farhan+Ashraf
Odoo
v 15.0 Third Party 7
Download for v 15.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Versions 14.0 15.0 16.0 17.0 18.0 19.0
You bought this module and need support? Click here!
Versions 14.0 15.0 16.0 17.0 18.0 19.0
  • Description
  • Manifest
Bulk Import Email Blacklist

Blacklist hundreds of addresses in one run

Odoo's Email Blacklist screen accepts one address at a time. After a bounce report, an abuse complaint export or a GDPR erasure request, that means pasting the same form over and over. This module adds a bulk wizard: paste the list or upload the file, choose whether you are adding or removing, and get a per-address report of what actually happened.

What it does

  • Two inputs. Paste addresses (one per line, or several per line separated by a comma or a semicolon), or upload a .csv / .txt file.
  • Two modes. Add to the blacklist or Remove from the blacklist. Add is the default; remove asks for confirmation before it runs.
  • Real normalization. Stray whitespace, mixed case and Name <address@example.com> forms are handled, and every address goes through Odoo's own mail.blacklist helpers, so the standard chatter entry is logged on each blacklist record exactly as if you had typed it by hand.
  • An honest report. Added, already blacklisted, removed, not blacklisted, listed more than once, and invalid with the reason for each one.
  • The rejects come back. Invalid entries are handed back as plain text, and one button reloads them into the wizard so you can fix and re-submit just those.
  • Nothing can derail a run. Each address is processed inside its own database savepoint: a single failing row is reported and the rest of the list still imports.
  • A stated limit. Up to 1,000 addresses per run. If your input is longer, the wizard processes the first 1,000 and tells you on screen that it truncated.

What it never does

  • It never deletes a blacklist entry. "Remove" archives it, which is Odoo's own un-blacklist behaviour, so the address keeps its history.
  • It never creates a blacklist row for an address you asked to remove that was not blacklisted — that address is simply reported as "not blacklisted".
  • It never touches contacts, leads, mailing lists or any other record. Only mail.blacklist is written.
  • It never bypasses access rights. The wizard is restricted to Settings administrators, the same group Odoo requires for the blacklist itself.

Screenshots

1. Paste the addresses and pick the mode.

The bulk import wizard with a pasted list of addresses

2. Read the per-address result.

The result screen with counts, the report and the invalid addresses

3. Also reachable from the blacklist list view.

The wizard in the Actions menu of the Blacklisted Email Addresses list

Installation

  1. Copy the mail_blacklist_bulk_import folder into your Odoo add-ons path.
  2. Restart the Odoo service.
  3. Open Apps, click Update Apps List, search for Bulk Import Email Blacklist and press Install.
  4. The only dependency is mail, which every Odoo database already has.

Configuration

  1. There is nothing to configure — the module works as soon as it is installed.
  2. Access is limited to the Settings administrator group (base.group_system). Grant that group to anyone who should be able to run the wizard; no other setting controls it.
  3. The menu sits next to Odoo's own blacklist screen, under Settings › Technical › Discuss › Blacklist Bulk Import. Odoo's whole Technical menu — including the standard Blacklisted Email Addresses screen — is only visible with developer mode enabled, so the same applies here.
  4. If Email Marketing is installed, no developer mode is needed: open Email Marketing › Configuration › Blacklisted Email Addresses, tick any row and use Actions › Bulk Import Email Blacklist.

Usage

  1. Go to Settings › Technical › Discuss › Blacklist Bulk Import (or open Blacklisted Email Addresses, select any row and use Actions › Bulk Import Email Blacklist).
  2. Choose the mode: Add to the blacklist or Remove from the blacklist.
  3. Choose the source: paste the addresses in the text box, or switch to Upload a file and pick a .csv or .txt file. In a CSV, the first cell of each row containing an @ is used, and a leading header row called email, e-mail or address is ignored.
  4. Press Add to Blacklist (or Remove from Blacklist, which asks for confirmation first).
  5. Read the summary. If some entries were invalid, press Fix Invalid Addresses to reload only those into the wizard, correct them and run again.
  6. Press View Blacklist to check the result in the standard Odoo screen.

Good to know

  • An address is rejected when Odoo cannot normalize it, or when its domain has no dot (user@localhost is refused on purpose). The reason is printed next to the address.
  • Addresses repeated inside one input are counted once and reported as "listed more than once" — they are not errors.
  • Re-adding an address that was previously un-blacklisted reuses the existing archived record instead of creating a second row.
  • CSV files with several columns are supported, but an address that contains a comma inside a quoted display name is best pasted as plain text instead.
  • A run reads at most 1 MB of pasted text or uploaded file; anything larger is refused with a message rather than parsed.
  • Tested on Odoo 14.0, 15.0, 16.0, 17.0, 18.0 and 19.0, Community and Enterprise.

Support

Questions, bug reports and feature requests are welcome at f.ashraf.dev1@gmail.com.
Author: Farhan Ashraf — source and issue tracker: Farhan Ashraf on the Odoo Apps Store
Licence: LGPL-3. Free and open source, no subscription, no external service.

Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 399
Technical Name mail_blacklist_bulk_import
LicenseLGPL-3
Websitehttps://apps.odoo.com/apps/modules/browse?author=Farhan+Ashraf

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with