Bug#541473: exim4: Per-user smarthost settings

Jan Braun janbraun at gmx.de
Fri Oct 2 22:31:59 BST 2020

Package: exim4
Version: 4.94-8
Followup-For: Bug #541473

While Marc Haber gives reasons for not doing this in
, I found the following:

| # Fix to use user specific smarthosts. Save the configured smarthost
| # in DCdefault_sh and do a lookup for DCsmarthost.
| DCdefault_sh = DCsmarthost
| DCsmarthost == ${lookup{$sender_address}lsearch{CONFDIR/smarthost_users}{$value}{DCdefault_sh}}

Dropping this fragment into /etc/exim4/conf.d/main/foo (if using split
config), calling update-exim4.conf and restarting exim makes exim
evaluate the /etc/exim4/smarthost_users file that allows overriding the
default smarthost on a per-sender-address. Just plop
foo at domain:smarthost
pairs in there and make it group-readable by Debian-exim.

I can't judge whether this is a gross hack or suitable for inclusion in
Debian, but hopefully it helps somebody.

(I'd also be grateful if anyone could point out an MTA that is designed
for handing off mails to multiple smarthosts like this, while also being
able to do local delivery.)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-exim4-maintainers/attachments/20201002/86742d7c/attachment.sig>

More information about the Pkg-exim4-maintainers mailing list