On Thu, 14 Jul 2016 17:21:19 -0300
Javier Kohan <[email protected]> wrote:
> filter_recipient {
> ...
> if( $recipient meets some condition ) {
>
> # change [email protected] to [email protected].
> # 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: [email protected]
2016-07-14T00:07:00.664668-04:00 colo14 sm-mta[30287]: u6E46wFK030287: Milter
delete: rcpt <[email protected]>
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.
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.
Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang