On Sat, Jun 21, 2025 at 01:31:01PM +0200, Christian H. Kuhn via Postfix-users 
wrote:

> > Assign both instances explicit distinct $myhostname values.
> 
> But i started rethinking the whole setup. And it does not end with removing
> localhost ip from the public instance. What is the idea behind the complete
> construction? To prevent spam, virusses, ... from being delivered. And how
> much spam might come from the null client instance where only local programs
> may send?
> 
> So i will change local transport from relay to lmtp.

In a typical null-client I'd expect local_transport to never happen,
instead all mail goes via SMTP to the "smart" instance.  But also,
being a null-client there would typicall also be no SMTP listener!

    main.cf:
        # Punt all mail to the "smart" queue or front-end filter
        default_transport = smtp:[127.0.0.1]:26
        relay_domains =
        mydestination =
        virtual_alias_domains =
        virtual_mailbox_domains =

        # No SMTP listener
        master_service_disable = inet

        # Since no local domains
        alias_maps =
        alias_database =
        local_recipient_maps =
        local_transport = error:5.1.2 Mailbox unavailable
        
        ...

With the above, you get just local submission.  Otherwise you're looking
at not a null-client but an input instance,  So what use case is this???
Is the front-end instance receiving mail from outside or not?

-- 
    Viktor.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to