Exactly.

Here a typical row

| 1382959 | nelly_cab...@gmail.com
| REJECT Recipient address rejected for policy reasons | 2018-11-04 01:49:33
mysql> describe virtual_sender_access ;
+---------------+-------------+------+-----+---------------------+-----------------------------+

| Field         | Type        | Null | Key | Default             | Extra
                      |
+---------------+-------------+------+-----+---------------------+-----------------------------+

| id            | int(11)     | NO   | PRI | NULL                |
auto_increment              |
| source        | varchar(64) | NO   | MUL |                     |
                            |
| access        | varchar(64) | NO   |     |                     |
                            |
| created_on    | timestamp   | NO   |     | 0000-00-00 00:00:00 |
                            |
| check_bounce  | int(11)     | NO   |     | NULL                |
                            |
| last_modified | timestamp   | NO   |     | CURRENT_TIMESTAMP   | on
update CURRENT_TIMESTAMP |
+---------------+-------------+------+-----+---------------------+-----------------------------+

All rows use this bounce "REJECT Recipient address rejected for policy
reasons".

El mar., 14 de jul. de 2020 a la(s) 10:01, Ralph Seichter (
ra...@ml.seichter.de) escribió:

> * SysAdmin EM:
>
> > query = SELECT access FROM virtual_sender_access WHERE source='%s'
>
> You wrote that you only store nonexistent sources. In that case, the
> value of the "access" column should always be something that indicates
> "access denied", possibly a constant value across all entries? If so,
>
>   SELECT 'restricted' as access FROM ...
>
> should provide a way of reducing the DB load in a very small way, as
> only an index scan would be required. However, that only saves one read
> operation per lookup and therefore may not help you much.
>
> I am still unconvinced that the type of data you are storing provides a
> good way to achieve your goal.
>
> > Does postfix have support for mongo database?
>
> Following Wietse's rule of "if it is not documented it is not supported"
> and the content of http://www.postfix.org/DATABASE_README.html , the
> answer should be no.
>
> -Ralph
>

Reply via email to