[email protected] (Peter Fraser), 2016.05.05 (Thu) 19:46 (CEST):
> My scenario:
> 
> I have a OpenBSD  processing email for several domains, doing virus
> scanning, and spam processing.  The OpenBSD system was running
> sendmail and I would like to convert it to smtpd
> 
> All the incoming email is then forwarded on to one of two Microsoft
> Exchange servers,  depending upon the destination email address.
> 
> Several email incoming email address a mapped to a smaller number of
> target email addresses.
> 
> I have included a small  test example of what I naively thought the
> smtpd.conf should look like.  The example a simple configuration for
> outgoing email, and only tries to deal with one exchange server.
> 
> listen on all thinkageLan = "192.102.11.0/24" ksmartLan   =
> "205.189.88.110/28"
> 
> table thinkageComputers         { $thinkageLan } 
> table thinkageUsers { [email protected], [email protected] } 
> table thinkageDomains
> { thinkage.ca, thinkage.com, mainboss.com } table
> thinkageVirtualMapping { [email protected][email protected],
> [email protected][email protected] }
> 
> accept from source <thinkageComputers> for any virtual
> <thinkageVirtualMapping> recipient <thinkageUsers> relay via
> "smtp://exchange.thinkage.ca"
> 
> This configuration file generates.
> 
> /etc/mail/smtpd.conf:11: syntax error
> 
> after a lot of playing around I managed to figure out the syntax
> according to the man page is correct but actually is a statement that
> "virtual" cannot be used the "relay via".
> 
> I have tried various approaches to implement the effect I want, but so
> far no are satisfactory.  I am wonder what is the best method to
> create a working configuration.

Why doas your forwarding-only smtpd need to know about any
address-to-user mapping? It just needs to know for which addresses to
relay (and for which not). "recipients" is enough for that, isn't it?

Apart from that, this smtpd.conf(8) statement makes me think your accept
line does something different than you think it does:

for any virtual <vmap>
        Make the rule match regardless of the domain it is sent to.  
        The vmap table will be used as the virtual domain mapping.
                                                   ^^^^^^

Is this a documentation bug? Shouldn't it say:
"The vmap table will be used as the virtual user mapping"
instead of:
"The vmap table will be used as the virtual domain mapping"

Bye, Marcus

> !DSPAM:572b872e37301759011372!

-- 
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]

Reply via email to