relay single address in access map

relay single address in access map

am 25.09.2007 10:44:14 von Marc Roos

When I use in the access map


To:addr@domain.tld RELAY


Is still get an relay error:

Sep 25 09:54:34 backup1 sendmail[15742]: l8P7sX7N015742: ruleset=check_rcpt,
arg1=addr@domain.tld, relay=[xxx.xxx.xxx.xxx] (may be forged), reject=550
5.7.1 addr@domain.tld... Relaying denied. IP name possibly forged
[xxx.xxx.xxx.xxx]


Is it even possible to use the access map like this?

Regards,
Marc

Re: relay single address in access map

am 25.09.2007 22:28:49 von Kees Theunissen

Marc wrote:
> When I use in the access map
>
>
> To:addr@domain.tld RELAY
>
>
> Is still get an relay error:
>
> Sep 25 09:54:34 backup1 sendmail[15742]: l8P7sX7N015742: ruleset=check_rcpt,
> arg1=addr@domain.tld, relay=[xxx.xxx.xxx.xxx] (may be forged), reject=550
> 5.7.1 addr@domain.tld... Relaying denied. IP name possibly forged
> [xxx.xxx.xxx.xxx]
>
>
> Is it even possible to use the access map like this?

Yes, if you're using sendmail 8.14.x with the right argument to
the access_db feature.

From the 8.14.0 RELEASE_NOTES:

CONFIG: New option `relaytofulladdress' for FEATURE(`access_db')
to allow entries in the access map to be of the form
To:user@example.com RELAY

If you use the default map definitions then somthing like
FEATURE(access_db, `', `relaytofulladdress')
will do what you want I think (untested).

See cf/README for details.


Regards,

Kees.

--
Kees Theunissen.

Re: relay single address in access map

am 26.09.2007 00:16:46 von Marc Roos

Kees,

Thanks, I just tested it and the only thing i needed to add to sendmail.mc
was

define(`_RELAY_FULL_ADDR_', `1')dnl


"Kees Theunissen" wrote in message
news:f31d4$46f96f81$c02a7def$8813@news1.tudelft.nl...
> Marc wrote:
>> When I use in the access map
>>
>>
>> To:addr@domain.tld RELAY
>>
>>
>> Is still get an relay error:
>>
>> Sep 25 09:54:34 backup1 sendmail[15742]: l8P7sX7N015742:
>> ruleset=check_rcpt, arg1=addr@domain.tld, relay=[xxx.xxx.xxx.xxx] (may be
>> forged), reject=550 5.7.1 addr@domain.tld... Relaying denied. IP name
>> possibly forged [xxx.xxx.xxx.xxx]
>>
>>
>> Is it even possible to use the access map like this?
>
> Yes, if you're using sendmail 8.14.x with the right argument to
> the access_db feature.
>
> From the 8.14.0 RELEASE_NOTES:
>
> CONFIG: New option `relaytofulladdress' for FEATURE(`access_db')
> to allow entries in the access map to be of the form
> To:user@example.com RELAY
>
> If you use the default map definitions then somthing like
> FEATURE(access_db, `', `relaytofulladdress')
> will do what you want I think (untested).
>
> See cf/README for details.
>
>
> Regards,
>
> Kees.
>
> --
> Kees Theunissen.

Re: relay single address in access map

am 26.09.2007 09:17:14 von Kees Theunissen

Marc wrote:
> Kees,
>
> Thanks, I just tested it and the only thing i needed to add to sendmail.mc
> was
>
> define(`_RELAY_FULL_ADDR_', `1')dnl

That is what cf/features/access_db.m4 does when you use
the `relaytofulladdress' option for FEATURE(`access_db').
Why don't you use the documented method? Didn't that work
for you?

You undocumented solution risks incompatibility with
future sendmail releases and is harder to maintain
-especially by third parties- because of the lack of
documentation.

Regards,

Kees.

--
Kees Theunissen.