[oclug] exim question

Stephen Gregory oclug at kernelpanic.ca
Sun Jul 6 15:21:40 EDT 2003


On Sunday 06 July 2003 13:31, Richard Wayne wrote:
> List,
>
> I have recently installed Debian(sarge) and I am trying to set up exim to
> use my ISP mail server as the "smart host". What I need to know now is how
> to implement the functionality of sendmail's generics table.

Well an easy way is to switch to sendmail :-P

The exim documentation is in /usr/share/doc/exim/spec.txt.gz. It is a terrible 
read, but it is all there.


At the bottom of /etc/exim/exim.conf you should see some rewrite rules similar 
to:

*@my.domian        ${lookup{$1}lsearch{/etc/email-addresses}\
                                               {$value}fail} frFs

/etc/email-addresses is fairly straight forward.

According to the Spec "6.6 Default values in single-key lookups"
You can have a '*' entry in /etc/email-addresses that will catch any email 
address that does not have a specific entry. This should help you to atleast 
rewrite those "other users."

"my.domain" above probably has to be the same as "qualify_domain" set earlier 
in exim.conf.


I found that the above rewrite rule rewrote more then I wanted to. Instead I 
use the headers_rewrite option in my remote_smtp router block. This way only 
email that leaves my network gets rewritten. I think that the whole rewrite 
rule can be move to the remote_smtp router block, but I am not sure. Please 
read the section on rewrite rules.

I am not sure how to block certain users. When I figure it out I will post.

-- 
sg





More information about the OCLUG mailing list