Forum OpenACS Q&A: Re: Sending Emails via SMTP port 587

Collapse
Posted by Tyge Cawthon on

Still having issues.

Verifying our setup EmailDeliveryMode nssmtpd All other fields in ACS Mail Services Lite are set to the installed default. Change made to ACS Mail Services Lite are noted below for testing and trouble shooting reasons.

config-oacs-5-10-0.tcl

set defaultConfig {
...
    smtpdport   587 
...   
}
ns_section "ns/server/${server}/module/nssmtpd" {
    ns_param port 587 
    ns_param address 108.169.164.147 
    ns_param relay plain://webmaster@celtic-arts.org:xyz+PWD@smtp.celtic-arts.org:587 
    ns_param spamd localhost
    ns_param initproc smtpd::init
    ns_param rcptproc smtpd::rcpt
    ns_param dataproc smtpd::data
    ns_param errorproc smtpd::error
    ns_param relaydomains "localhost domain.com"
    ns_param localdomains "localhost domain.com"

    #
    # Next section is for STARTTLS functionality:
    #
    #ns_param certificate "pathToYourCertificateChainFile.pem"
    #ns_param cafile ""
    #ns_param capath ""
    #ns_param ciphers "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE"
    ns_param logging on ;# default: off
    ns_param logfile ${logdir}/smtpsend.log
    ns_param logrollfmt %Y-%m-%d ;# format appended to log filename
    #ns_param logmaxbackup 100 ;# 10, max number of backup log files
    #ns_param logroll true ;# true, should server log files automatically
    #ns_param logrollonsignal true ;# false, perform roll on a sighup
    #ns_param logrollhour 0 ;# 0, specify at which hour to roll
}

ns_section ns/server/${server}/modules {
if {$smtpdport ne ""} {ns_param nssmtpd nssmtpd}
}

Error.log file

[-driver:nssmtpd:0-]Notice: starting
[-driver:nssmtpd:0-]Notice: bind operation on sock 29 lead to error: Cannot assign requested address
[-driver:nssmtpd:0-]Warning: bind on: SockAddr family AF_INET, ip 108.169.164.147, port 587
[-driver:nssmtpd:0-]Error: Ns_SockBinderListen: sendmsg() failed: sent 53 bytes, 'Cannot assign requested address'
[-driver:nssmtpd:0-]Error: nssmtpd:0: failed to listen on [108.169.164.147]:587: Cannot assign requested address
[-driver:nssmtpd:0-]Warning: could no bind any of the following addresses, stopping this driver: 108.169.164.147
[-driver:nssmtpd:0-]Notice: exiting

smtpsend.log is created sometime after trying to send a notification to the user. The smtpsend.log and the screen error message below are related.

localhost:25 come from the ACS Mail Services Lite SMTP section CONNECT_FAILURE [localhost]:25 1.452508 0 bounceDA62@celtic-arts.org> RCPT: btc@labmaster.com

Screen Error after selecting submit email to the new user: The system was unable to send email. Please notify the user personally. This problem is probably caused by a misconfiguration of your email system.

nssmtpd: send: unable to connect to localhost: Transport endpoint is not connected 

I modified the SMTP section as follows

SMTPHost smpt.celtic-arts.org
SMTPPort 587
GREET_FAILURE [smpt.celtic-arts.org]:587 0.000481 0 bounceA050@celtic-arts.org RCPT: btc@labmaster.com

Modifying the SMTPPassword and SMTPUser did not help either.

Error on screen with data fields SMTPHost, SMTPPort, SMTPPassword, SMTPUser in the ACS Mail Services Lite SMTP section.

error reading "sock7677a5527040": socket is not connected 

No information in smtpsend.log with this configuration.

Note: No matter what modifications are done the ACS Mail Services Lite SMTP section, the errors from the error.log file stay the same.

I thought having EmailDeliveryMode nssmtpd in the Rollout support section would have bypassed the ACS Mail Services Lite SMTP section.

I tried both webmaster@celtic-arts.org and webmaster%40celtic-arts.org with no success. For troubleshooting purposes I simplified the password to only a number,lower and upper case characters.

Not sure where to go from here.