I installed postfix as a mail server on my Ubuntu server but when I try to send a mail from rainloop I get an error in the logs saying access is denied.My domain name is dimdams.com
The subdomain for rainloop is webmail.dimdams.com
The one for postfix is mail.dimdams.com
I also made an MX record on cloudflare but I don't really know about it so I don't know if that could be the cause.I looked on other forums how to correct this error but each time it says to add a hostname except that I don't know which one
Here is my main.cf
configuration :
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)biff = noappend_dot_mydomain = noreadme_directory = nocompatibility_level = 3.6smtpd_tls_security_level = maysmtpd_tls_auth_only = yessmtpd_tls_cert_file = /etc/letsencrypt/live/mail.dimdams.com/fullchain.pemsmtpd_tls_key_file = /etc/letsencrypt/live/mail.dimdams.com/privkey.pemsmtpd_tls_CAfile = /etc/letsencrypt/live/mail.dimdams.com/fullchain.pemsmtp_tls_security_level = encryptsmtp_tls_protocols = !SSLv2, !SSLv3, !TLSv1, !TLSv1.1smtp_tls_CApath=/etc/ssl/certssmtp_tls_session_cache_database = btree:${data_directory}/smtp_scachesmtp_use_tls = yes# smtp_tls_wrappermode = yessmtp_tls_mandatory_protocols = >=TLSv1.2smtp_tls_mandatory_ciphers = highsmtpd_tls_mandatory_ciphers = highsmtpd_tls_ciphers = highsmtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destinationmydomain = dimdams.commyhostname = mail.dimdams.comalias_maps = hash:/etc/aliasesalias_database = hash:/etc/aliasesmyorigin = $myhostnamemydestination = $myhostname webmail.dimdams.com localhost.$mydomain localhostsmtp_helo_name = mail.dimdams.comrelayhost = [mail.dimdams.com]:587mynetworks = 127.0.0.0/8 192.168.1.0/24inet_interfaces = allinet_protocols = allvirtual_mailbox_domains = mysql:/etc/postfix/sql/mysql_virtual_domains_maps.cfvirtual_alias_maps = mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf, mysql:/etc/postfix/sql/mysql_virtual_alias_domain_maps.cf, mysql:/etc/postfix/sql/mysql_virtual_alias_domain_catchall_maps.cfvirtual_mailbox_maps = mysql:/etc/postfix/sql/mysql_virtual_mailbox_maps.cf, mysql:/etc/postfix/sql/mysql_virtual_alias_domain_mailbox_maps.cfvirtual_transport = lmtp:unix:private/dovecot-lmtpsmtpd_sasl_type = dovecotsmtpd_sasl_path = private/authsmtpd_sasl_local_domain = smtpd_sasl_security_options = noanonymousbroken_sasl_auth_clients = yessmtpd_sasl_auth_enable = yessmtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destinationmilter_protocol = 6milter_mail_macros = i {mail_addr} {client_addr} {client_name} {auth_authen}milter_default_action = acceptsmtpd_milters = inet:localhost:11332non_smtpd_milters = inet:localhost:11332smtp_tls_note_starttls_offer = yessmtpd_tls_loglevel = 1smtpd_tls_received_header = yes
and it gives me this error :
Aug 27 15:03:32 server-001 postfix/submission/smtpd[2554523]: NOQUEUE: reject: RCPT from bbox.lan[192.168.1.254]: 554 5.7.1 <bbox.lan[192.168.1.254]>: Client host rejected: Access denied; from=<abuse@dimdams.com> to=<yyy618442@gmail.com> proto=ESMTP helo=<mail.dimdams.com>
I tried adding hostnames but it doesn't change anything