Hello, I would like an instance of exim which delivers to a smarthost to block all recipients, except those in a few domains. Say example.com will be sent on to the smarthost, the rest will be blocked. Ideally it should only do this blocking if the sender is exampleuser at server6.example.com, though that''s not strictly necessary. I tried to do this in local_host_blacklist by blocking everything, except example.com: 0.0.0.0/24 !example.com But that didn''t work. Thank you, Jeroen
I had to do something similar to this just the other week. So I configured a domainlist containing the domains I was willing to send mails for, and then I added a *senders* directive to the standard smarthost router. Works a treat. Regards Neil Jeroen van Aart wrote:> Hello, > > I would like an instance of exim which delivers to a smarthost to block > all recipients, except those in a few domains. Say example.com will be > sent on to the smarthost, the rest will be blocked. Ideally it should > only do this blocking if the sender is exampleuser at server6.example.com, > though that''s not strictly necessary. > > I tried to do this in local_host_blacklist by blocking everything, > except example.com: > > 0.0.0.0/24 > !example.com > > But that didn''t work. > > Thank you, > Jeroen > > _______________________________________________ > Pkg-exim4-users mailing list > Pkg-exim4-users at lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/pkg-exim4-users > > ------------------------------------------------------------------------------------ > Scanned for viruses, spam and offensive content by CensorNet MailSafe > > Professional Web & E-mail Filtering from www.censornet.com > Shortlisted for the BETT Awards 2008! www.bettawards.co.uk >-- Neil Briscoe CensorNet Ltd - professional & affordable Web & E-mail filtering neil.briscoe at censornet.com web: www.censornet.com tel: 0845 230 9592 / fax: 0845 230 9591 / main office: 0845 230 9590 snail: The Old Post Office, Bristol Rd, Hambrook, Bristol BS16 1RY. UK. MSN: nbriscoeuk at hotmail.co.uk CensorNet Ltd is a registered company in England & Wales No. 05518629 VAT registration number 901-2048-78 Any views expressed in this email communication are those of the individual sender, except where the sender specifically states them to be the views of a member of CensorNet Ltd. CensorNet Ltd does not represent, warrant or guarantee that the integrity of this communication has been maintained nor that the communication is free of errors or interference. ------------------------------------------------------------------------------------ Scanned for viruses, spam and offensive content by CensorNet MailSafe Professional Web & E-mail Filtering from www.censornet.com Shortlisted for the BETT Awards 2008! www.bettawards.co.uk
Neil S. Briscoe wrote:> I had to do something similar to this just the other week. So I > configured a domainlist containing the domains I was willing to send > mails for, and then I added a *senders* directive to the standard > smarthost router.Of course I was tired and made a stupid mistake, I had to use 0.0.0.0/0 for it to make sense. Though it feels like a ridiculous idea. How did you configure that domainlist? In one of the standard files debian has configured, like local_host_blacklist and local_host_whitelist or a a custom configuration? Thank you, Jeroen
Jeroen van Aart wrote:> Of course I was tired and made a stupid mistake, I had to use 0.0.0.0/0 > for it to make sense. Though it feels like a ridiculous idea. > How did you configure that domainlist? In one of the standard files > debian has configured, like local_host_blacklist and > local_host_whitelist or a a custom configuration? >Pardon the delay, I''ve been away for a few days. I added the domainlist to a file called /etc/exim4/exim4.conf.localmacros This is the documented file (in a non-split configuration) to add your own macros to. It avoids modifying the standard file too much and is parsed before exim4.conf.template when building the finished configuration file. Having defined the domain list, I added the senders directive to the smarthost router in the latter file. Regards Neil -- Neil Briscoe CensorNet Ltd - professional & affordable Web & E-mail filtering neil.briscoe at censornet.com web: www.censornet.com tel: 0845 230 9592 / fax: 0845 230 9591 / main office: 0845 230 9590 snail: The Old Post Office, Bristol Rd, Hambrook, Bristol BS16 1RY. UK. MSN: nbriscoeuk at hotmail.co.uk CensorNet Ltd is a registered company in England & Wales No. 05518629 VAT registration number 901-2048-78 Any views expressed in this email communication are those of the individual sender, except where the sender specifically states them to be the views of a member of CensorNet Ltd. CensorNet Ltd does not represent, warrant or guarantee that the integrity of this communication has been maintained nor that the communication is free of errors or interference. ------------------------------------------------------------------------------------ Scanned for viruses, spam and offensive content by CensorNet MailSafe Try CensorNet free for 14 days. Provide Internet access on your terms. Visit www.censornet.com for more information.