[nos-bbs] relaying denied

Boudewijn (Bob) Tenty bobtenty at gmail.com
Fri Mar 30 19:03:42 EDT 2018


Oops, correction..

The smtp gateway exception is to prevent that my smtp gateway is used for 1.2.3.0
I have also the normal 'smtp relay add' lines to allow relay for certain addresses.

Bob VE3TOK


On 2018-03-30 06:48 PM, Boudewijn (Bob) Tenty wrote:
> I think it was only in the release notes but you could also find it at this
> list of four years ago with Google..
>
> I use,
>
> smtp ga exception add 1.2.3.0  0xffffff00
>
> Bob VE3TOK
>
>
>
> On 2018-03-30 05:39 PM, Maiko Langelaar wrote:
>>
>> Oh dear, it would seem that I did not document this at all, it was written
>> originally because I got tired of not being able to reply to my emails using
>> email clients outside my JNOS subnet, from this little note in smtpserv.c :
>>
>>  * 17Sep2008, Maiko (VE4KLM), By default we will deny SMTP relay, however
>>  * there may be outside subnets that we want to allow for. For example, I
>>  * use my Thunderbird email client at work to check my JNOS system for new
>>  * mail. It would be nice if I could reply to those systems outside my JNOS
>>  * box, but the existing SMTP_DENY_RELAY code prevents that. So, this new
>>  * code allows me to create an SDR exception list (ip/netmask) to allow.
>>
>> I will need to make sure it's documented, here it is 'now' (very sorry) :
>>
>>    #define SMTP_DENY_RELAY
>>    #define SDR_EXCEPTION
>>
>>   rm smtpserv.o smtpcli.o version.o ; make
>>
>> here are a couple of examples to put into autoexec.nos :
>>
>>  smtp relay add 1.2.3.4 0xffffffff
>>
>>  smtp relay add 192.168.100.0 0xffffff00
>>
>> IF you have a box outside of your JNOS subnet, and you want to be able
>> to send mail via JNOS then you need to add entries similar to the above,
>> for instance from work, I wanted to be able to read and send to my JNOS
>> using thunderbird, completely different network. The top one obviously
>> is an entry for a single IP (netmask 255.255.255.255), the one below is
>> for any IP on 192.168.100 (old class C I guess) subnet.
>>
>> Reminds me, years ago I could have sworn the syntax was 255.255.255.0,
>> but I find I've had to use hexidecimal instead (maybe I switched to an
>> incorrect function parsing this, don't remember), 0xffffff00 instead.
>>
>> On Tue, 27 Mar 2018, Michael Fox - N6MEF wrote:
>>
>>> I’m getting “relaying denied” when I send to any address in the cc: list.
>>
>> Maiko
>>
>>
>> _______________________________________________
>> nos-bbs mailing list
>> nos-bbs at tapr.org
>> http://www.tapr.org/mailman/listinfo/nos-bbs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tapr.org/pipermail/nos-bbs_lists.tapr.org/attachments/20180330/cd9bbf2f/attachment.html>


More information about the nos-bbs mailing list