I am setting up a new mailserver with opensmtpd, and am having trouble configuring addresses:
- The `root` Unix account accepts email successfully as `[email protected]`. - I created a `root` alias pointing to an external email address, and it returns "550 invalid recipient". - I created a `lillian` alias pointing to root, and it accepts email successfully as `[email protected]`, to root's mbox file. - I created a `lillian` alias pointing to an external email address, and it returns "550 invalid recipient". - I created a `lillian` Unix account, and it returns "550 invalid recipient". All of the above were configured individually, reverting one before trying the next (other than the first one of course, since there is no change to revert). I am running `newaliases` after updating the alias file. I have also tried with different usernames, with no luck. What am I missing here? Why does root accept email (except when aliased to an external email address) but no other accounts can? Below is my configuration file. I am using this same configuration with replaced domain names on a different mailserver and it is working correctly. Both servers are running opensmtpd 7.5.0-portable. pki hl cert "/etc/letsencrypt/live/mail.hacklab.to/fullchain.pem" pki hl key "/etc/letsencrypt/live/mail.hacklab.to/privkey.pem" filter "rdns" phase connect match !rdns disconnect "550 DNS error" filter "fcrdns" phase connect match !fcrdns disconnect "550 DNS error" filter rspamd proc-exec "filter-rspamd" table aliases file:/etc/opensmtpd/aliases listen on ens3 tls pki hl filter { "rdns", "fcrdns" } hostname mail.hacklabto listen on lab-wg port submission tls pki hl filter rspamd hostname mail.hacklab.to action "local_mail" mbox alias <aliases> action "outbound" relay helo mail.hacklab.to match from any for domain "hacklab.to" action "local_mail" match for domain "hacklab.to" action "local_mail" match for any from src 192.168.155.8/32 action "outbound" match for any from src 192.168.155.9/32 action "outbound"
