1

Topic: Greylisting: subdomians & domains

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.71
- Deployed with iRedMail Easy or the downloadable installer? download
- Linux/BSD distribution name and version: ubuntu 24
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I would like to whitelist the following Domain including there subdomains.

     python3 greylisting_admin.py --whitelist-domain --from '@.booking.com'

If I do that, I get the following output:

    * Whitelisting sender domain: .booking.com
     INVALID_DOMAIN

If I check the maual, it should be possible to whitelist domains incl. subdomains by the '@.xxx.com'
command?

Any suggestion, why this does not work.

Regards Michael

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2 (edited by TiTo 2025-02-08 00:28:48)

Re: Greylisting: subdomians & domains

Valid address formats:

Single IP Address: 192.168.2.10
IP CIDR Network: 192.168.2.0/24, 2620:0:2d0:200::7/128
Single email address: user@domain.tld
Address with wildcard: user@*
Entire domain: @domain.tld
Domain and all its sub-domains: @.domain.tld
Catch-all address: @.

3

Re: Greylisting: subdomians & domains

TiTo wrote:

Valid address formats:

Single IP Address: 192.168.2.10
IP CIDR Network: 192.168.2.0/24, 2620:0:2d0:200::7/128
Single email address: user@domain.tld
Address with wildcard: user@*
Entire domain: @domain.tld
Domain and all its sub-domains: @.domain.tld
Catch-all address: @.

Thank you for the fast response.
I used your Suggestion : @.domain.tld but that causes an error.
Please See my posting, @.Booking.com.  Results in invalid Domain.

Regards Michael

4 (edited by TiTo 2025-02-08 04:08:34)

Re: Greylisting: subdomians & domains

root@mail:/opt/iRedAPD-5.6.0/tools# python3 greylisting_admin.py --whitelist-domain --from '@booking.com'
* Whitelisting sender domain: booking.com


root@mail:/opt/iRedAPD-5.6.0/tools# python3 greylisting_admin.py --whitelist-domain --from '@.booking.com'
* Whitelisting sender domain: .booking.com
INVALID_DOMAIN

yes, there is an error when trying to whitelist with all subdomains sad

5

Re: Greylisting: subdomians & domains

Whitelisting domain name must be a valid FQDN like "example.com", "sub.example.com", not "@.example.com".

6

Re: Greylisting: subdomians & domains

ZhangHuangbin wrote:

Whitelisting domain name must be a valid FQDN like "example.com", "sub.example.com", not "@.example.com".

Thank you for the response.

I have the problem, that mails from different subdomains of Booking.com get blocked by the greylist. So is there a way to whitelist all subdomains from Booking.com, so that the greylist does Not Block them.

Regards Michael

7

Re: Greylisting: subdomians & domains

ZhangHuangbin wrote:

Whitelisting domain name must be a valid FQDN like "example.com", "sub.example.com", not "@.example.com".

In the documentation I see Valid address formats:

Single IP Address: 192.168.2.10
IP CIDR Network: 192.168.2.0/24, 2620:0:2d0:200::7/128
Single email address: user@domain.tld
Address with wildcard: user@*
Entire domain: @domain.tld
Domain and all its sub-domains: @.domain.tld
Catch-all address: @.

It is clearly stated that to block a domain and all its subdomains, you can use the @.domain.tld format. If this information is incorrect, please update the description accordingly. In the iRedAdmin-Pro or iRedAdmin-EE administrative interface, I can add a domain to the blacklist or whitelist using the @.domain.tld format.

Please explain to me/us: Does this mean that if I add them in the format @.domain.tld through the administrative interface—since I can add them in that format and no error is displayed when adding—it will not actually block emails coming from, for example, the address @any.domain.tld?

8

Re: Greylisting: subdomians & domains

I guess you need /opt/iredapd/tools/wblist_admin.py instead?