I'm following along the docs 

        http://www.postfix.org/MULTI_INSTANCE_README.html

configuring the 1st piece of multi-instance setup, the NULL CLIENT

I installed postfix

        postconf -d | grep ^mail_version
                mail_version = 2.10.2

and did this

        cat /usr/local/etc/postfix/main.cf
                mail_owner = postfix
                setgid_group = maildrop
                myhostname = mail-new.artemis.lan
                mydomain = artemis.lan
                myorigin = $mydomain
                master_service_disable = inet
                mydestination =
                local_transport = error:5.1.1 local delivery is disabled
                alias_database =
                alias_maps =
                local_recipient_maps =
                relayhost = [mail.artemis.lan]
                default_database_type = cdb
                indexed = ${default_database_type}:${config_directory}/
                inet_interfaces = loopback-only
                smtp_generic_maps = ${indexed}generic
                virtual_alias_maps = ${indexed}virtual

        cat /usr/local/etc/postfix/generic
                root        hostmaster+root=mta1

        cat /usr/local/etc/postfix/virtual
                root        hostmaster
                postmaster  root

        cat /usr/local/etc/postfix/Makefile
                MTAADMIN=hostmaster

                all: virtual.cdb generic.cdb

                generic: Makefile
                        @echo Creating $@
                        @rm -f $@.tmp
                        @printf '%s\t%s+root=%s\n' root $MTAADMIN `uname
                        -n` > $@.tmp
                        @mv $@.tmp generic

                %.cdb: %
                        postmap cdb:$<

Then I

        cd /usr/local/etc/postfix
        make
        systemctl restart postfix.service

I notice here that 'generic' has been changed by the Make to

        cat virtual
                root        hostmaster
                postmaster  root

        cat generic
                root    TAADMIN+root=mail-new   <=====================
                ???

and when I test

        sendmail -i -f root -t <<EOF
        From: root
        To: root
        Subject: test

        testing
        EOF

mail IS sent from this box, and IS received at the other server.  But on
the receiving end, the "Return-Path", "From" & "TO" headers are:

        Return-Path: TAADMIN+root=mail-...@artemis.lan
        From: TAADMIN+root=mail-...@artemis.lan
        To: TAADMIN+root=mail-...@artemis.lan

which just looks ... odd :-/  The "M" in "MTAADMIN" is missing, the To:
should be hostmaster..., ...

My GOAL is to have email from this null client sent, and received as,

        From == root=mail-...@artemis.lan
        To   == hostmaster+mail-...@artemis.lan

I suspect that this requires fixes/changes to my Makefile.  I haven't
figured out its syntax yet, and if I'm doing it right.

What's the right config change to get to my specific goal?

Arty

Reply via email to