RE: [exim] Users wanting to send mail from a dial-up (ISP)co…

Top Page
Delete this message
Reply to this message
Author: Hochstrasser Benedikt
Date:  
To: Robert Cates
CC: exim-users
Subject: RE: [exim] Users wanting to send mail from a dial-up (ISP)connection
Robert Cates wrote:

> I'm having a hard time understanding this because I thought Exim

checks
> the From/Sender e-mail address (which would be of course

user@???)
> and will then attempt to send the mail.(?)


Relaying is not allowed/prohibited on a sender email base. It is based
on IP
Addresses and/or authentication.

When you have "Road Warriors" then you should use authentication like
this:

(global section)
hostlist auth_relay_hosts = *

(ACL section)
accept  hosts = +auth_relay_hosts
        message = authentication required
        authenticated = *
(authentication section)


plain:
  driver = plaintext
  public_name = PLAIN
  server_condition = "\
    # $2 = Username | $3 = password
    ${if and {{!eq{$2}{}}{!eq{$3}{}} \
    {crypteq{$3}{${extract{1}{:} \ 
    {${lookup{$2}lsearch{/etc/exim/.passwd}{$value}{*:*}}}}}}}{1}{0}}"
  server_set_id = $2


login:
  driver = plaintext
  public_name = LOGIN
  server_prompts = "Username:: : Password::"
  server_condition = "\   
    # $1 = Username | $2 = password
    ${if and {{!eq{$1}{}}{!eq{$2}{}} \
    {crypteq{$2}{${extract{1}{:} \ 
    {${lookup{$1}lsearch{/etc/exim/.passwd}{$value}{*:*}}}}}}}{1}{0}}" 
  server_set_id = $1


Of course, you need at least plaintext authentication compiled in.
(I use htpasswd from apache or mini_httpd to maintain the user's
passwords.
For simplicity reasons, most users share the same password for /sending/
mail.)

--
Ben