Re: Need Help on EXIM
A long time ago, in a galaxy far, far way, someone said...
> I'm running Debian 2.2/unstable with imapd and exim. Both are running
> and I am able to read my mails. But I am not able to send mails
> because I am not allowed to relay... I would appreciate a quick 'n
> dirty howto from someone on the list, because it is very hard to read
> man's and other pages besides work and a girl friend! ;o)
>
> Szenario: My uptime is 24/7; the server is also the local intranet
> router for my windows clients. I have three users who want to access
> exim from the local intranet.
You need to set the host_accept_relay parameter in exim.conf to contain
your local network. An SMTP AUTH configuration (see below) will also
work.
> Beside this, there are about 4 users (all regular unix-users), who
> should have the possibility to access exim from the internet. Each
> user should be allowed to send whereever he/she wants to; but I do not
> like to set up an "spam-over-this-server" exim...
You need SMTP AUTH - the mail client sends their username and password to
the mail server. If the authentication information was correct they're
allowed to relay through. If these 4 people have static (ie unchanging
over long periods of time) IP numbers you can also use host_accept_relay
(above) to let them relay mail.
The "quick and dirty" way to do this would be:
In the "global" section add:
host_accept_relay = /etc/exim/host-relay
host_auth_accept_relay = *
auth_always_advertise = false
exim_user = root
And add this to the very end of the config file, after the rewrite
section:
end
######################################################################
# AUTHENTICATOR CONFIGURATION #
######################################################################
plain:
driver = plaintext
public_name = PLAIN
server_set_id = $2
server_condition = ${if pam{$2:$3}{1}{0}}
login:
driver = plaintext
public_name = LOGIN
server_prompts = "Username:: : Password::"
server_condition = ${if pam{$1:$2}{1}{0}}
server_set_id = $1
end
Phil
Reply to: