On Tue, Dec 06, 2005 at 08:53:53AM -0800, Ben Carter wrote:
> Date: Tue, 6 Dec 2005 08:53:53 -0800
> From: "Ben Carter" <BenC@???>
> To: <exim-users@???>
> Subject: [exim] Problem relaying from local subnet
>
> I have a Debian box kernel version 2.4 on which I have just installed
> exim4 from apt-get stable. I have also installed sa-exim to filter spam.
> Inbound email works fine, but users on the local subnet cannot send
> mail. They get a 550 relay not permitted error. For the life of me
> cannot figure out how to tell exim that it is ok to relay from the 10.x
> subnet. I have read as much of TFM as I could find online (WIKI this
> mailing list, numerous Google searches, etc.) and can't find an answer.
> I tried using the directive relay_from_hosts in my exim.conf file. I am
> running in monolithic file mode (or at least I told Debian to install
> exim4 with the monolithic file. I tried renaming the /etc/exim4/conf.d
> directory to verify that the conf.d was not in use and received errors
> launching exim4 from the Debian start script. However, when I enabled
> sa-exim, I did so with a command in the monolithic file. Confused? Me
> too).
>
>
Could I suggest you read also the README.Debian.gz file, it's in the
/usr/share/doc/exim4-base/ directory.
>
> Here is the error:
>
>
>
> 2005-12-06 11:47:35 H=(principal) [10.1.1.56] F=<user@???>
> rejected RCPT <user@???>: relay not permitted
>
For this you should update /etc/exim4/update-exim4.conf.conf and run
update-exim4.conf or run dpkg-reconfigure exim4-config and answer the
questions.
>
>
>
> I tried to edit the existing relay_from_hosts command but that didn't
> work:
>
>
>
> .ifndef MAIN_RELAY_NETS
>
> MAIN_RELAY_NETS = DEBCONFrelay_netsDEBCONF
>
> .endif
>
> hostlist relay_from_hosts = 127.0.0.1 : 10.1.1.56 ::::1 :
> MAIN_RELAY_NETS
>
Don't do this.
>
>
> Then I tried putting it in the config file "bare":
>
>
>
> relay_from_hosts = localhost : 10.1.1.56 :
Don't do this either.
> This is probably very easy, but I've been banging my head against it for
> a day now, and am at my wits end. Any help is greatly appreciated.
It is easy, once you read the right readme files.
Steven.
--
Limericks are art forms complex,
Their topics run chiefly to sex.
They usually have virgins,
And masculine urgin's,
And other erotic effects.