On Fri, 6 Dec 2002, Joseph M. Anderson wrote
> >
> > I'm new to TMDA and I'm wondering if i can use it for a qmail server 
> > that will function primarily as a relay?  I'm using it as the internet 
> > connection to and from an SMS (text messaging) server, so all it's 
> > going to do is pass messages back and forth between cell phones and 
> > internet addresses.  I'd be grateful for any insight =)

On Tue, Dec 10, 2002 at 03:22:24PM -0600, Joseph M. Anderson wrote:
>
> OK, a little update, I've read some more and found (I think) that what
> I'm trying to do may not be possible...I realize now that as a relay no
> .qmail files get called and thus tmda never gets called.  I've seen 
> references to "contrib/README.RELAY" which apparently isn't in the 
> sources anymore, references to a qmailqueue patch (?), and to setting 
> the QMAILQUEUE environment variable in /etc/tcp.smtp.  Are any of these 
> fruitful approaches?

If I understand your setup, you want it to work like this:

1) Mail comes in from the outside world.
2) Mail passes through TMDA to check for whitelists/blacklists.
3) Depending on the output of #2, the mail is forwarded to a remote server.

If this is correct, then what I would do is set up a virtual domain to 
handle this.  Something along these lines:

Add a new user to the system 'tmdauser' or something (anything really) and
set their home directory to some unused directory, maybe /var/tmdauser.

Add an entry to your /var/qmail/control/virtualdomains file like this:

  therelaydomain.com:tmdauser

Also add therelaydomain.com to your rcpthosts file (substitute of course).

Send qmail-send a HUP so that it rereads virtualdomains.

Now, set up /var/tmdauser/.tmda/config however you like, be sure to create
a new crypt_key.

Add the following to the /var/tmdauser/.qmail file (which will be symlinked
to .qmail-default too):

  |preline -f /usr/local/tmda/bin/tmda-filter
  |forward "$DEFAULT"@mailserver.therelaydomain.com

This assumes that mail addressed to @mailserver.therelaydomain.com will be
the same as @therelaydomain.com.  If not then you can do some DNS tricks 
here to get this to work.

Anyone see a reason why this wouldn't work?

Cory

--
Cory Wright
Stand Blue Technology
http://www.standblue.net/
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to