LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-19-2024, 08:46 PM   #16
BAcidEvil
Member
 
Registered: Dec 2003
Distribution: Slack 14.1 3.18.1
Posts: 294

Original Poster
Rep: Reputation: 10

Quote:
Originally Posted by viel View Post
Hi,

I am not the best security expert but, the purpose of running in a DMZ is in case of compromise don't affect entire LAN.
It is recommended to run servers on separated DMZ's and isolated to minimize the compromise of others servers in the same DMZ or LAN ...

Different config different purpose, price, work, ...

You can put your server in a DMZ and only have it. Like now in LAN but isolated from LAN. Or isolate it with VLANS. Seems not you are looking for.

You can put a relay front-end on DMZ and a back-end on LAN. If DMZ compromised they can relay but no all mail data affected. But if you can't early detect the compromised relay ... , you know.

So running a relay can be dangerous, you need to relay only for your domains and to inside and block OUTSIDE. Then the back-end can send emails from Lan to internet directly, from more secure to less secure, same config like now.

Not to much knowledge on manage SMTP but just add the relay address on the back-end will work.

From Internet --> Relay on DMZ --> SMPT on LAN.

FRom SMPT LAN --> To Internet.

EDIT: SMPT on Lan, different from users LAN if possible.

Tip: Different systems,distributions on relay and SMPT for best security. Like openbsd and slackware.

Hope that help.

Viel.
Broken Record Here.

So your 2 examples..
Internet —> Relay (DMZ) 172.16.1.180 —> SMTP (LAN) 192.168.1.180
Is this literally setting up DMZ how I would on the LAN but adding the relay ip address to it?
I ask because your suggesting SMTP on LAN, does that mean I remove that “code” from the DMZ Postfix?

SMTP (LAN) 192.168.1.0 —> Internet


SMTP is “outgoing” right? I guess I am confused on how #1 DMZ relays (what’s it relaying? Incoming IMAP?) and #2 Are both DMZ and INSIDE Postfix set up the same, but DMZ has the “relay address” added to it? It would seem
that DMZ would run Postfix only, whereas INSIDE would run the Dovecot setup?
I see it as: Email comes from Internet and goes to DMZ 172.16.1.180 and relays it to INSIDE (192.168.1.180) and then when I send Email, it sends straight out from INSIDE to Internet. So DMZ is for Incoming?


I am sorry… I am just for some reason slow as HELL with this I’m beside myself how it isn’t clicking!!! Be continue to be patient .

Last edited by BAcidEvil; 03-19-2024 at 09:48 PM.
 
Old 03-21-2024, 04:04 AM   #17
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,066

Rep: Reputation: 147Reputation: 147
I also recommend Libera Internet Relay Chat (IRC) #postfix ... very helpful, unlike #sendmail.
 
Old 03-21-2024, 03:27 PM   #18
viel
Member
 
Registered: Jul 2021
Location: Arcadia
Distribution: Slackware
Posts: 47

Rep: Reputation: Disabled
Quote:
Originally Posted by BAcidEvil View Post
Broken Record Here.

So your 2 examples..
Internet —> Relay (DMZ) 172.16.1.180 —> SMTP (LAN) 192.168.1.180
Is this literally setting up DMZ how I would on the LAN but adding the relay ip address to it?
I ask because your suggesting SMTP on LAN, does that mean I remove that “code” from the DMZ Postfix?

SMTP (LAN) 192.168.1.0 —> Internet


SMTP is “outgoing” right? I guess I am confused on how #1 DMZ relays (what’s it relaying? Incoming IMAP?) and #2 Are both DMZ and INSIDE Postfix set up the same, but DMZ has the “relay address” added to it? It would seem
that DMZ would run Postfix only, whereas INSIDE would run the Dovecot setup?
I see it as: Email comes from Internet and goes to DMZ 172.16.1.180 and relays it to INSIDE (192.168.1.180) and then when I send Email, it sends straight out from INSIDE to Internet. So DMZ is for Incoming?


I am sorry… I am just for some reason slow as HELL with this I’m beside myself how it isn’t clicking!!! Be continue to be patient .

I talk from a network point of view. I don't know to much about SMTP config but sure it is possible.

Quote:
Is this literally setting up DMZ how I would on the LAN but adding the relay ip address to it?
No. The Relay DMZ config is not the same as SMTP on LAN.

https://stackoverflow.com/questions/...pecific-domain


Quote:
does that mean I remove that “code” from the DMZ Postfix?
What code?

Quote:
I see it as: Email comes from Internet and goes to DMZ 172.16.1.180 and relays it to INSIDE (192.168.1.180) and then when I send Email, it sends straight out from INSIDE to Internet. So DMZ is for Incoming?
Yes.


To make it easy,
The first point is to have SMTP LAN server on a separated segment of the net. Like Inside_SMTP_DMZ, SMTP_DMZ or SMTP_LAN, the name is as you want only for manage. DMZ is a network convention name. If you have a big network with external and internal segmentation you need that convention names.

The second point is, need the Mail server to be overprotected? or it has overload?, or need 24/7, clustering? ...
Then you need play with relays, clusters, Load balancing ...

Think about more complex, more work to manage, more vulnerable points and more risk. A relay will be fine, it is the first line of protection, similar to a proxy (EDITED:WAF) for web application, but is not a magic solution. You will need to monitor 2 machines: the relay and the mail server.

So, from mi point of view, when you have the 1st point accomplished, you can mount a DMZ and put a relay.

From the need to send the output mails through the relay. Why? If you have a SPAM filter or some kind of config that can't run on the primary server because of the load, go through relay. If not, don't overload the relay by the way.

Well if you trust your LAN network users you can send mails direct to back-end. Or config it through the relay too.

From your first post.
Quote:
I am wanting to mess around on the Cisco ISR with “zone based firewall” and create a DMZ. I wanted to make an email server on the DMZ as an “out of network” server 172.16.1.180 and then as a relay to my existing email server 192.168.1.180. So I was wondering what all I needed to do in current email config. Currently it’s just listening to incoming smtp from the outside, but am wondering if I just add in the relay address 172.16.1.180?
Sorry I’m not good at explaining
You are right, but not at all. Mount a new server on a separated network segment with the same config, then move your actual mail to other segment, and then play with relay to leave the front-end as relay and the back-end as server.

There are 100 ways to do it. You will have to look for what you see safe, that you can carry out and keep you without complicating much.

Hope that helps you from mi little knowledge, don't expect to tell you the exact mail configuration, It is not my knowledge and I would not feel comfortable. Maybe when you are clear, others can help you more in concrete parameters.

These comments are provided in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. XD

I hope I have clarified the doubts.

Viel.

Last edited by viel; 03-21-2024 at 03:35 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix ports configuration in the 4MLinux Server 23.0 (for advanced users) zk1234 4MLinux 0 10-21-2017 11:53 PM
[SOLVED] ACPI (Advanced Configuration And Power Configuration) not present on 2.6.38.8? Aquarius_Girl Linux - Newbie 8 05-30-2012 07:52 AM
need help on advanced printer configuration jackandking Linux - Newbie 5 03-22-2008 01:00 PM
LXer: Advanced SSH configuration and tunneling: We don’t need no stinking VPN softw LXer Syndicated Linux News 0 11-28-2007 10:50 AM
Better buying "advanced linux prog" or "unix advanced prog" Dominik Programming 3 12-31-2003 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration