Forum OpenACS Development: Re: Sending emails through acs_mail_lite::smtp

Posted by Iuri Sampaio on
I found a solution but the cause is still unknown to myself. Amending mailhost parameter, within ns-config.tcl, allowed a different content, wraped in the email source. It seems ad_proc acs_mail_lite::smtp connects correctly to Postfix now. Emails from OpenACS work properly now.

Why assiging the domain would be a cause, if hostname was properly configured in the server (i.e. OS settings) ?

[30/Nov/2018:00:28:46][17022.7f44632ce700][-conn:iurix:1:5-] Notice: SEND EMAIL to_addr
[30/Nov/2018:00:28:46][17022.7f44632ce700][-conn:iurix:1:5-] Notice: -multi_token ::mime::13
-headers {From} {Reply-To} {To}
[30/Nov/2018:00:28:46][17022.7f44632ce700][-conn:iurix:1:5-] Notice: ORIGINATOR
[30/Nov/2018:00:28:46][17022.7f44632ce700][-conn:iurix:1:5-] Notice: send cmd: smtp::sendmessage ::mime::13 -originator -header {From} -header {Reply-To} -header {To} -servers localhost -ports 25

Nov 30 00:28:46 iurix postfix/smtpd[17012]: connect from localhost[]
Nov 30 00:28:46 iurix postfix/smtpd[17012]: 34DF04C93E: client=localhost[]
Nov 30 00:28:46 iurix postfix/cleanup[17016]: 34DF04C93E: >
Nov 30 00:28:46 iurix postfix/smtpd[17012]: disconnect from localhost[] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Nov 30 00:28:46 iurix postfix/qmgr[16715]: 34DF04C93E: >, size=1176, nrcpt=1 (queue active)
Nov 30 00:28:46 iurix postfix/smtp[17017]: 34DF04C93E: >,[]:25, delay=0.44, delays=0.06/0/0.26/0.11, dsn=2.0.0, status=sent (250 SWfmg0lQwGkjo mail accepted for delivery)