forgering exception

forgering exception

am 07.04.2008 17:49:06 von Quartex Quartex

Hi,
I have a MX only server and I have set up the following in /etc/mai/
access:

From: example.com error:554:No forgering please
To: example.com RELAY


So, I refuse mail from Internet claming to be from my domain. Of
course I accept mail to my domain.
Now the problem. I would want to accept mail coming from specific IP
address with mail from: my domain.

I tried to add like first line

x.x.x.x RELAY

where x.x.x.x is the specific IP that I want to let to send mail using
my domain like mail from:

This obviously doesn't work, so I'm asking you if some expert can help
me providing the way to do this.

Thanks

Re: forgering exception

am 08.04.2008 02:26:19 von spam

wrote in message
news:e4999046-66bf-4b71-a0ea-9ba40d3f50d3@k1g2000prb.googleg roups.com...
> Hi,
> I have a MX only server and I have set up the following in /etc/mai/
> access:
>
> From: example.com error:554:No forgering please
> To: example.com RELAY
>
>
> So, I refuse mail from Internet claming to be from my domain. Of
> course I accept mail to my domain.
> Now the problem. I would want to accept mail coming from specific IP
> address with mail from: my domain.
>
> I tried to add like first line
>
> x.x.x.x RELAY
>
> where x.x.x.x is the specific IP that I want to let to send mail using
> my domain like mail from:
>
> This obviously doesn't work, so I'm asking you if some expert can help
> me providing the way to do this.

"Forgering"? The appropriate participle is forging.

Your solution is SPF.

Re: forgering exception

am 08.04.2008 17:07:54 von Scott Grayban

quartex73@gmail.com wrote:
> Hi,
> I have a MX only server and I have set up the following in /etc/mai/
> access:
>
> From: example.com error:554:No forgering please
> To: example.com RELAY
>
>
> So, I refuse mail from Internet claming to be from my domain. Of
> course I accept mail to my domain.

Ever heard of SPF? Might want to google that quickly before you keep this
thread going and waste our time.

Re: forgering exception [OT: access syntax]

am 08.04.2008 17:32:05 von Andrzej Filip

quartex73@gmail.com wrote:

> I have a MX only server and I have set up the following in /etc/mai/
> access:
>
> From: example.com error:554:No forgering please
> To: example.com RELAY

AFAIK There should no space after :

From:example.com error:554:No forgering please
To:example.com RELAY

> [...]

--
[pl>en: Andrew] Andrzej Adam Filip anfi@xl.wp.pl
Open-Sendmail: http://open-sendmail.sourceforge.net/
I'll see you... on the dark side of the moon...
-- Pink Floyd

Re: forgering exception [OT: access syntax]

am 08.04.2008 18:38:03 von Quartex Quartex

On Apr 8, 5:32 pm, Andrzej Adam Filip wrote:

> > From: example.com error:554:No forgering please
> > To: example.com RELAY
>
> AFAIK There should no space after :

Yes, that was set correct but reported here badly.

Finally I used a custom rule like the following:

SLocal_check_mail
R$* $: $1 $|
$&{client_addr}
R< $* @ $* mydomain.example > $| x.x.x.x $@
R< $* @ $* mydomain.example > $| $* $#error $@ 5.5.4 $: "571 No
forging please"
R< $* @ localhost $* > $| 127.0.0.1 $@
R< $* @ localhost $* > $| $* $#error $@ 5.5.4 $:
"553 Real domain name required for sender address"

And removed entry From: in the access.db

Re: forgering exception

am 09.04.2008 00:32:54 von unknown

Post removed (X-No-Archive: yes)