On Mon, Jan 05, 2009 at 12:42:10AM +0100, Patrick Ben Koetter wrote: > * Victor Duchovni <postfix-users@postfix.org>: > > ... > > > > Sending them off to a LMTP server is a transport map job: > > > > > > recipi...@example.com lmtp:localhost > > > > The correct syntax (if the default port is OK) is: > > > > recipi...@example.com lmtp:inet:localhost > > > Maybe its just me, but I had not looked for this notation in lmtp(8), but in > transport(8), where I was looking for transport examples. May I suggest an > example of this is added to transport(5)?
No, the syntax of the nextop is transport dependent, each delivery agent documents the nexthop syntax it supports. The right place to find LMTP nexthop syntax is in the lmtp(8) manpage. > > Why per-recipient transport lookups? Often better to rewrite to a domain > > where the entire domain is handled by lmtp(8). > > Agreed. In my case I am after a mixed domain - some mails go to typical > mailboxes and some will be sent of to a LMTP server. What is the address class of the "typical" mailboxes? If this is "local", you need to extend local_recipient_maps, not virtual_mailbox_maps. > > Use virtual_mailbox_maps. > > > > > Can I reuse my transport map and add it to local_recipient_maps, > > > virtual_alias_maps or virtual_mailbox_maps as required? > > > > Don't add $transport_maps to virtual_mailbox_maps, but if per-recipient > > transport entries are the right solution, use a common table that you > > add to both: > > > > lmtp_user_transport_maps = <maptype>:<mapname> > > transport_maps = ... $lmtp_user_transport_maps > > virtual_mailbox_maps = ... $lmtp_user_transport_maps > > That's what I had had on my mind. Thanks. Provided the other mailboxes are also virtual. -- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:majord...@postfix.org?body=unsubscribe%20postfix-users> If my response solves your problem, the best way to thank me is to not send an "it worked, thanks" follow-up. If you must respond, please put "It worked, thanks" in the "Subject" so I can delete these quickly.