[Mimedefang] add_recipient and delete_recipient

Javier Kohan jktmp01 at gmail.com
Sun Jul 17 21:11:35 EDT 2016


El 17/7/2016 a las 20:39, Dianne Skoll escribió:
> On Sun, 17 Jul 2016 13:52:10 -0300
> Javier Kohan <jktmp01 at gmail.com> wrote:
>
>> The log lines inmediately after add_recipient and delete_recipient are
>> beeing executed because I see their output in the logs.  I must be
>> doing anything wrong  but cannot see what.
> Could you post the entire set of logs for a sample message?  That's all of
> the Sendmail logs for the queue ID plus all your custom logs.
>
> And before you do that, set the Milter log level to 9 in /etc/mail/sendmail.mc:
>
> 	define(`confMILTER_LOG_LEVEL', 9)dnl
>
> followed by:  make -C /etc/mail && service sendmail reload
>
> Regards,
>
> Dianne.
Ok, I set up a testing vm for  this, with jessie (Debian 8.5) 64 bits.
This is a different server as the one where I was testing before (the
other was the secondary MX of the real domain, firewall filtered to not
receive mail during the test). As you can see below, my code neither
works in this environment.
For the tests, the original domain is x1.com and the "debug" domain is
x2.com (I do not own or otherwise have any relation with those actual
domains)
The servers where mailertable directs mail for each domain, doesn´t
exist so its normal for them to be "unreachable".

the whole "filter_recipient" is in a previous message, the testing
transaction is:

root at test-jessie:/etc/mail# netcat localhost 25
220 test-jessie.lan ESMTP Sendmail 8.14.4/8.14.4/Debian-8; Sun, 17 Jul
2016 21:54:44 -0300; (No UCE/UBE) logging access from:
localhost(OK)-localhost [127.0.0.1]
helo localhost
250 test-jessie.lan Hello localhost [127.0.0.1], pleased to meet you
mail from: jkohan at test-jessie.lan
250 2.1.0 jkohan at test-jessie.lan... Sender ok
rcpt to: pepe at x1.com
250 2.1.5 pepe at x1.com... Recipient ok
data
354 Enter mail, end with "." on a line by itself
Subject: Test !!

Hola
.
250 2.0.0 u6I0siaB009506 Message accepted for delivery


and the logs of that are:



Jul 17 21:54:08 test-jessie mimedefang-multiplexor[9483]: started;
minSlaves=2, maxSlaves=10, maxRequests=500, maxIdleTime=300,
busyTimeout=600, clientTimeout=10
Jul 17 21:54:08 test-jessie mimedefang-multiplexor[9483]: Starting slave
0 (pid 9485) (1 running): Bringing slaves up to minSlaves (2)
Jul 17 21:54:08 test-jessie mimedefang[9499]: MIMEDefang alive.
slavesReservedForLoopback=-1 AllowNewConnectionsToQueue=0 doRelayCheck=0
doHeloCheck=0 doSenderCheck=0 doRecipientCheck=1
Jul 17 21:54:08 test-jessie mimedefang[9499]: Multiplexor alive -
entering main loop
Jul 17 21:54:08 test-jessie filtro[9485]: Carga de lista de usuarios
completa
Jul 17 21:54:08 test-jessie filtro[9485]: Inicializacion completa
Jul 17 21:54:11 test-jessie mimedefang-multiplexor[9483]: Starting slave
1 (pid 9504) (2 running): Bringing slaves up to minSlaves (2)
Jul 17 21:54:11 test-jessie filtro[9504]: Carga de lista de usuarios
completa
Jul 17 21:54:11 test-jessie filtro[9504]: Inicializacion completa
Jul 17 21:54:17 test-jessie sm-mta[9426]: u6I0ou6N008719:
to=pepe at x1.com, ctladdr=jkohan at test-jessie.lan (1000/1000),
delay=00:02:57, xdelay=00:00:18, mailer=esmtp, pri=210022,
relay=server1.lan. [10.11.17.111], dsn=4.0.0, stat=Deferred:
server1.lan.: No route to host
Jul 17 21:55:03 test-jessie filtro[9485]: u6I0siaB009506: Mensaje para
"pepe at x1.com"
Jul 17 21:55:03 test-jessie filtro[9485]: u6I0siaB009506: Destinatario
"pepe at x1.com" existente
Jul 17 21:55:03 test-jessie filtro[9485]: u6I0siaB009506: Reescribiendo
el dominio de "pepe at x1.com"
Jul 17 21:55:03 test-jessie filtro[9485]: u6I0siaB009506: Agregando
"pepe at x2.com" al evelope
Jul 17 21:55:03 test-jessie filtro[9485]: u6I0siaB009506: Quitando
"pepe at x1.com" del evelope
Jul 17 21:55:15 test-jessie sm-mta[9506]: u6I0siaB009506:
from=jkohan at test-jessie.lan, size=23, class=0, nrcpts=1,
msgid=<201607180055.u6I0siaB009506 at test-jessie.lan>, proto=SMTP,
daemon=MTA-v4, relay=localhost [127.0.0.1]
Jul 17 21:55:15 test-jessie sm-mta[9506]: u6I0siaB009506: Milter add:
header: X-Scanned-By: MIMEDefang 2.75 on 127.0.1.1
Jul 17 21:55:23 test-jessie sm-mta[9508]: u6I0siaB009506:
to=pepe at x1.com, ctladdr=jkohan at test-jessie.lan (1000/1000),
delay=00:00:20, xdelay=00:00:08, mailer=esmtp, pri=120023,
relay=server1.lan. [10.11.17.111], dsn=4.0.0, stat=Deferred:
server1.lan.: No route to host

Do you see something wrong ?


Thanks again !

Regards,

Javier











More information about the MIMEDefang mailing list