getgrav / grav-plugin-email

Grav Email Plugin
http://getgrav.org
MIT License
37 stars 29 forks source link

Problem with sending email (encryption: none) #180

Open martinknor opened 6 months ago

martinknor commented 6 months ago

After update from version 3.2 to 4.x is not possible to send emails without encryption.

On smtp i have this log:

Jan 17 12:38:45 secos postfix/smtpd[25651]: error: unsupported dictionary type: hash
Jan 17 12:38:45 secos postfix/smtpd[25651]: warning: cannot get RSA certificate from file "/etc/ssl/certs/ssl-cert-snakeoil.pem": disabling TLS support
Jan 17 12:38:45 secos postfix/smtpd[25651]: warning: TLS library problem: error:02001002:system library:fopen:No such file or directory:crypto/bio/bss_file.c:288:fopen('/etc/ssl/certs/ssl-cert-snakeoil.pem','r'):
Jan 17 12:38:45 secos postfix/smtpd[25651]: warning: TLS library problem: error:20074002:BIO routines:file_ctrl:system lib:crypto/bio/bss_file.c:290:
Jan 17 12:38:45 secos postfix/smtpd[25651]: warning: TLS library problem: error:140DC002:SSL routines:use_certificate_chain_file:system lib:ssl/ssl_rsa.c:596:
Jan 17 12:38:45 secos postfix/smtpd[25651]: warning: hostname xxxx does not resolve to address xxx.xxx.xxx.xxx: Name does not resolve
Jan 17 12:38:45 secos postfix/smtpd[25651]: connect from unknown[xxx.xxx.xxx.xxx]
Jan 17 12:38:45 secos postfix/smtpd[25651]: lost connection after STARTTLS from unknown[xxx.xxx.xxx.xxx]

It seems that grav ignore no encryption option.

image

rhukster commented 2 months ago

I can send email without encryption via SMTP. Are you sure its not a requirement your SMTP daemon side?

mailer:
  engine: smtp
  smtp:
    server: localhost
    port: 2525
    encryption: none

Works with my local testing proxy without issues.