hardware / mailserver

:warning: UNMAINTAINED - Simple and full-featured mail server using Docker
https://store.docker.com/community/images/hardware/mailserver
MIT License
1.29k stars 322 forks source link

Sender address rejected: not logged in (Diagnostic-Code: smtp; 553 5.7.1) #329

Closed ksylvan closed 6 years ago

ksylvan commented 6 years ago

Classification

Reproducibility

Docker information

docker info
Containers: 7
 Running: 7
 Paused: 0
 Stopped: 0
Images: 16
Server Version: 17.12.0-ce
Storage Driver: overlay2
 Backing Filesystem: extfs
 Supports d_type: true
 Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 89623f28b87a6004d4b785663257362d1658a729
runc version: b2567b37d7b75eb4cf325b77297b140ea686ce8f
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.9.0-4-amd64
Operating System: Debian GNU/Linux 9 (stretch)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 1.957GiB
Name: sylvan.com
ID: MZKR:RII6:53YA:MBS6:U44T:JIXH:6JOJ:ZLAY:INCF:36NZ:NCNN:SAEE
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

WARNING: No swap limit support

docker images hardware/mailserver --digests --filter "dangling=false"
REPOSITORY            TAG                 DIGEST                                                                    IMAGE ID            CREATED             SIZE
hardware/mailserver   1.1-latest          sha256:24591784135e2d3d1575284bf560beabb3eac8ae808547d7fb6673a1da9bdb6f   e525eb5e79bf        2 days ago          380MB
hardware/mailserver   1.1-stable          sha256:86c4d9beedf8a0d6f311acc854d9ca8862231cc9d4ad0afb9f389c2053e3c221   d56ae0c7d21e        14 months ago       332MB
hardware/mailserver   1.1-beta            sha256:10bddc1541f827e8efa29447958059ef34ac20300d5a985271e2757ef4319fc4   5f828d615d1d        14 months ago       316MB
hardware/mailserver   latest              sha256:5ff8559ba758cd23f44121e64c152edded8a3370f46bff23d946b4209bdb375b   834cbdab45d6        14 months ago       235MB

Description

I send emails from the server to an email list, and get back an email:

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

 kayvan@sylvan.com
   host mail.sylvan.com [45.77.3.251]
   SMTP error from remote mail server after RCPT TO:<kayvan@sylvan.com>:
   553 5.7.1 <kayvan@sylvan.com>: Sender address rejected:
   not logged in
Reporting-MTA: dns; out2d.electric.net

Action: failed
Final-Recipient: rfc822;kayvan@sylvan.com
Status: 5.0.0
Remote-MTA: dns; mail.sylvan.com
Diagnostic-Code: smtp;
553 5.7.1 <kayvan@sylvan.com>: Sender address rejected: not
logged in

Steps to reproduce

  1. Send email
  2. Wait for the bounce message :-)

Expected results

Email delivered.

Actual results

Bounce message.

Debugging information

docker logs mailserver

2018-10-30T23:03:39.283575+00:00 mail dovecot: imap-login: Login: user=<kayvan@sylvan.com>, method=PLAIN, rip=99.9.169.111, lip=172.18.0.5, mpid=10967, TLS, session=<nGQ7Mnp5XP5jCalv>
2018-10-30T23:03:39.350932+00:00 mail dovecot: imap(kayvan@sylvan.com): Logged out in=36 out=492
2018-10-30T23:03:40.523181+00:00 mail dovecot: imap-login: Disconnected (auth failed, 1 attempts in 6 secs): user=<kathy@sylvan.com>, method=PLAIN, rip=77.48.13.45, lip=172.18.0.5, TLS, session=<fyT1MXp5wKFNMA0t>
2018-10-30T23:03:47.093231+00:00 mail postfix/submission/smtpd[11005]: connect from 99-9-169-111.lightspeed.sntcca.sbcglobal.net[99.9.169.111]
2018-10-30T23:03:47.415928+00:00 mail postfix/submission/smtpd[11005]: Anonymous TLS connection established from 99-9-169-111.lightspeed.sntcca.sbcglobal.net[99.9.169.111]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
2018-10-30T23:03:47.682093+00:00 mail postfix/submission/smtpd[11005]: A67B37D0D9: client=99-9-169-111.lightspeed.sntcca.sbcglobal.net[99.9.169.111], sasl_method=PLAIN, sasl_username=kayvan@sylvan.com
2018-10-30T23:03:47.781529+00:00 mail postfix/authclean/cleanup[11007]: A67B37D0D9: replace: header Received: from [192.168.1.191] (99-9-169-111.lightspeed.sntcca.sbcglobal.net [99.9.169.111])??(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))??(No client certificate requested)? from 99-9-169-111.lightspeed.sntcca.sbcglobal.net[99.9.169.111]; from=<kayvan@sylvan.com> to=<babble@babbletm.org> proto=ESMTP helo=<[192.168.1.191]>: Received: from authenticated-user (mail.sylvan.com [127.0.0.1])??(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))??(No client certificate requested)??by mail.sylvan.com (Postfix) with ESMTPSA id A67B37D0D9??for <babble@babbletm.org>; Tue, 30 Oct 2018 23:03:47 +0000 (UTC)
2018-10-30T23:03:47.781936+00:00 mail postfix/authclean/cleanup[11007]: A67B37D0D9: replace: header Mime-Version: 1.0 (Mac OS X Mail 12.0 \(3445.100.39\)) from 99-9-169-111.lightspeed.sntcca.sbcglobal.net[99.9.169.111]; from=<kayvan@sylvan.com> to=<babble@babbletm.org> proto=ESMTP helo=<[192.168.1.191]>: Mime-Version: 1.0
2018-10-30T23:03:47.784942+00:00 mail postfix/authclean/cleanup[11007]: A67B37D0D9: message-id=<F033EFF6-3342-4A18-B1F6-6F37E1AA359D@sylvan.com>
2018-10-30T23:03:48.421958+00:00 mail postfix/qmgr[654]: A67B37D0D9: from=<kayvan@sylvan.com>, size=3935, nrcpt=1 (queue active)
2018-10-30T23:03:48.535270+00:00 mail postfix/smtpd[11025]: connect from localhost[127.0.0.1]
2018-10-30T23:03:48.552109+00:00 mail postfix/smtpd[11025]: 86C2E7D893: client=localhost[127.0.0.1]
2018-10-30T23:03:48.558148+00:00 mail postfix/cleanup[11026]: 86C2E7D893: message-id=<F033EFF6-3342-4A18-B1F6-6F37E1AA359D@sylvan.com>
2018-10-30T23:03:48.561799+00:00 mail postfix/qmgr[654]: 86C2E7D893: from=<kayvan@sylvan.com>, size=6067, nrcpt=1 (queue active)
2018-10-30T23:03:48.563213+00:00 mail postfix/smtpd[11025]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
2018-10-30T23:03:48.582840+00:00 mail postfix/pipe[11009]: A67B37D0D9: to=<babble@babbletm.org>, relay=zeyple, delay=1, delays=0.87/0.01/0/0.15, dsn=2.0.0, status=sent (delivered via zeyple service)
2018-10-30T23:03:48.583194+00:00 mail postfix/qmgr[654]: A67B37D0D9: removed
2018-10-30T23:03:54.020271+00:00 mail postfix/smtp[11027]: Untrusted TLS connection established to mx.fusemail.net[72.35.12.4]:25: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
2018-10-30T23:03:54.585694+00:00 mail postfix/smtpd[10998]: connect from in3i.electric.net[72.35.12.83]
2018-10-30T23:03:54.694879+00:00 mail postfix/smtpd[10998]: Anonymous TLS connection established from in3i.electric.net[72.35.12.83]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
2018-10-30T23:03:54.785113+00:00 mail postfix/smtpd[10998]: BF9C77D899: client=in3i.electric.net[72.35.12.83]
2018-10-30T23:03:54.835401+00:00 mail postfix/smtpd[10998]: disconnect from in3i.electric.net[72.35.12.83] ehlo=2 starttls=1 mail=1 rcpt=1 quit=1 commands=6
2018-10-30T23:03:55.461782+00:00 mail postfix/smtp[11027]: 86C2E7D893: to=<babble@babbletm.org>, relay=mx.fusemail.net[72.35.12.4]:25, delay=6.9, delays=0.02/0.03/5.5/1.4, dsn=2.0.0, status=sent (250 OK id=1gHd3D-00070L-4F)
2018-10-30T23:03:55.462813+00:00 mail postfix/qmgr[654]: 86C2E7D893: removed
2018-10-30T23:03:57.570440+00:00 mail postfix/smtpd[10998]: connect from smtp-out2.electric.net[208.70.129.189]
2018-10-30T23:03:57.899918+00:00 mail postfix/smtpd[10998]: Anonymous TLS connection established from smtp-out2.electric.net[208.70.129.189]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
2018-10-30T23:03:58.056472+00:00 mail postfix/smtpd[10998]: NOQUEUE: reject: RCPT from smtp-out2.electric.net[208.70.129.189]: 553 5.7.1 <kayvan@sylvan.com>: Sender address rejected: not logged in; from=<kayvan@sylvan.com> to=<kayvan@sylvan.com> proto=ESMTP helo=<smtp-out2.electric.net>
2018-10-30T23:03:58.135592+00:00 mail postfix/smtpd[10998]: disconnect from smtp-out2.electric.net[208.70.129.189] ehlo=2 starttls=1 mail=1 rcpt=0/1 data=0/1 quit=1 commands=5/7
2018-10-30T23:03:58.812349+00:00 mail postfix/smtpd[10998]: connect from bounce2.electric.net[208.70.129.174]
2018-10-30T23:03:59.119083+00:00 mail postfix/smtpd[10998]: Anonymous TLS connection established from bounce2.electric.net[208.70.129.174]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
2018-10-30T23:03:59.268398+00:00 mail postfix/smtpd[10998]: 417837D893: client=bounce2.electric.net[208.70.129.174]
2018-10-30T23:03:59.345256+00:00 mail postfix/cleanup[11026]: 417837D893: message-id=<E1gHd3G-00068C-TN@out2a.electric.net>
2018-10-30T23:03:59.362604+00:00 mail rspamd[687]: <>; rdns; rdns_make_request_full: got empty name to resolve
2018-10-30T23:03:59.682063+00:00 mail postfix/qmgr[654]: 417837D893: from=<>, size=10925, nrcpt=1 (queue active)
2018-10-30T23:03:59.756069+00:00 mail postfix/smtpd[10998]: disconnect from bounce2.electric.net[208.70.129.174] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
2018-10-30T23:03:59.760710+00:00 mail postfix/smtpd[11025]: connect from localhost[127.0.0.1]
2018-10-30T23:03:59.771808+00:00 mail postfix/smtpd[11025]: BC65D7D899: client=localhost[127.0.0.1]
2018-10-30T23:03:59.776654+00:00 mail postfix/cleanup[11026]: BC65D7D899: message-id=<E1gHd3G-00068C-TN@out2a.electric.net>
2018-10-30T23:03:59.781041+00:00 mail postfix/qmgr[654]: BC65D7D899: from=<mailer-daemon@electric.net>, size=11982, nrcpt=1 (queue active)
2018-10-30T23:03:59.782143+00:00 mail postfix/smtpd[11025]: disconnect from localhost[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
2018-10-30T23:03:59.807057+00:00 mail postfix/pipe[11009]: 417837D893: to=<kayvan@sylvan.com>, relay=zeyple, delay=0.54, delays=0.42/0/0/0.12, dsn=2.0.0, status=sent (delivered via zeyple service)
2018-10-30T23:03:59.807297+00:00 mail postfix/qmgr[654]: 417837D893: removed
2018-10-30T23:03:59.827577+00:00 mail dovecot: lmtp(11044): Connect from local
2018-10-30T23:03:59.841570+00:00 mail dovecot: lmtp(kayvan@sylvan.com): O91PMV/j2FskKwAALcq9hA: sieve: msgid=<E1gHd3G-00068C-TN@out2a.electric.net>: stored mail into mailbox 'INBOX'
2018-10-30T23:03:59.845225+00:00 mail postfix/lmtp[11043]: BC65D7D899: to=<kayvan@sylvan.com>, relay=mail.sylvan.com[private/dovecot-lmtp], delay=0.07, delays=0.01/0.04/0.01/0.01, dsn=2.0.0, status=sent (250 2.0.0 <kayvan@sylvan.com> O91PMV/j2FskKwAALcq9hA Saved)
2018-10-30T23:03:59.845457+00:00 mail dovecot: lmtp(11044): Disconnect from local: Successful quit
2018-10-30T23:03:59.845602+00:00 mail postfix/qmgr[654]: BC65D7D899: removed
hardware commented 6 years ago

You need to be SASL authenticated to send an email https://github.com/hardware/mailserver/issues/187

ksylvan commented 6 years ago

Right. I can send emails just fine. It's when I am receiving from that mailing list that I am getting that error.

hardware commented 6 years ago

I think this error is pretty clear, smtp-out2.electric.net ask you to login with kayvan@sylvan.com before to do anything. This message is covered by at least 10 issues in this repository, please use the search function :)

ksylvan commented 6 years ago

Alright. Seems like a misconfiguration on their end. They have nothing to do with @sylvan.com addresses.