Re: [Exim] returning mail to mail boxes

Top Pagina
Delete this message
Reply to this message
Auteur: Philip Hazel
Datum:  
Aan: Matthew Sackman
CC: exim-users
Onderwerp: Re: [Exim] returning mail to mail boxes
On Wed, 30 Aug 2000, Matthew Sackman wrote:

> I've just switched to exim, and the basic installation has gone fine.
> What I want to do is to set it up so that mail that does not have a user on
> the local host (for example, mail addressed to 'test@???', but
> the user 'test' doesn't exist) is sent again, via smtp to my smarthost.
> That way it will end up back in my POP3 mail box.


Stick a smartuser director at the end of the directors configuration.
Point it at a transport that sends it to your smart host.

> In the main exim config file, under the directors, I've got the last entry
> as a driver = smartuser. I've got the transport = remote_smtp. So far so
> good! Now, mail that can not be sorted by the usual directors (cos there's
> not user account for it) get's passed on to the smartuser. But then it just
> sits in the queue. It doesn't go anyware.


Oh, right. You've almost figured it out. Instead of the default
remote_smtp, you need a special one that specifies the host. For
example:

smart_host:
transport = smtp
hosts = my.smart.host
gethostbyname

It's "hosts" rather than "host" because you can have a list.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.