jeboehm / docker-mailserver

Docker Mailserver based on the famous ISPMail guide
MIT License
368 stars 97 forks source link

SMTP 4.7.1 - Relay access denied #139

Closed JackGH9 closed 1 year ago

JackGH9 commented 3 years ago

Hi guys, I'm trying to send an email from a custom C# script script through docker-mailserver. My pc is in the network 192.169.220.0/24, docker-mailserver is running on a VM (Ubuntu server 20.04.3). I'm trying to use SMTP on port 25

The email fails to send with this error: "Client does not have permission to submit mail to this server. The server response was: 4.7.1: Relay access denied"

I think that I need to add my IP class in Postfix main.cf files, changing the my_network parameter

Is it possible to override this value?

Thanks in advance

My Docker environment: Client: Context: default Debug Mode: false Plugins: app: Docker App (Docker Inc., v0.9.1-beta3) buildx: Build with BuildKit (Docker Inc., v0.6.1-docker) scan: Docker Scan (Docker Inc., v0.8.0) Server: Containers: 8 Running: 0 Paused: 0 Stopped: 8 Images: 67 Server Version: 20.10.8 Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Native Overlay Diff: true userxattr: false Logging Driver: json-file Cgroup Driver: cgroupfs Cgroup Version: 1 Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc Default Runtime: runc Init Binary: docker-init containerd version: 8848fdb7c4ae3815afcc990a8a99d663dda1b590 runc version: v1.0.2-0-g52b36a2 init version: de40ad0 Security Options: apparmor seccomp Profile: default Kernel Version: 5.4.0-88-generic Operating System: Ubuntu 20.04.3 LTS OSType: linux Architecture: x86_64 CPUs: 1 Total Memory: 1.941GiB Name: docker-test ID: Docker Root Dir: /var/lib/docker Debug Mode: false Registry: https://index.docker.io/v1/ Labels: Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false

docker-compose version 1.25.0, build unknown docker-py version: 4.1.0 CPython version: 3.8.10 OpenSSL version: OpenSSL 1.1.1f 31 Mar 2020

jeboehm commented 3 years ago

Hey! Try the submission port 587 :-)

JackGH9 commented 2 years ago

Hi jeboehm, thank you for answer. Using port 587 I was able to send an email :)

Is it possible however to change parameters in postfix configuration? I need to disable local delivery and I must change main.cf file (see https://www.payetteforward.com/disable-local-email-delivery-postfix-iredmail/)

Thank you!

jeboehm commented 1 year ago

sorry, this is not in the project's focus.