It is recommended to use macvlan/ipvlan network for container so real user IP will flow within inn2 as by default it will be docker's network gateway for compose project. For that compose file will looks like:
```yaml
---
services:
inn:
image:"code.pztrn.name/containers/inn2:2.7.4"
restart:always
volumes:
- "./data/db:/inn2/db"
- "./data/etc:/inn2/etc"
- "./data/log:/inn2/log"
- "./data/run:/inn2/run"
- "./data/spool:/inn2/spool"
- "./data/tmp:/inn2/tmp"
networks:
inn2-ipvlan:
ipv4_address:192.168.168.168# ip address from real LAN.
ipv6_address:fd00:0:1:2::168# ip address from real LAN.
ulimits:
nofile:
soft:65535
hard:65535
networks:
inn2-ipvlan:
driver:ipvlan
driver_opts:
parent:ens18# put your real interface name here.
ipvlan_mode:l2
ipam:
config:
- subnet:192.168.168.160/27# put real LAN subnet here.
gateway:192.168.168.161# put real LAN gateway here.
ip_range:192.168.168.168/32# ip address from real LAN.
- subnet:fd00:0:1:2::/64# put real LAN subnet here.
gateway:fd00:0:1:2::1# put real LAN gateway here.
ip_range:fd00:0:1:2::168/128# ip address from real LAN.
enable_ipv6:true
```
Note that this code is built to support dual-stack (IPv4+IPv6). You should either:
1. Remove IPv6 things if not using it.
2. Set up SNAT6 for outgoing connections to work (on host or router).
3. Add globally routable address to IPAM config and network definition in container.
There is a section in documentation about cron jobs you should configure. This docker image currently isn't supporting these, so configure it separately with lines like:
```shell
03 * * * docker compose run inn news.daily expireover lowmark
As this container has no postfix installed (why do you might ever need it here?) you can use [ssmtp](https://wiki.debian.org/sSMTP) which installed in container to get mails sent over SMTP.