Hey Richard

I'm using your code but md_syslog doesn't seem to output anything to my 
logfiles.

Im using rsyslog and my logs should be in /var/log/messages.
But I see nothing from the md_syslog coming up.

Kind regards
Jente


-----Original Message-----
From: Richard Laager [mailto:[email protected]] 
Sent: woensdag 12 april 2017 19:55
To: Stagiair 2. Cisa <[email protected]>
Cc: [email protected]
Subject: Re: [Mimedefang] Get recipients

On 04/12/2017 04:12 AM, Stagiair 2. Cisa wrote:
> Could this be the result of using an EFA-server?  
> (https://efa-project.org/about/) It uses postfix instead of sendmail.

I use postfix.

The first argument to filter_recipient() is the recipient. The same value is 
also put into the first element of @Recipients.

Add these three lines, exactly, to filter_recipient():

sub filter_recipient()
{
    my $a = $_[0];
    my $b = $Recipients[0];
    md_syslog('info', "a = $a ; b = $b"); }

See what that outputs. My output looks like this:
a = <[email protected]> ; b = <[email protected]>

If you get something like that, then whatever code you wrote to look at 
@Recipients is wrong. Start with the working code and you should be able to 
figure it out.

If that exact code outputs:
a = ; b =
then the recipient value really is the empty string, and I have no idea why.

--
Richard

_______________________________________________
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

Reply via email to