trešd., 2024. g. 7. aug., plkst. 03:18 — lietotājs Viktor Dukhovni via
Postfix-users (<postfix-users@postfix.org>) rakstīja:
>
> On Tue, Aug 06, 2024 at 09:05:20PM +0300, Dāvis Mosāns via Postfix-users 
> wrote:
>
> > That's the issue, transport map I have:
> > transport_maps = lmdb:/etc/postfix/transport
> > with:
> > * smtp:internal.example.org
>
> Wildcard transport overrides are best avoided.
>
> > It's used for both cases.
>
> Which is not what you want.
>
> > I want forward/relay all incoming mail for all domains not just few.
>
> Not *all* domains, rather just the domains for which you accept mail,
> presumably in this case "relay_domains", for example, any bounces to
> external senders should presumably go out to the appropriate responsible
> external SMTP servers.
>

All, because one goal is to collect spam messages. There won't be any
bounces since all mail is accepted.

> > But even with this approach it doesn't work as in mail from
> > submissions port is still forwarded which is not what I want.
> > I tried:
> > transport_maps = lmdb:/etc/postfix/transport
> > relay_domains = $mydestination lmdb:/etc/postfix/relay
> > relay_recipient_maps =
> > relay_transport = relay
>
> Instead:
>
>     relay_transport = relay:internal.example.org
>
Interestingly this works how I want. I thought "relay_transport =
relay" with transport_maps would be same thing...

> and a comprehensive table of valid recipients for
> "relay_recipient_maps", because without recipient validation you're
> going be a source of backscatter that will harm your IP reputation, and
> annoy joe-job attack victims.
>

There won't be backscatter because all mail is accepted. I don't think
this would affect IP reputation. I have it implemented in internal
postfix instance with:
virtual_alias_maps = pcre:/etc/postfix/virtual
virtual_alias_domains = $virtual_alias_maps
where virtual contains:
/^valid_email\@example\.org$/ valid_em...@example.org
/^.+\@example\.org$/ inva...@example.org
/^(?!(example\.org)).+$/ s...@example.org

This way I can collect all spam that is sent no matter address/domain etc
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to