[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

running Exim with inetd / headder rewrite



First of all, thank you to everyone who sent help. I now only have (I hope)
2 problems.

	I was wrong about using cron to start Exim daemon, the 2 ways that were
suggested to me were using init and using inetd.  

Problem #1:
I found that using init overrides my security from hosts.deny and
hosts.allow, since these are used by inetd.  The answer is to use Inetd to
call Exim on demand.  After looking in my Inetd.conf file, I found the
following line commented out in the bottom of the file:

#smtp    stream    tcp   nowait   root     /usr/sbin/tcpd
/usr/sbin/in.smtpd (will be restored by smail postinstall)

I looked into it, there is no file /usr/sbin/in.smtpd  ,after looking at
the man page for smail, I saw that smail -bs = in.smtpd ,so I figure
in.smtp was removed with smail.  I looked in the Exim man page and found
that Exim -bs should work just like smail -bs, so I went up to the section
headed by the comment: #:Mail:
and entered the line:

smtp   stream   tcp    nowait   root   /usr/sbin/tcpd     /usr/sbin/exim -bs 

no good, I try telnet 127.0.0.1 25, get connection terminated 

I remember this problem with smail by adding in hosts.allow:
in.smtp:127.0.0.1
I allowed smtp calls to port 25, fixed the problem (and I believe this is
the secure and proper way to do this {yes/no?}) So what's the deal?  (I
included some details about my system at the bottom of this letter that may
help)

Problem #2: 
I need to do address rewriting, I know this, from reading, making some
tests, and trying configuration changes suggested in responses to my last
mail.  Basically here is what I want to happen:

if to:field is not TO:somebody@zeek.org
   {    
    change from:anyone@zeek.org -> from:kryder71@maine.edu
    change the from field in the envelope the same way..
   }

so from reading the Exim spec, I believe the rewrite rule is like this:

    *@zeek.org "kryder71@maine.edu" Ff

only problem is how do I get it to do this ONLY when the TO: field is not
local (IE XXX@Zeek.org) ?????

system stuff:
Debian 1.3.1  local host name:  Zeek.org  smarthost: Maine.edu
local users: root, ryder     Mail name: Kryder71
Exim version: 1.61 #1 built 4-Mar-1997   Fetchmail version: 3.8 pl 0
.fetchmailrc:  user kryder71 with pass XXXX is ryder@zeek.org here


thank's for any help / ideas / comments,

		Ken


Reply to: