From: joe on
Hello is there a way to prevent receiving emails from joe(a)mydomain to
joe(a)mydomain from the outside servers? I get spam comming from outside
with my email address to me. thanks.

From: Ralf Hildebrandt on
On 2007-05-10, joe <jcharth(a)gmail.com> wrote:

> Hello is there a way to prevent receiving emails from joe(a)mydomain to
> joe(a)mydomain from the outside servers? I get spam comming from outside
> with my email address to me. thanks.

http://www.arschkrebs.de/postfix/postfix_restriction_classes3_en.shtml

--
Ralf Hildebrandt (i.A. des IT-Zentrums) Ralf.Hildebrandt(a)charite.de
Charite - Universitätsmedizin Berlin Tel. +49 (0)30-450 570-155
Gemeinsame Einrichtung von FU- und HU-Berlin Fax. +49 (0)30-450 570-962
IT-Zentrum Standort CBF send no mail to plonk(a)charite.de
From: joe on
Thanks very cool
On May 10, 4:26 pm, Ralf Hildebrandt <hil...(a)charite.de> wrote:
> On 2007-05-10, joe <jcha...(a)gmail.com> wrote:
>
> > Hello is there a way to prevent receiving emails from joe(a)mydomain to
> > joe(a)mydomain from the outside servers? I get spam comming from outside
> > with my email address to me. thanks.
>
> http://www.arschkrebs.de/postfix/postfix_restriction_classes3_en.shtml
>
> --
> Ralf Hildebrandt (i.A. des IT-Zentrums) Ralf.Hildebra...(a)charite.de
> Charite - Universitätsmedizin Berlin Tel. +49 (0)30-450 570-155
> Gemeinsame Einrichtung von FU- und HU-Berlin Fax. +49 (0)30-450 570-962
> IT-Zentrum Standort CBF send no mail to p...(a)charite.de


From: joe on
Looking at this closely. I found couple of strange things

charite.de OK
<> OK

what does <> mean? can is use relay_domain db instead? it does not
have <> but I wonder if should add it to relay_domains to use a
single file


Also

can /etc/postfix/internal_networks be replaced mynetworks?


Another one with the list of all my domains

/etc/postfix/not_our_domain_as_sender:
charite.de 554 Bloody liar!


Looks like I will have to create a little bash script to generate this
files instead is this a good idea?
thanks.







On May 10, 4:26 pm, Ralf Hildebrandt <hil...(a)charite.de> wrote:
> On 2007-05-10, joe <jcha...(a)gmail.com> wrote:
>
> > Hello is there a way to prevent receiving emails from joe(a)mydomain to
> > joe(a)mydomain from the outside servers? I get spam comming from outside
> > with my email address to me. thanks.
>
> http://www.arschkrebs.de/postfix/postfix_restriction_classes3_en.shtml
>
> --
> Ralf Hildebrandt (i.A. des IT-Zentrums) Ralf.Hildebra...(a)charite.de
> Charite - Universitätsmedizin Berlin Tel. +49 (0)30-450 570-155
> Gemeinsame Einrichtung von FU- und HU-Berlin Fax. +49 (0)30-450 570-962
> IT-Zentrum Standort CBF send no mail to p...(a)charite.de


From: Ralf Hildebrandt on
On 2007-05-10, joe <jcharth(a)gmail.com> wrote:
> Looking at this closely. I found couple of strange things
>
> charite.de OK
><> OK
>
> what does <> mean?

<> is the "smtpd_null_access_lookup_key", see:

$ postconf -d smtpd_null_access_lookup_key
smtpd_null_access_lookup_key = <>

> can is use relay_domain db instead?

No.

> it does not
> have <> but I wonder if should add it to relay_domains to use a
> single file

I added "<>" in order to allow bounces back out!

> Also
>
> can /etc/postfix/internal_networks be replaced mynetworks?

Sort of, yes. The right hand side must be "has_our_domain_as_sender",
though.

> Another one with the list of all my domains
>
> /etc/postfix/not_our_domain_as_sender:
> charite.de 554 Bloody liar!
>
>
> Looks like I will have to create a little bash script to generate this
> files instead is this a good idea?

Yes.

--
Ralf Hildebrandt (i.A. des IT-Zentrums) Ralf.Hildebrandt(a)charite.de
Charite - Universitätsmedizin Berlin Tel. +49 (0)30-450 570-155
Gemeinsame Einrichtung von FU- und HU-Berlin Fax. +49 (0)30-450 570-962
IT-Zentrum Standort CBF send no mail to plonk(a)charite.de