Forum OpenACS Q&A: Re: Bad sender address syntax - postfix

Posted by Archie Spinos on
Good morning Gustaf,

When I executed above from ds/shell I got the following:


while executing
"ad_raise notfound"
(procedure "rp_serve_abstract_file" line 32)
invoked from within
"rp_serve_abstract_file "$root/$extra_url""
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"smtp::sendmessage ::mime::1 -originator -header {From} -heade..."
("eval" body line 1)
invoked from within
"eval $cmd_string"
(procedure "acs_mail_lite::smtp" line 30)
invoked from within
"acs_mail_lite::smtp -multi_token $tokens -headers $headers_list -originator $originator"
(procedure "acs_mail_lite::send_immediately" line 155)
invoked from within
"acs_mail_lite::send_immediately -to_addr -from_addr -subject hi -body "What's up?""
("uplevel" body line 1)
invoked from within
"uplevel 1 [string map {"\\\r\n" " "} $script

How can I find the OpenACS version (I inherited the support so not very knowledgeable yet.)


Posted by Gustaf Neumann on
That's weird ...but it shows that the problem is in acs-mail-lite. You have definitely some older version installed, since the traceback above shows that "acs_mail_lite::smtp" calls "eval $cmd_string", which is not the case in current versions, which use a catch operation [1]. The "originator" field causing the problem is determined in [2] and passed as last argument to "acs_mail_lite::smtp" and uses "acs_mail_lite::bounce_address".

It looks to me, as if in your installation, the bounce prefix (parameter EnvelopePrefix of package acs-mail-lite) is not set correctly (look under /acs-admin, you can see/change the parameters of the installed services there). The parameter should have a value like e.g. "bounce".

The versions of OpenACS and the installed packages are listed by the package manager (/acs-admin/apm/). For OpenACS, this looks currently like the image below.

Hope this helps


Posted by Archie Spinos on

I had actually left the EnvelopePrefix blank, and your answer led me there.

Many thanks,

Much appreciated