Andy, you go above and beyond - many thanks
I knew it was a hack and I should get into exim4 configuration properly :(
Regards
Chris
On Sat, Oct 1, 2022 at 2:20 PM Andy Smith via BitFolk Users <
users(a)mailman.bitfolk.com> wrote:
Hello,
On Sat, Oct 01, 2022 at 08:05:34AM +0100, Chris Wallace via BitFolk Users
wrote:
Problem is that the default behaviour of exim4 is
to use (for root) an
envelope-from address of
root(a)aremiti36.vps.bitfolk.com
I added root: chris(a)bristoltrees.space to etc/email-addresses
Okay, that will work, not something I usually go for so don't know
the full repercussions (if any) though.
Normally if I want the base domain to be one thing but not the same
as the hostname, I set it in /etc/mailname. So,
$ sudo echo 'bristoltrees.space' | tee /etc/mailname
All unqualified addresses will then be @bristoltrees.space.
I then would have an entry in /etc/aliases for "root" to send it to
somewhere that I read; ultimately there will be a copy at
andy(a)bitfolk.com.
Another thing you might want to check out is what it is sending as
its hostname in HELO. If you need to set that you can do so either
in /etc/exim4/exim4.conf.localmacros for single file config or in
something like /etc/exim4/conf.d/main/000_my_localconfig (you'll be
creating this file and its name doesn't matter much). Contents:
MAIN_HARDCODE_PRIMARY_HOSTNAME = mail.bristoltrees.space
You'd then rebuild the config with:
$ sudo update-exim4.conf
I'm unsure if you'd have to restart the actual mail server after
this, but better safe than sorry so
$ sudo systemctl restart exim4
only downside so far is that bounces go missing?
Well that shouldn't happen! Logs should tell why.
Cheers,
Andy
--
https://bitfolk.com/ -- No-nonsense VPS hosting
_______________________________________________
BitFolk Users mailing list <users(a)mailman.bitfolk.com>
You're subscribed as <kit.wallace(a)gmail.com>
Unsubscribe: <
https://mailman.bitfolk.com/mailman/postorius/lists/users.mailman.bitfolk.c…
or send an email to
<users-leave(a)mailman.bitfolk.com>