On Aug 12, 2008, at 17:16 , Mark Martinec wrote:
> Jonas,
>
>> Just upgraded to version 2.6.1 on my debian system:
>>
>> moria:/etc/amavis/conf.d# dpkg -l | grep amavis
>> ii amavisd-new 1:2.6.1.dfsg-1
>> Interface between MTA and virus scanner/cont
>>
>> Also verified with the latest code on the amavis homepage:
>> http://www.ijs.si/software/amavisd/amavisd-new-2.6.1.tar.gz
>>
>>
>> DESCRIPTION
>>
>> Got this when a message is about to be sent to postmaster when a
>> virus
>> is detected:
>>
>> Aug 7 22:16:37 moria postfix/smtpd[30625]: warning:
>> Illegal address syntax from localhost[127.0.0.1] in MAIL command:
>> <[EMAIL PROTECTED]>
>
> What are your settings (if nondefault) for $mailfrom_notify_admin,
> $hdrfrom_notify_sender and $hdrfrom_notify_admin? I suspect that
> you used single quotes where double quotes would be needed.
I think they are default, but where do you mean that I can set/see this?
>> SOLUION
>>
>> Removed the backslash in front of the myhostname variable in the
>> following section. Now it works.
>>
>> Before:
>> # substring ${myhostname} will be expanded later, just before use
>> my($pname) = '"Content-filter at ${myhostname}"';
>> $hdrfrom_notify_sender = "$pname <[EMAIL PROTECTED]>"
>> if !defined $hdrfrom_notify_sender;
>>
>> After:
>> # substring ${myhostname} will be expanded later, just before use
>> my($pname) = '"Content-filter at ${myhostname}"';
>> $hdrfrom_notify_sender = "$pname <[EMAIL PROTECTED]>"
>> if !defined $hdrfrom_notify_sender;
>
> Your solution is incorrect, you are breaking lazy evaluation of
> $hdrfrom_notify_sender, which should be expanded later by a call
> to sub expand_variables, not at the time of assigning defaults.
Alright, but I need to find the initial error before changing back.
/jonas
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/