Unfortunately, one can only do aliases for local delivery (“deliver” needs to be in there, not relay if you have alias on that line) AFAIK there’s no accepted syntax that allows to even specify it in the configuration.
[I’d love to be proven wrong, as I need it as well] So, you have 2 paths as a workaround: - either you do local delivery for those addresses you need, alias them and then make sure the alias sends it off of the machine again (picking it up with the relay rile) - either you teach you relay machine all aliases for all of your servers (not feasible on anything but a trivial one-man show example IMHO) Swa > On 07 Sep 2016, at 00:34, Edgar Pettijohn <[email protected]> wrote: > > On 16-09-06 21:53:14, Mik J wrote: >> Hello, >> This is a very simple question but yet didn't find the answer.I have a >> machine m1 which is a webserver. On openbsd there are daily reports and I >> want them to be sent to an external address. >> # grep ^root /etc/mail/aliasesroot: [email protected] >> modifying the aliases files I run the command newaliases >> My opensmtpd configuration is very simplelisten on lo0table aliases >> file:/etc/mail/aliasesaccept from local for any relay via smtp://192.168.1.1 >> As I'm writing this message I realise that the line table aliases >> file:/etc/mail/aliases is useless, but fair enough >> My problem is when I do: # mail -s "Resolv" root < /etc/resolv.conf it >> writes to [email protected] instead of [email protected] >> it looks like the aliases file is ignored. Do you know why ? >> What's the right way to do it ?My web server should use my local mail server >> as a relay which is going to sign emails etc. >> Thank you > Your message is all globbed up. Please resend with full smtpd.conf. > > Thanks, > -- > Edgar Pettijohn > > -- > You received this mail because you are subscribed to [email protected] > To unsubscribe, send a mail to: [email protected] >
