changes to smtpd.cfg

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

georgew
Posts: 46
Joined: Thu Dec 29, 2005 12:36 pm

changes to smtpd.cfg

Postby georgew » Mon Dec 18, 2006 5:05 am

I'd like to change our Scalix deployment so that it only accepts email from pre-approved ip addresses / networks and authenticated users, am I right in saying that all I need to do is remove the two lines relating to bob.com and enter RELAY accept statements for the required ip addresses and networks?

Thanks in advance

EXTENSIONS=AUTH,DSN,8BITMIME
AUTH_SUCCESS accept ALL
ANONYMOUS discard
RELAY accept 127.0.0.1
RELAY accept bob.bob.com
RELAY accept .bob.com
RELAY Log_Reject ALL
RECIPIENT Log_Reject *@*@*
RECIPIENT Log_Reject *%*
RECIPIENT Log_Reject *!*
DEBUG_LOG=TRUE

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Tue Dec 19, 2006 9:30 am

Hi!

The RELAY lines mentioned in the smtpd.cfg file in your server:

Code: Select all

RELAY accept 127.0.0.1
RELAY accept bob.bob.com
RELAY accept .bob.com


allows users only from these server(s) to be able to use this email server for receiving messages from external hosts, i.e. users outside this domain would not be able to use this mail server for spamming or similar activity. The best way to test this is using telnet to your mailserver using the port number 25. I am still not sure what you are trying to do.

Please reply what Scalix version you are using and what OS you have used for Scalix Server.

Thanks,
Subir

chris
Scalix Star
Scalix Star
Posts: 321
Joined: Mon May 09, 2005 2:56 pm
Location: Freiburg, Germany

Re: changes to smtpd.cfg

Postby chris » Wed Dec 20, 2006 2:49 am

georgew wrote:am I right in saying that all I need to do is remove the two lines relating to bob.com and enter RELAY accept statements for the required ip addresses and networks?


If you only want to accept ingress mail from certain hosts, remove the accept lines with domain names, and replace them with the hosts you wish to receive mail from.

So yes, you are correct.

Chris

georgew
Posts: 46
Joined: Thu Dec 29, 2005 12:36 pm

Postby georgew » Wed Dec 20, 2006 5:45 am

Thanks Chris, that's worked a treat :)

chris
Scalix Star
Scalix Star
Posts: 321
Joined: Mon May 09, 2005 2:56 pm
Location: Freiburg, Germany

Postby chris » Wed Dec 20, 2006 5:57 am

glad to hear it ;p

Chris

georgew
Posts: 46
Joined: Thu Dec 29, 2005 12:36 pm

Postby georgew » Fri Dec 29, 2006 8:24 am

Is there anyway I can keep a check on the sources we are receiving emails from the reason they were accepted as I still appear to have a few leaking through.

Thanks

chris
Scalix Star
Scalix Star
Posts: 321
Joined: Mon May 09, 2005 2:56 pm
Location: Freiburg, Germany

Postby chris » Fri Jan 19, 2007 7:38 am

How should I understand that? Do you mean, that this is an internet host, and unauthorized source addresses are trying to mail over it? What's leaking through exactly?

Thanks,

Chris

georgew
Posts: 46
Joined: Thu Dec 29, 2005 12:36 pm

Postby georgew » Tue Jan 23, 2007 1:58 am

that's exactly it, we have a single server deployment using messagelabs as our mx and therefore only need to receive emails inbound from there specified ip addresses and subnets. The service as whole is working wonderfully however some spam still seems to be sneaking through by communicating directly with our inbound host even though it appears to be from a blocked ip.

chris
Scalix Star
Scalix Star
Posts: 321
Joined: Mon May 09, 2005 2:56 pm
Location: Freiburg, Germany

Postby chris » Tue Jan 30, 2007 2:19 pm

I don't understand your network setup.

So you have something like

INET --- Firewall --- Relay --- Scalix

or how it is set together?

Where are unauthorized connections coming from and how are they getting there?

kanderson

Postby kanderson » Tue Jan 30, 2007 6:34 pm

What if you add

ORIGINATOR accept 111.111.111.111
ORIGINATOR reject all

At the top of the file. You'd need to add a new line for each machine sending you mail. I suspect this is only messagelabs, so there won't be too many of them. NOTE that they will almost certainly have more than 1.

You can check to see who is failing with the command

omshowlog -s smtp -l 5

This will give a long list of people trying to relay, but being denied.

Is THAT what you're trying to accomplish?
Kev.

georgew
Posts: 46
Joined: Thu Dec 29, 2005 12:36 pm

Postby georgew » Sun Feb 18, 2007 11:06 am

Am I right in assuming that this means I should only have RELAY statements in place for trusted internal hosts & authenticated users while the messagelab networks which act as out MX's should be set up a ORIGINATOR's ?

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Sun Feb 18, 2007 1:09 pm

For outgoing MX's, you don't need to do anything here - omsmtpd only handles incoming traffic. You might want to set originator to your incoming MXs to lock down here. You will only need to setup relaying for internal hosts that should be able to relay through your scalix machine and don't authenticate. Those who authenticate will be allowed to relay by default.

Florian.
Florian von Kurnatowski, Die Harder!


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 9 guests

cron