I’m configuring a debian server and I need a mail server for all notifications (fail2ban, logwatch, etc). I need those notification to be send to a specific email address. I have an smtp account with my domain I can use.
I successfully configured exim to use this smtp server by using the "satellite" mode here is my
dc_eximconfig_configtype='satellite' dc_other_hostnames='' dc_local_interfaces='127.0.0.1' dc_readhost='mydomain.com' dc_relay_domains='' dc_minimaldns='false' dc_relay_nets='' dc_smarthost='mysmtp-server:587' CFILEMODE='644' dc_use_split_config='false' dc_hide_mailname='true' dc_mailname_in_oh='true' dc_localdelivery='maildir_home'
This works great for outgoing mail but when I send a mail to @localhost the mail is sent to my smtp server and is lost.
I want exim to store the mail to @localhost in Maildir in home of my local users.
I can also use postfix if needed.