[Mimedefang] add_recipient and delete_recipient

Dianne Skoll dfs at roaringpenguin.com
Thu Jul 14 18:09:47 EDT 2016


On Thu, 14 Jul 2016 17:21:19 -0300
Javier Kohan <jktmp01 at gmail.com> wrote:

> filter_recipient {
> ...
> if( $recipient meets some condition ) {
> 
>     #  change userX at domain1.com to userX at domain2.com.
>     #    change_domain() is checked to work
>     $newrec=change_domain($recipient)    ;
>     add_recipient($newrec);
>     delete_recipient($recipient)  # $recipient is the unmodified
> argument of filter_recipient
> }
> ....
> return ( 'CONTINUE', 'ok' );
> }

That should all work; those functions can be called from anywhere.

Are you seeing milter lines to the effect of:

2016-07-14T00:07:00.665002-04:00 colo14 sm-mta[30287]: u6E46wFK030287: Milter add: rcpt: userX at domain2.com
2016-07-14T00:07:00.664668-04:00 colo14 sm-mta[30287]: u6E46wFK030287: Milter delete: rcpt <userX at domain1.com>

If you are not seeing that, then somehow MIMEDefang's results are not getting
back to Sendmail properly.

What OS and Sendmail version are you running?

Regards,

Dianne.



More information about the MIMEDefang mailing list