Dear list,

I have setup opensmtpd for my domain, say 'example.com' that
has virtual users and a typical spampd / dkim / dovecot setup.

The current config is here: https://termbin.com/jyfe

Now I'd like to add handling of another domain, specifically
expansion of an alias of that. Say I have an MX entry on
anotherdomain.com for example.com and want to expand
mails to [email protected] to a dozen external addresses.

What I have tried so far:

- Adding the alias and the addresses to the /etc/mail/aliases 
  file

- Adding anotherdomain.com to /etc/mail/domains

- Adding a virtual user entry matching [email protected]
  to a local people that is in the aliases file containing the
  expansions

- debugging it all with 'smtpctl trace all' but got no additional
  information out of it.

What I see is that opensmtpd rejects it either with Invalid recipient
or 5.2.4 Mailing list expansion problem.

My guess is that it is handling mails over to the dovecot lmtp which
of course does not know about the aliases and thus fails?

And I am unable to figure out which action would be appropriate to
have it expand the mails for 'anotherdomain.com' properly without
dropping into the imap action I have defined.

Has anyone here a suggestion what I could try?

Kind regards,

Christian

-- 
May you be peaceful, may you live in safety, may you be free from
suffering, and may you live with ease. Also encrypt mails to me:
gpg key 0x068757350D0328634B833B65C537678F6BC627B5


Reply via email to