Skip to contentSkip to conversation

accept some IP/users deny others

DISCUSSION pepo 3 participants 4 messages Sep 3, 2005 – Sep 11, 2005

lore
Share & tools
lore

pepo

author
#0 lore raw

Hi friends...

I am using exim4 (exim4-daemon-light) 4.52-1 in my Sarge, and I have a
little
LAN (PC1:192.168.1.1, PC2:192.168.1.2, PC3:192.168.1.3) the first is my box.

Please, how do I accept any local mail in my LAN, but just
PC2:192.168.1.2
can send mails to Internet? and if you can help me with the same but only few users can send to Internet.

I hope that you can help me, it is urgent for me.

Thanks

Signature · 18 lines
           Linux User Registered #232544
             Jabber : [email protected]
                ICQ : 337889406
          GnuPG-key : www.keyserver.net
---------------- -------------------------------
                   dum loquimur, fugerit invida
aetas: carpe diem, quam minimum credula postero.


_____________________________________ 
Este mensaje ha sido analizado por el
Servicio Gratuito de Protección contra Virus de E-mail de EtapaOnLine.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
#1 lore raw
Quoted 5 lines · pepo

Hi friends...

I am using exim4 (exim4-daemon-light) 4.52-1 in my Sarge, and I have a
little LAN (PC1:192.168.1.1, PC2:192.168.1.2, PC3:192.168.1.3) the first is my box.

Quoted 7 lines

Please, how do I accept any local mail in my LAN, but just
PC2:192.168.1.2 can send mails to Internet? and if you can help me with the same but only few users can send to Internet.

I hope that you can help me, it is urgent for me.

Thanks

Hi, pepo:

You did not send any information about 'Internet', only about three (3)
computers IP addresses on a 'little LAN'. Yours is .1 and is running a version of 'exim'. I would suggest that, if your LAN used a 'router/firewall' to obtain access the the internet, that the firewall be adjusted to not allow email ports (25,110) to flow )to,from) the internet from the selected host(s). If the other computer that you want not to be able to send email to the internet is not using the 'exim' on your workstation, the solution does not lie within the information you presented.

HTH, Chuck

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#2 lore raw
In reply to pepo
Quoted 11 lines · pepo

Hi friends...

I am using exim4 (exim4-daemon-light) 4.52-1 in my Sarge, and I
have a little
LAN (PC1:192.168.1.1, PC2:192.168.1.2, PC3:192.168.1.3) the first is my box.

Please, how do I accept any local mail in my LAN, but just
PC2:192.168.1.2
can send mails to Internet? and if you can help me with the same but only few users can send to Internet.

I have been waiting for a responce to your mail from others to see if i can really help you, i saw one reply to which you did not eply to so i presume you may not have understood what was said/asked...

Firstly, your mail is somewhat lacking in detail, detail as to just what you have as LAN and for all, just what you want to do.

As i see it, you want mail on 192.168.1.2 (your machine) correct.???.

You do not say if you are going to be collecting mail from your provider or you want to run sendmail on 192.168.1.2 to listen for incomming connections, (not such a good thing to do thesedays with all that spam around), leave that to your provider...

Let me say this.

A normal "Local Area Network", (LAN) would have a router possably in this case 192.168.1.1, that computer would be connected to the internet with another NIC and have a set of firewall rules via the command iptables, now i can only guess here but you said "sarge" meaning i presume debian.
I have no knowlage of how debian sets it default iptables rules or even what frontend for iptables it uses, what i can tell you is that iptables decides who does and who does not enter your computer or who passes thro' it via the rules which you or some frontend defines.

A good place to start leaning about iptables is;
http://www.linuxguruz.com/iptables/
There you will find many example firewalls for all sorts of needs.

The basic rule for a home LAN is to Masquarde all traffic from inside to the outside with the Inet IP# of the router, to do that one needs to use a basic masquerading firewall. (I am sure thats what debian sets as a default as most all distro's do the same thing).

Your distro, will no doubtably have some or other GUI interface for doing such a job.

If you need more help please explain in more detail just what you want and what you are using.

Quoted 4 lines

I hope that you can help me, it is urgent for me.

Thanks

--
Regards Richard.

PS, spelling mistakes are free in this mail.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

author
#3 lore raw

Hi...
First thanks for your help and sorry for the time to responce, I was so
busy.

I wanna send/receive any mails from any host inside my LAN, but only
PC2:192.168.1.2, PC4:192.168.1.4 and PC6:192.168.1.6 can send mails to Internet like smarthost, so the others PCs just inside the LAN.

Thanks again

Quoted 62 lines · Richard Adams
Quoted 11 lines · pepo

Hi friends...

I am using exim4 (exim4-daemon-light) 4.52-1 in my Sarge, and I
have a little
LAN (PC1:192.168.1.1, PC2:192.168.1.2, PC3:192.168.1.3) the first is my box.

Please, how do I accept any local mail in my LAN, but just
PC2:192.168.1.2
can send mails to Internet? and if you can help me with the same but only few users can send to Internet.

I have been waiting for a responce to your mail from others to see if i can really help you, i saw one reply to which you did not eply to so i presume you may not have understood what was said/asked...

Firstly, your mail is somewhat lacking in detail, detail as to just what you have as LAN and for all, just what you want to do.

As i see it, you want mail on 192.168.1.2 (your machine) correct.???.

You do not say if you are going to be collecting mail from your provider or you want to run sendmail on 192.168.1.2 to listen for incomming connections, (not such a good thing to do thesedays with all that spam around), leave that to your provider...

Let me say this.

A normal "Local Area Network", (LAN) would have a router possably in this case 192.168.1.1, that computer would be connected to the internet with another NIC and have a set of firewall rules via the command iptables, now i can only guess here but you said "sarge" meaning i presume debian. I have no knowlage of how debian sets it default iptables rules or even what frontend for iptables it uses, what i can tell you is that iptables decides who does and who does not enter your computer or who passes thro' it via the rules which you or some frontend defines.

A good place to start leaning about iptables is;
http://www.linuxguruz.com/iptables/
There you will find many example firewalls for all sorts of needs.

The basic rule for a home LAN is to Masquarde all traffic from inside to the outside with the Inet IP# of the router, to do that one needs to use a basic masquerading firewall. (I am sure thats what debian sets as a default as most all distro's do the same thing).

Your distro, will no doubtably have some or other GUI interface for doing such a job.

If you need more help please explain in more detail just what you want and what you are using.

Quoted 3 lines

I hope that you can help me, it is urgent for me.

Thanks

--
Regards Richard.

PS, spelling mistakes are free in this mail.

Signature · 18 lines
           Linux User Registered #232544
             Jabber : [email protected]
                ICQ : 337889406
          GnuPG-key : www.keyserver.net
---------------- -------------------------------
                   dum loquimur, fugerit invida
aetas: carpe diem, quam minimum credula postero.


_____________________________________ 
Este mensaje ha sido analizado por el
Servicio Gratuito de Protección contra Virus de E-mail de EtapaOnLine.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs