[Wylug-help] Using Exim as a controlled relayer

William F. McCaw william at mcsquawk.org.uk
Tue Mar 26 23:20:16 UTC 2013


Hi Gary,

On Tuesday 26 Mar 2013 21:46:39 Gary Stainburn wrote:
> I've managed to get the Exim + Pgsql setup working.
> 
> For the domains I'm hosting I have a set of records which contain an email
> address within the domain and an delivery email address, e.g.
> 
> user at hosted.domain ->		gary.stainburn at ringways.co.uk
> 
> When I test this using
> 
> exim -bt user at hosted.domain
> 
> it works fine, but when I try to send an email it fails
> 
> relay not permitted.
> 
> Obviously i do not want to turn on relaying, so how can I configure Exim to
> allow emails that have matched a record in the user table to be forwarded?

   I've not done much fiddling with Exim recently so I'm somewhat rusty, but 
here goes :-)

   The -bt option is passing the address through the routers to see what 
happens to it, however I presume that the "relay not permitted" failure is 
coming from the acl_smtp_rcpt ACL which is vetting the SMTP envelope recipient 
addresses as they are received from the client, which happens before the 
routers can do any address transformations.

   If this is the case, then have you got the names of all the domains you are 
hosting on this server configured as being local domains, so that it will 
accept and process mail destined for them ?

      William.

-- 
William F. McCaw  <william at mcsquawk.org.uk>

Public key available from keyservers.
GPG : 0x34C648D9 : 2744 C1E8 38AE FC6F 38CC  1D1E F9E9 D8D2 34C6 48D9




More information about the Wylug-help mailing list