Hi,
i am on the latest OpenBSD release and i have a little email server
running. It works perfect, very stable. I host the following domains:
foo.com
bar.com
Both of them have some email accounts on them.
us...@foo.com
us...@foo.com
us...@bar.com
The config is as follows:
##
## Tables
##
table aliases file:/etc/mail/aliases
table vdomains file:/etc/mail/table-vdomains
table vaddr file:/etc/mail/table-vaddr
table credentials file:/etc/mail/table-credentials
table filter-dyndns file:/etc/mail/table-filter-dyndns
table vmailstub file:/etc/mail/table-vmailstub
##
## Listen
##
listen on lo0
listen on egress tls filter { "check-dyndns" "check-rdns" "check-fcrdns"
"dnsbl" }
listen on egress port submission tls-require auth <credentials>
listen on egress port 25255 tls-require auth <credentials>
##
## Actions
##
action "outbound" relay
action "local-lmtp" lmtp "/var/dovecot/lmtp" rcpt-to virtual <vmailstub>
##
## Matches
##
match from any for domain <vdomains> rcpt-to <vaddr> action "local-lmtp"
match auth from any for any action "outbound"
Here are the tables:
# table-vdomains
foo.com
bar.com
# table-vaddr
us...@foo.com
us...@foo.com
us...@bar.com
user1al...@foo.com
# table-vmailstub
user1al...@foo.com us...@foo.com
@ dovecot-worker
Up until this point it works perfectly (i remove the TLS stuff from the
email for clarity)
us...@foo.com, us...@foo.com and us...@bar.com can access there emails
via IMAP over Dovecot, OpenSMTPD hands of emails via lmtp to Dovecot and
emails send to user1al...@foo.com are stored in the us...@foo.com account.
But here is my problem, now i want to add "forwardings" for some
accounts. An email send to us...@foo.com should be stored in the mailbox
but also send ot us...@external-domain-gmail.com. Sadly i have no idea
on how to do that. Any ideas? Maybe i am not finding stuff because
"forwarding" is the wrong term for this? Maybe you could be so kind to
send me off in the right direction.
That would be sooo nice of you!
Thanks and greetings
Leo