Package: exim4 Version: 4.94-8 Followup-For: Bug #541473 Hi, While Marc Haber gives reasons for not doing this in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=750122#20 , I found the following:
https://debianforum.de/forum/viewtopic.php?t=147183#p970884 | # 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@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.) regards, Jan
signature.asc
Description: PGP signature