Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: icemannz on December 25, 2005, 10:48:27 PM

Title: tcp.smtp question
Post by: icemannz on December 25, 2005, 10:48:27 PM
Can someone tell me what program creates and uses the following file.
/etc/tcprules/tcp.smtp
It exists on an SME box I have used for a long time but it doesn't exist when I build a new box. I can use this file to control relaying and I would like to use it on the new box but.

Any help is appreciated
Title: Re: tcp.smtp question
Post by: raem on December 26, 2005, 12:04:09 AM
icemannz

> ..what program creates and uses the following file
> /etc/tcprules/tcp.smtp


http://mirror.contribs.org/smeserver/contribs//rmitchell/smeserver/howto/Virus%20and%20file%20blocking%20HOWTO%20using%20smtpfront-qmail%20for%20sme%20server.htm
Title: tcp.smtp question
Post by: icemannz on December 26, 2005, 02:57:51 AM
Thanks for your reply but unfortunately it didn't work.
It says that on a SME6.5 box you just run the command to enable the pattern matching, that works ok.
But I still have no tcp.smtp file available.

If you know of any other way to add an External IP address in so that I can relay email for it, it would solve my problem.

I don't want to use ssmtp as it will force me to have all clients reconfigure their email setups.
Title: tcp.smtp question
Post by: Franco on December 26, 2005, 03:22:09 AM
-make a custom directory:
mkdir /etc/e-smith/templates-custom/etc/tcprules/tcp.smtp/
-create a new file with the IP's you need to allow:
vi /etc/e-smith/templates-custom/etc/tcprules/tcp.smtp/85CustomAllow
Code: [Select]
{
    $OUT  = "ip-address:allow\n";
    $OUT .= "ip-range:allow\n";
}

-rebuild
/sbin/e-smith/expand-template /etc/tcprules/tcp.smtp
-update
/sbin/e-smith/signal-event email-update
Title: Re: tcp.smtp question
Post by: CharlieBrady on December 26, 2005, 04:29:36 AM
Quote from: "icemannz"
Can someone tell me what program creates and uses the following file.
/etc/tcprules/tcp.smtp
It exists on an SME box I have used for a long time but it doesn't exist when I build a new box.


Perhaps you are trying 7.0beta. That uses a different SMTP server (qpsmtpd), and doesn't use tcp.smtp.

> I don't want to use ssmtp as it will force me to have all
> clients reconfigure their email setups.

If you create an open mail relay, and start relaying spam, you will be very unpopular. Don't take any risks.
Title: tcp.smtp question
Post by: icemannz on December 26, 2005, 11:20:06 AM
stuntshell, your answer is what I am looking for but it still isn't working.
I created the file exactly as you said, it created the /etc/tcprules/tcp.smtp file and it looks ok.
But when I go to test it, it still won't relay for that address.
It looks like the system is completely ignoring the tcp.smtp file.
any ideas ?
Title: tcp.smtp question
Post by: Franco on December 26, 2005, 11:20:57 PM
Humm, I can't think of nothing else. I have a system running exactly as I described (6.01), unless 6.5 is way too different.
Title: tcp.smtp question
Post by: icemannz on December 27, 2005, 06:28:12 AM
Thanks stuntshell,
I have gone back to version 6.01 and it now works.
As you said - there must be something different in ver 6.5.
Anyway I can use 6.01 to solve my issue.
Title: tcp.smtp question
Post by: cc_skavenger on December 27, 2005, 04:18:38 PM
you could add the network to the local networks in the server manager.  this will allow them to use the server as a relay.

HTH
Title: tcp.smtp question
Post by: Franco on December 29, 2005, 12:08:32 AM
Quote from: "cc_skavenger"
you could add the network to the local networks in the server manager.  this will allow them to use the server as a relay.

HTH


If you do that SME won't know where to send messages for that domain, it will think it has to go to the local network, and it remains in the queue.
I thought your solution would work.  :-(
Title: tcp.smtp question
Post by: cc_skavenger on December 29, 2005, 02:22:22 AM
I ran into a similar problem.  I needed to allow users to relay from the same IP class as the wan port of the server, so I put the server in server-only mode and placed a router in front of it.  I setup the router to port forward the needed ports to the mail server.  Since the server was on a private IP, I was able to put in all the IP subnets into the local networks that I wanted to give relay access to.  Seemed like the easiest way to solve the problem and it has been working for several years and several versions of E-Smith / SME.

Just my way of dealing with it :-)