Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

preventing mail spoofing from internal net

12 views
Skip to first unread message

Jens Bruckmann

unread,
Oct 10, 2001, 4:28:35 AM10/10/01
to
Hi folks,

I'd like to know if there is any possibilty to prevent mail-spoofing from
the INTERNAL, trusted network by using the smtpd_*_restrictions?

We have the upcoming situation, when you connect to the mail-host from the
internal network it responds with the follwoing:

220 mailhost ESMTP Postfix on Nintendo Gameboy Color (ZX81)
helo du
250 mailhost
mail from: b...@internal.com
250 Ok
rcpt to: som...@outside.com
250 Ok

.....

The goal is to teach postfix that it has to deny the relaying for the domain
internal.com because it does not belong to our domains given in
$mydestination.

If you had any idea I was very pleased to get to know..... :-)


Thank you,

Jens


--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

-
To unsubscribe, send mail to majo...@postfix.org with content
(not subject): unsubscribe postfix-users

Erwan David

unread,
Oct 10, 2001, 4:47:24 AM10/10/01
to
Le Wed 10/10/2001, Jens Bruckmann disait

> Hi folks,
>
> I'd like to know if there is any possibilty to prevent mail-spoofing from
> the INTERNAL, trusted network by using the smtpd_*_restrictions?
>
> We have the upcoming situation, when you connect to the mail-host from the
> internal network it responds with the follwoing:
>
> 220 mailhost ESMTP Postfix on Nintendo Gameboy Color (ZX81)
> helo du
> 250 mailhost
> mail from: b...@internal.com
> 250 Ok
> rcpt to: som...@outside.com
> 250 Ok
>
> .....
>
> The goal is to teach postfix that it has to deny the relaying for the domain
> internal.com because it does not belong to our domains given in
> $mydestination.
>
> If you had any idea I was very pleased to get to know..... :-)

I have no idea how to do it, but I know why I would not want to be one
of your users. You deny them the possibility to forward mails by doing
this or to send mail with a different from.
Bad...

--
Erwan David
==========================================================
Trusted Logic Tel: +33 1 30 97 25 03
5 rue du Bailliage Std: +33 1 30 97 25 00
78000 Versailles Fax: +33 1 30 97 25 19
France

Sven Michels

unread,
Oct 10, 2001, 4:52:46 AM10/10/01
to
Jens Bruckmann wrote:

> The goal is to teach postfix that it has to deny the relaying for the domain
> internal.com because it does not belong to our domains given in
> $mydestination.
>
> If you had any idea I was very pleased to get to know..... :-)

main.cf:
smtpd_restriction_classes = mail_from_internal
mail_from_internal = check_sender_access hash:/etc/postfix/mail_from_internal,
reject
smtpd_recipient_restrictions = ...
check_client_access
hash:/etc/postfix/client_access_internal,
permit_mynetworks,
...

in client_access_internal:
yoursubnet mail_from_internal

replace yoursubnet by 192.168.0 if you use 192.168.0.0/24 ...

and in /etc/postfix/mail_from_internal:
yourdomain.com OK

that should do what you want..


--
intraDAT AG http://www.intradat.com
Wilhelm-Leuschner-Strasse 7 Tel: +49 69-25629-0
D - 60329 Frankfurt am Main Fax: +49 69-25629-256

Sven Michels

unread,
Oct 10, 2001, 4:55:50 AM10/10/01
to
Erwan David wrote:

> I have no idea how to do it, but I know why I would not want to be one
> of your users. You deny them the possibility to forward mails by doing
> this or to send mail with a different from.
> Bad...

forwarding is ok, but you cannot 'resend' them. Thats a problem
in some cases yes. but if you're in a company, local policy can
say that you don't allowed to send private or non company related
mails ...

Ralf Hildebrandt

unread,
Oct 10, 2001, 7:19:27 AM10/10/01
to
On Wed, Oct 10, 2001 at 10:26:16AM +0200, Jens Bruckmann wrote:
> Hi folks,
>
> I'd like to know if there is any possibilty to prevent mail-spoofing from
> the INTERNAL, trusted network by using the smtpd_*_restrictions?

User restriction classes based on IP.

> The goal is to teach postfix that it has to deny the relaying for the domain
> internal.com because it does not belong to our domains given in
> $mydestination.

Postfix doesn't relay by default. If it does, you have misconfigured it.

--
Ralf Hildebrandt http://www.arschkrebs.de
Remember, all software sucks. Some sucks more, and some sucks less. But it
sucks regardless. If I want to see something elegant I go look for a piece
of art.

0 new messages