P,

> I'm installing amavisd-new on a Debian Lenny.
> I've changed in 20-debian_defaults  $virus_admin =
> "postmaster\@$mydomain"; to addr...@company.com
> but only the to: address has changed. Where can I change the from: address?
> 
> Feb  3 15:34:12 servr amavis[26290]: (26290-01) (!)SEND via SMTP:
> <postmaster@${myhostname}> ->
> <addr...@company.com>,ENVID=am..20110203t1434...@company.com 501 5.1.7
> Failed, id=26290-01, from MTA([127.0.0.1]:10025): 501 5.1.7 Bad sender
> address syntax
> 
> amavis-new version 2.4.2 default in Lenny packages.

Please specify explicitly the envelope sender address for
administrator and recipient notifications in your config file,
e.g.:

  $mailfrom_notify_admin = "virusalert\@$mydomain";
  $mailfrom_notify_recip = "postmaster\@$mydomain";
  $mailfrom_notify_spamadmin = "spam.police\@$mydomain";

Defaults for these settings were not useful with some
versions of amavisd-new, the 2.6.2 partly fixed the
situation:

amavisd-new-2.6.2 release notes

- envelope sender address for administrator- and recipient notifications
  ($mailfrom_notify_admin, $mailfrom_notify_spamadmin, $mailfrom_notify_recip,
  %mailfrom_notify_admin_by_ccat, %mailfrom_notify_recip_by_ccat) was
  not expanded when their value is left unspecified in a configuration
  file and defaults to parsing of $hdrfrom_notify_* settings. This leads
  to MTA rejecting a notification from 'postmaster@${myhostname}' by a
  '501 5.1.7 Bad sender address syntax'. Reported by Aleksey Chudov,
  Jonas Jacobsson, Durk Strooisma, and Adam;

but resulted in a missing "<" and ">" around the address, which was
fixed in in 2.6.3.

A workaround for the affected versions is to specify the
$mailfrom_notify_* addresses explicitly, like in the example above.

  Mark

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 Please visit http://www.ijs.si/software/amavisd/ regularly
 For administrativa requests please send email to rainer at openantivirus dot 
org

Reply via email to