On Sat, 16 Jan 2016, Viktor Dukhovni wrote:

On Sat, Jan 16, 2016 at 04:00:48PM +0800, Paul Goyette wrote:

        my_smtp:12345  inet  n  -  n  -  -  smtpd

But it's not clear to me if this syntax will define a new listener (in
which case this would belong on my primary-MX machine) or if this would
enable an _outgoing_ connection to primary-MX's port 12345 (in which
case this would belong on the backup-MX machine).

Does the documentation patch below help:

Yes, it helps.

But what I still don't see is how would I configure things so that:

        * Messages received locally (either via pickup, or from a
          local interface address) AND for $mydestination get relayed
          to my_nexthop:12345

        * All other messages received get processed "in the default
          manner" (look up the destination's MX, and forward/relay
          via normal port smtp/25 connection)

I now know how to set up the listener on my_nexthop, but I still don't
see what to configure to force outgoing packets to use port 12345.  Your
doc-patch tells me that I should have a 'smtp unix ... smtp' line, but
not how to attach a port number.

:)

PS Thanks for the doc update - it really does improve clarity!


diff --git a/proto/master b/proto/master
index 8f54459..740c5d5 100644
--- a/proto/master
+++ b/proto/master
@@ -55,8 +55,12 @@
#       Specify one of the following service types:
# .RS
# .IP \fBinet\fR
-#      The service listens on a TCP/IP socket and is accessible
-#      via the network.
+#      The service listens on a TCP/IP socket and is accessible via the
+#      network.  Services that receive incoming mail use this service type,
+#      either directly as with smtpd(8), qmqpd(8) or indirectly as with
+#      postscreen(8).  Do not confuse the smtp/inet service which receives
+#      inbound mail via smtpd(8) with the smtp/unix service which sends
+#      outbound mail via smtp(8).
#
#       The service name is specified as \fIhost:port\fR, denoting
#       the host and port on which new connections should be
@@ -79,8 +83,14 @@
#       of hard-coding loopback IP address information in master.cf
#       or in main.cf.
# .IP \fBunix\fR
-#      The service listens on a UNIX-domain socket and is accessible
-#      for local clients only.
+#      The service listens on a UNIX-domain socket and is accessible for local
+#      clients only.  Delivery agents that implement Postfix \fItransports\fR
+#      use this service type.  Thus, for example, master.cf(5) entries for
+#      outbound mail sent by smtp(8), have \fBunix\fR as their service type.
+#      Other delivery agents include lmtp(8), local(8), virtual(8), pipe(8),
+#      error(8), retry(8) and discard(8).  Do not confuse the smtp/inet
+#      service which receives inbound mail via smtpd(8) with the smtp/unix
+#       service which sends outbound mail via smtp(8).
#
#       The service name is a pathname relative to the Postfix
#       queue directory (pathname controlled with the \fBqueue_directory\fR

!DSPAM:569a079e14508802112626!



+------------------+--------------------------+------------------------+
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:      |
| (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com   |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org |
+------------------+--------------------------+------------------------+

Reply via email to