Thank you both for your input.

I got it working on the online server by editing the mail spool transport.
It was minimal config, which is nice.

## transport/30_exim4-config_mail_spool

# This transport is used for local delivery to user mailboxes in traditional
# BSD mailbox format.
#
mail_spool:
  debug_print = "T: appendfile for $local_part@$domain"
  driver = appendfile
  file = /var/mail/$domain
  delivery_date_add
  envelope_to_add
  return_path_add
  group = mail
  mode = 0660
  mode_fail_narrower = false
  use_bsmtp

On Sun, 8 Jan 2017 at 03:11 Phil Pennock <[email protected]> wrote:

On 2017-01-06 at 18:18 +0000, Fergus Leen wrote:
> I have managed to setup the router and transport to write bSMTP on the
> offline exim4. This is then collected, transferred to a connected server
> and then sent using exim4 -bS , but I am struggling to take received mail
> via smtp and writing to bSMTP for transfer in the other direction.
>
> We need SMTP received over TCP written as bSMTP into folders based on the
> subdomain of  subdomain.domain.com. There is no need for mail to be
> delivered locally.

How is the router/transport on the offline Exim different from the
router/transport on the online Exim ?

They should be about the same: the format is the format.  I _suspect_
that you're not handling that Routers are an ordered list, and
online/offline is usually handled in distinct stages, including with
+local_domains references.

So the mechanics of creating the bSMTP is likely all present and you're
missing the preconditions or ordering to make sure this is actually
invoked.  Probably.

-Phil
-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to