Hello, I have two machines which are locally connected: "webserver" and "mailserver". I would like to transfer any mails which are generated on "webserver" (sources are apache, php, internal processes) to "mailserver", running a full-blown exim4 4.60. There''s no need to send emails TO "webserver". What is the simplest way to accomplish this task? Do I need a MTA on "webserver" at all? If I need one, I would prefer an exim-based solution. Does anybody could direct me to a simple config for exim4? Thanks for any hints Peter
On Thu, Jan 26, 2006 at 02:16:19PM +0100, Peter Velan wrote:> Date: Thu, 26 Jan 2006 14:16:19 +0100 > From: Peter Velan <pv0001@dynapic.net> > To: pkg-exim4-users@lists.alioth.debian.org > Subject: [Pkg-exim4-users] Simple mail forwarder > > Hello, > > I have two machines which are locally connected: "webserver" and > "mailserver". > > I would like to transfer any mails which are generated on "webserver" > (sources are apache, php, internal processes) to "mailserver", running a > full-blown exim4 4.60. There''s no need to send emails TO "webserver". > > What is the simplest way to accomplish this task? > > Do I need a MTA on "webserver" at all? > > If I need one, I would prefer an exim-based solution. Does anybody could > direct me to a simple config for exim4? >Something involving this in exim.conf on your webserver begin routers smart_route: driver = manualroute domains = !+local_domains transport = remote_smtp route_list = mailserver no_more There are probably examples in the docs/wiki. Steven. -- The plot was designed in a light vein that somehow became varicose. -- David Lardner
On Thu, Jan 26, 2006 at 02:16:19PM +0100, Peter Velan wrote:> Date: Thu, 26 Jan 2006 14:16:19 +0100 > From: Peter Velan <pv0001@dynapic.net> > To: pkg-exim4-users@lists.alioth.debian.org > Subject: [Pkg-exim4-users] Simple mail forwarder > > Hello, > > I have two machines which are locally connected: "webserver" and > "mailserver". > > I would like to transfer any mails which are generated on "webserver" > (sources are apache, php, internal processes) to "mailserver", running a > full-blown exim4 4.60. There''s no need to send emails TO "webserver". > > What is the simplest way to accomplish this task? > > Do I need a MTA on "webserver" at all? > > If I need one, I would prefer an exim-based solution. Does anybody could > direct me to a simple config for exim4? > > Thanks for any hints > Peter >Silly me, Debian install. Run "dpkg-reconfigure exim4-config" on your webserver and do the smarthost configuration. You might also want to look at /etc/exim4/update-exim4.conf.conf You''ll need: dc_eximconfig_configtype=''smarthost'' dc_smarthost=''mailserver'' Steven. -- Dying is a very dull, dreary affair. And my advice to you is to have nothing whatever to do with it. -- W. Somerset Maugham (last words)
On Thu, Jan 26, 2006 at 02:03:50PM +0000, Steven Wayne wrote:> On Thu, Jan 26, 2006 at 02:16:19PM +0100, Peter Velan wrote: > > Do I need a MTA on "webserver" at all? > Run "dpkg-reconfigure exim4-config" on your webserver and do the smarthost > configuration. > > You might also want to look at /etc/exim4/update-exim4.conf.conf > > You''ll need: > > dc_eximconfig_configtype=''smarthost'' > > dc_smarthost=''mailserver''Or, use something more simple like nullmailer or ssmtp on the webserver. 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
am 2006-01-26 16:34 schrieb Marc Haber:> On Thu, Jan 26, 2006 at 02:03:50PM +0000, Steven Wayne wrote: >> On Thu, Jan 26, 2006 at 02:16:19PM +0100, Peter Velan wrote: >> > Do I need a MTA on "webserver" at all? >> Run "dpkg-reconfigure exim4-config" on your webserver and do the smarthost >> configuration. >> >> You might also want to look at /etc/exim4/update-exim4.conf.conf >> >> You''ll need: >> >> dc_eximconfig_configtype=''smarthost'' >> >> dc_smarthost=''mailserver'' > > Or, use something more simple like nullmailer or ssmtp on the webserver.Thanks, especially for the hint with the nullmailer! Thats seem to be the right choice for my application. Ciao, Peter