On Fri, Mar 12, 1999 at 11:19:30PM +0100, Harald Hanche-Olsen wrote:
> - torben fjerdingstad <[EMAIL PROTECTED]>:
> 
> | On Fri, Mar 12, 1999 at 10:56:46AM -0500, Timothy L. Mayo wrote:
> | > You don't without a lot of work.  The error message is the TXT
> | > record from the ORBS database.  If Alan Brown wants the IP address
> | > in the message, he should modify his scripts to place it in the
> | > TXT record in his ORBS DNS database.
> | 
> | What kind of work? Changing rblsmtpd?
> 
> Why not?  It shouldn't be too hard: In the check() routine, just
> before "if (message.len > 200) message.len = 200;" insert something
> along the lines of (** untested code follows **)
> 
>   x = env_get("TCPREMOTEIP");
>   if (x)
>     if (*x) {
>       if (!stralloc_cats(&message, " (Remote IP: ")) die_sys();
>       if (!stralloc_cats(&message, x) die_sys();
>       if (!stralloc_cats(&message, ")")) die_sys();
>     }

Thank you very much. It works after I added the missing ')'
right after 'x)' in the second die_sys() line.

> | At the same time I think it should be modified to be able to take
> | multiple -r flags.
> 
> Would be useful.  I'll leave that as an exercise for the reader.  8-)

Not done yet. I don't code much.

Thanks Harald!
 
-- 
Med venlig hilsen / Regards 
Netdriftgruppen / Network Management Group
UNI-C          

Tlf./Phone   +45 35 87 89 41        Mail:  UNI-C                                
Fax.         +45 35 87 89 90               Bygning 304
E-mail: [EMAIL PROTECTED]       DK-2800 Lyngby

Reply via email to