1 (edited by alex42 2018-01-05 15:57:11)

Topic: Mastodon SMTP settings

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: Ubuntu 16.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hallo,

I've set up a mail server using the great iRedMail. On the same server I want to setup a Mastodon instance (federated social network). I've got some questions concerning the SMTP-settings of Mastodon. The sending of email with my current settings don't work and I've got no clue why:

# E-mail configuration
# Note: Mailgun and SparkPost (https://sparkpo.st/smtp) each have good free tiers
# If you want to use an SMTP server without authentication (e.g local Postfix relay)
# then set SMTP_AUTH_METHOD and SMTP_OPENSSL_VERIFY_MODE to 'none' and
# *comment* SMTP_LOGIN and SMTP_PASSWORD (leaving them blank is not enough).
SMTP_SERVER=127.0.0.1
SMTP_PORT=587
SMTP_LOGIN=notifications@example.com
SMTP_PASSWORD=******
SMTP_FROM_ADDRESS=notifications@example.com
SMTP_DOMAIN=example.com
SMTP_DELIVERY_METHOD=smtp
SMTP_AUTH_METHOD=plain
SMTP_CA_FILE=/etc/ssl/certs/ca-certificates.crt
#SMTP_OPENSSL_VERIFY_MODE=peer
SMTP_ENABLE_STARTTLS_AUTO=false
#SMTP_TLS=true

Here comes the output of my mail.log:

Jan  5 08:49:30 mail postfix/submission/smtpd[8915]: connect from mail.example.com[127.0.0.1]
Jan  5 08:49:30 mail postfix/submission/smtpd[8915]: Anonymous TLS connection established from mail.example.com[127.0.0.1]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Jan  5 08:49:30 mail postfix/submission/smtpd[8915]: lost connection after STARTTLS from mail.example.com[127.0.0.1]
Jan  5 08:49:30 mail postfix/submission/smtpd[8915]: disconnect from mail.example.com[127.0.0.1] ehlo=1 starttls=1 commands=2

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Mastodon SMTP settings

Solved it myself by changing SMTP_DELIVERY_METHOD to sendmail.