1

Topic: Use dockerized version of iredmail as relay for local network

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 2021091301
- Deployed with iRedMail Easy or the downloadable installer? Dockerized
- Linux/BSD distribution name and version:  Ubuntu 20.04.3 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
====
Hi, it is possible to have help with configuration of iredmail and postfix ?

I would like the machines on my local network to be able to use the vm as a relay. only, I encounter a lot of errors. When opening a support request I was just told to enable smtp authentication but I didn't not successful despite that
I get errors like

Hello command rejected: ACCESS DENIED. Your email was rejected because the sending mail server does not identify itself
-----
status=bounced (unknown user: "pve")
-----
status=bounced (mail forwarding loop for pve@pve.local)
-----
Recipient address rejected: SMTP AUTH is required for users under this sender domain
-----
Sender address rejected: User unknown
-----
Recipient address rejected: User unknown

here is my configuration, the commented lines have been tested too

myhostname=pve.local (tried with garnoux.com and mail.garnoux.com)
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = mail.garnoux.com, garnoux.com, pve.local, localhost.local, localhost
relayhost = 10.0.0.151:587 (tried without port)
#relay_domains = garnoux.com
inet_interfaces = loopback-only (tried with all)
recipient_delimiter = +
compatibility_level = 2
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 10.0.0.0/24
#transport_maps = hash:/etc/postfix/transport
myorigin = /etc/mailname (pve.local or garnoux.com)
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
default_transport = smtp
relay_transport = smtp
inet_protocols = ipv4
#smtp_use_tls = yes
#smtp_sasl_auth_enable = yes
#smtp_sasl_security_options =
#smtp_sasl_password_maps = hash:/etc/postfix/password
#smtp_tls_CAfile = /etc/ssl/certs/Entrust_Root_Certification_Authority.pem
#smtp_tls_session_cache_database = btree:/var/lib/postfix/smtp_tls_session_cache
#smtp_tls_session_cache_timeout = 3600s

Thank's a lot

----

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

2

Re: Use dockerized version of iredmail as relay for local network

If all you need is a simple relay for local network, how about running a minimalist Linux server and install Postfix on it? iRedMail installs many components and (maybe?) they are not required in your case.