|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
infaga03
estudiantes.unileon.es
Date: Sun Jul 27 2008 - 14:26:02 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> infaga03
estudiantes.unileon.es:
>> > infaga03
estudiantes.unileon.es:
>> >> , postfix reload; and postfix stills working as always.
>> >
>> > Show actual evidence of behavior that does not change, and show
>> > actual evidence based on which it should have changed.
>> >
>> > Wietse
>> >
>>
>> It's easy. On my modified library, I modify recipient_list_add(...)
>> function. It's always called when you send a mail, and the code works
>> because I tried it before modifying and compiling postfix itself, and
>> not
>> like a dynamic library. The first step I do is print on /var/log/syslog
>> with msg_info(""); and the text isn't showed on syslog.
>
> I asked for actual evidence. I did not ask for a description of
> the evidence.
>
> Wietse
>
MODIFIED RECIPIENT_LIST.C
=========================
void recipient_list_add(RECIPIENT_LIST *list, long offset,
const char *dsn_orcpt, int dsn_notify,
const char *orig_rcpt, const char *rcpt)
{
int new_avail;
//MODIFIED SOURCE
char **host; int *port;
char * userName;
//Here we filter the RECIPIENT ADDRESS and we do a lookup by using P2P
daemon.
userName = strtok(rcpt,"
");
if (getAddress((char *)rcpt,(char **)&host,(int *)&port) == 0) {
strcat(userName,"
");
strcat(userName,host);
strcat(userName,":");
strcat(userName,port);
rcpt = userName;
msg_info("RDD MODIFICATION USING P2P DAEMON: DEBUG: RECIPIENT_LIST_ADD
dsn_orcpt=%s orig_rcpt=%s rcpt=%s",dsn_orcpt,orig_rcpt, rcpt);
} else msg_info("RDD DEBUG - RCPT NOT MODIFIED");
//END MODIFICATIONS
[...]
}
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]