Re: [Exim] Relaying / Sender

Top Page
Delete this message
Reply to this message
Author: Julian Bartels
Date:  
To: exim-users
Subject: Re: [Exim] Relaying / Sender
Hello Nico
1.) Please wrap your lines at 72 chars
I thought that I use 72 chars, sorry!

>>Hello to you!
>> I've got an server on the net with exim / mysql (virtual
>> domains)! But I've got a problem with sending mails! if the rcpt is in
>> the database everything is ok! But when I try to send a mail from such
>> an adress (e.g. bartels@y...), then I get relaying permitted! I


> So noone can fake one of your domains and use your server as relay.

Yes, that is what i want

>You don't have smtp-auth running if you don't lookup the data somewhere.
>You just do a simple lookup for the data in your database.


>Your server_condition should look like this one:


>server_condition = ${lookup mysql {select 1 from passwd where \
>user=$quote_mysql{$1} and passwd=${quote_mysql:$2}}{yes}{no}}

my table passwd has the field "email" (username like bartels@???)
and
clear (password clear / uncrypted)!
I'm sorry, but I don't understand this syntax, could you help me please?

>You need to adjust this a little bit for the different authenticators
>(using $1 and $2 vs. $2 and $3). And maybe you need to use ${md5:} or
>something else, if you store your passwords encrypted, it depends on your
>setup.

As I understand $1,$2 etc. are the params user pwd? But what is $3??

> If you want pop-before-smtp you need either a pop-daemon or a logwatching
> utility, that writes the ip-address to some file, or creates single files
>with the ip-addresses in a special directory.


>Add something like this at a good place to your rcpt_acl,


I use courier, is this possible? (didn't find anything!) What other pop
daemon could i use
(it should work together with mysql / virtual domains and Maildir)?

THANKS,
Julian