The Subject: is misleading. The OP wants merely to shorten this 
working setting:

> >>>>>postconf virtual_transport
> >>>>virtual_transport = lmtp:[localhost]:lmtp-deliver
> >>>>
> >>>>this works fine.

... to something like this:

> >>>>out of curiosity, i wondered if the particulars could be
> >>>>somehow moved into a service definition in master.cf - e.g.
> >>>>
> >>>>virtual_transport = dovecot

But since the actual transport is lmtp(8), it appears that this 
cannot be done. As mouss pointed out:

> >as per http://www.postfix.org/lmtp.8.html you can specify 
> >lmtp_port (default is 24). so you could do -o lmtp_port=10026

and with a master.cf entry:

dovecot    unix  -       -       n       -       -       lmtp
        -o lmtp_port=10026

He can use "virtual_transport = dovecot:[localhost]" (If this is the 
only use of lmtp, lmtp_port=10026 could as well be set in main.cf.)

One final trick is possible: a DNS hack such that any domains which 
would be delivered by this virtual_transport all resolve with an MX 
record pointing to localhost.

In fact if the Dovecot LMTP port is listening on the external IP 
address[es], this might work without a DNS hack. I'm not sure if 
that would cause a "loops back to myself" error, however.
-- 
  http://rob0.nodns4.us/ -- system administration and consulting
  Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:

Reply via email to