Hi All, I am trying to learn how to use exim "The Debian Way" I would like to add a transport and router to let me pipe an email through a program if it comes to one, special address In the single file mode - which file should I put my extra config in? TIA Simon -- Simon Faulkner 01538 303 900 http://dpnet.co.uk Dedicated Programmes Limited Staffordshire Moorlands
On Wed, May 28, 2008 at 05:31:14PM +0100, Simon Faulkner wrote:> I would like to add a transport and router to let me pipe an email > through a program if it comes to one, special address > > In the single file mode - which file should I put my extra config in?For split configuration, put your transport into /etc/exim4/conf.d/transports/some_file_name, and your router into /etc/exim4/conf.d/routers/some_file_name. Routers are processed in alphabetical order. For unsplit configuration, do your changes in /etc/exim4/exim4.conf.template as you would do with a normal exim configuration. And do not forget to visit /usr/share/doc/exim4-base, especially the README.Debian. 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 3221 2323190
On Wed, 2008-05-28 at 17:31 +0100, Simon Faulkner wrote:> Hi All, > > I am trying to learn how to use exim "The Debian Way" > > I would like to add a transport and router to let me pipe an email > through a program if it comes to one, special address > > In the single file mode - which file should I put my extra config in? > > TIA > > SimonIf the address corresponds to a user account on your system, you could simply set up a pipe in the .forward file in that account''s home directory. The only thing you might need to change would be the exim option that controls whether user .forward files can execute pipes (I''m not sure what the default is). A basic pipe transport is already there (conf.d/transport/30_config_address_pipe in split config.)
On Wed, May 28, 2008 at 01:14:44PM -0700, Ross Boylan wrote:> If the address corresponds to a user account on your system, you could > simply set up a pipe in the .forward file in that account''s home > directory. The only thing you might need to change would be the exim > option that controls whether user .forward files can execute pipes (I''m > not sure what the default is).I consider that a bad idea and would prefer going through a dedicated router/transport pair. 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 3221 2323190
On Fri, 2008-05-30 at 01:18 +0200, Marc Haber wrote:> On Wed, May 28, 2008 at 01:14:44PM -0700, Ross Boylan wrote: > > If the address corresponds to a user account on your system, you could > > simply set up a pipe in the .forward file in that account''s home > > directory. The only thing you might need to change would be the exim > > option that controls whether user .forward files can execute pipes (I''m > > not sure what the default is). > > I consider that a bad idea and would prefer going through a dedicated > router/transport pair. >How come? Just curious. Ross
On Thu, May 29, 2008 at 05:01:53PM -0700, Ross Boylan wrote:> On Fri, 2008-05-30 at 01:18 +0200, Marc Haber wrote: > > On Wed, May 28, 2008 at 01:14:44PM -0700, Ross Boylan wrote: > > > If the address corresponds to a user account on your system, you could > > > simply set up a pipe in the .forward file in that account''s home > > > directory. The only thing you might need to change would be the exim > > > option that controls whether user .forward files can execute pipes (I''m > > > not sure what the default is). > > > > I consider that a bad idea and would prefer going through a dedicated > > router/transport pair. > > > How come? Just curious.It might not be desireable to allow pipes for _all_ users, and a router/transport pair concentrates the MTA configuration where it belongs instead of spreading it through all user''s home directories. Additionally, it allows setting options that are better tailored to the application at hand. 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 3221 2323190