[Mimedefang] Get recipients
Stagiair 2. Cisa
stagiair2 at cisanet.be
Thu Apr 13 04:38:16 EDT 2017
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.
From: Richard Laager [mailto:rlaager at wiktel.com]
Sent: woensdag 12 april 2017 19:55
To: Stagiair 2. Cisa <stagiair2 at cisanet.be>
Cc: mimedefang at lists.roaringpenguin.com
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():
my $a = $_;
my $b = $Recipients;
md_syslog('info', "a = $a ; b = $b"); }
See what that outputs. My output looks like this:
a = <rlaager at wiktel.com> ; b = <rlaager at wiktel.com>
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.
More information about the MIMEDefang