I made some progress, all services start without errors.

When tried to send a test mail from Gmail to my server, got the error:

smtpd[727]: ny express[727]: c2a5ef6f793addab mda delivery
evpid=567ebdf9f826cf44
  from=<[email protected]> to=<[email protected]> rcpt=<[email protected]>
user=vmail
  delay=4m10s result=TempFail stat=Error
  (temporary failure: "mail.lmtp: LMTP server error: 550 5.1.1 <
[email protected]> User doesn't exist: [email protected]")

Below are my conf files


/etc/smtpd/smtpd.conf
=====================
pki mail.birman.com cert "/etc/letsencrypt/live/
mail.birman.com/fullchain.pem"
pki mail.birman.com key  "/etc/letsencrypt/live/mail.birman.com/privkey.pem"

#pki mail.persian.com cert "/etc/letsencrypt/live/
mail.persian.com/fullchain.pem"
#pki mail.persian.com key  "/etc/letsencrypt/live/
mail.persian.com/privkey.pem"

srs key "j1wFzMlJEb1w81mqWC1NpKRsMJBzeKavii+ALQ8W"
#srs key backup ""

filter check_dyndns phase connect match rdns regex { '.*\.dyn\..*',
'.*\.dsl\..*' } \
  disconnect "550 no residential connections"

filter check_rdns phase connect match !rdns \
  disconnect "550 no rDNS is so 80s"

filter check_fcrdns phase connect match !fcrdns \
  disconnect "550 no FCrDNS is so 80s"

filter senderscore \
  proc-exec "filter-senderscore -blockBelow 10 -junkBelow 70 -slowFactor
5000"

filter rspamd proc-exec "filter-rspamd"

table aliases  file:/etc/smtpd/aliases
table domains  file:/etc/smtpd/domains
table passwds  file:/etc/smtpd/passwds
table virtuals file:/etc/smtpd/virtuals

listen on 0.0.0.0 tls pki mail.birman.com \
  filter { check_dyndns, check_rdns, check_fcrdns, senderscore, rspamd }

listen on 0.0.0.0 port submission mask-src tls-require pki mail.birman.com
auth <passwds> \
  filter rspamd

action "RECV" lmtp "/var/run/dovecot/lmtp" rcpt-to virtual <virtuals>
match from any for domain <domains> action "RECV"

action "SEND" relay srs helo mail.birman.com
match from any auth for any action "SEND"


/etc/smtpd/aliases
==================
vmail:          /dev/null

root:           user
user:           [email protected]


/etc/smtpd/domains
==================
birman.com
persian.com
siamese.com


/etc/smtpd/mailname
===================
mail.birman.com


/etc/smtpd/passwds
==================
[email protected]:$6$...::::::
[email protected]:$6$...::::::
[email protected]:$6$...::::::
[email protected]:$6$...::::::
[email protected]:$6$...::::::
[email protected]:$6$...::::::


/etc/smtpd/virtuals
===================
[email protected]        vmail
[email protected]        vmail

[email protected]       vmail
[email protected]       vmail

[email protected]       vmail
[email protected]       vmail


/etc/dovecot/dovecot.conf
=========================
listen = 0.0.0.0

ssl = required
ssl_cert = </etc/letsencrypt/live/mail.birman.com/fullchain.pem
ssl_key  = </etc/letsencrypt/live/mail.birman.com/privkey.pem

ssl_min_protocol = TLSv1.2
ssl_prefer_server_ciphers = yes

disable_plaintext_auth = yes

protocols = lmtp imap

service lmtp {
        unix_listener lmtp {
                user  = vmail
                group = vmail
        }
}

service imap-login {
        inet_listener imaps {
                port = 993
        }
}

passdb {
        driver = passwd-file
        args = scheme=SHA512-CRYPT username_format=%n /etc/dovecot/users
}

userdb {
        driver = passwd-file
        args = username_format=%n /etc/dovecot/users
        override_fields = uid=vmail gid=vmail home=/var/mail/vmail/%d/%n
}

mail_location = maildir:~/Maildir


/etc/dovecot/users
==================
[email protected]:{SHA512-CRYPT}$6$...::::
[email protected]:{SHA512-CRYPT}$6$...::::

Reply via email to