Hello! I have several email identities (work, private, etc...). Currently I use one external MTA as smarthost, but sometimes emails are rejected by MTAs out there. For example web.de rejects mail from gmx.de addresses that don''t use gmx''s mail servers. I would like to use multiple smarthosts mapped to my from addresses. Google gives me some hints, but either they are for exim3 or not appropriate for this fucking exim4-config macro mess. Isn''t there any simple way to do it with debian!? Hans -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
What I''d do to achieve your aim is write multiple routers making use of the manual route router. Each router would include a senders directive that determines which sender domain it is applicable for. You configure your Exim as a full Internet server - do not configure it as one that uses a smarthost - and ensure you place your routers ahead of the provided router called dnsrouter: Here is some working code for one such router - it achieves my aims - you''ll need to modify it (several times) to achieve yours. smart_route: driver = manualroute transport = remote_smtp domains = !+local_domains senders = *@+protected_domains route_list = * smarthost1.tld:smarthost2.tld This code sends out via smarthost1.tld most of the time, and will try smarthost2.tld if smarthost1 is unavailable. It only does this if the sender''s email address is someone@protected_domains. Protected_domains is a domain list (in my case its a subset of local_domains). If you write several of those, with different values for the senders directive and a different smarthost listed in the route list, and stick them all ahead of dnsrouter: you should be fine. Regards Neil ------------------------------------------------------------------------------------ Scanned for viruses, spam and offensive content by CensorNet MailSafe Professional Web & E-mail Filtering from www.censornet.com
Hello Hans, Hans Manz, 19.01.2007 (d.m.y):> I have several email identities (work, private, etc...). Currently > I use one external MTA as smarthost, but sometimes emails are > rejected by MTAs out there. For example web.de rejects mail from > gmx.de addresses that don''t use gmx''s mail servers. > > I would like to use multiple smarthosts mapped to my from addresses. > Google gives me some hints, but either they are for exim3 or not > appropriate for this fucking exim4-config macro mess. Isn''t there > any simple way to do it with debian!?Look at <http://linuxer.onlinehome.de/apps/exim.htm#go11>. Has been working for me since years. Gruss/Regards, Christian Schmidt -- Es gibt wenig Frauen, deren Wert ihre Sch?nheit ?berdauert. -- Fran?ois de La Rochefoucault -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.alioth.debian.org/pipermail/pkg-exim4-users/attachments/20070121/eb15aba1/attachment.pgp
On Sun, Jan 21, 2007 at 05:01:05PM +0100, Christian Schmidt wrote:> Look at <http://linuxer.onlinehome.de/apps/exim.htm#go11>. > Has been working for me since years.If this has been working for you and is still working, you are not using exim 4. This HOWTO is for exim 3. Don''t use. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don''t trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835
Hello Marc, Marc Haber, 21.01.2007 (d.m.y):> On Sun, Jan 21, 2007 at 05:01:05PM +0100, Christian Schmidt wrote: > > Look at <http://linuxer.onlinehome.de/apps/exim.htm#go11>. > > Has been working for me since years. > > If this has been working for you and is still working, you are not > using exim 4. This HOWTO is for exim 3. Don''t use.Sorry, but I forgot: The setup can easily be adapted to work with exim4 - just as it does on my system. Example taken from my routers'' section: # Send mail from *@gmx.de via mail.gmx.net gmx: condition = ${if eq {${lc:$sender_address_domain}}{gmx\.de}{true}fail}: driver = manualroute domains = ! +local_domains transport = remote_smtp route_list = "* mail.gmx.net" Gruss/Regards, Christian Schmidt -- Die Dimensionen der Knollenfr?chte sind umgekehrt proportional der Kapazit?t des zentralen Steuerungsorgans des jeweils anbauenden Agronomen. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.alioth.debian.org/pipermail/pkg-exim4-users/attachments/20070121/57259d87/attachment.pgp