- I have a VPS server (ubuntu)
- I have a Postfix mail server and Dovecot IMAP/POP3 server
- I have configured my postfix server for sending mails (I got 10/10 sending score) (DKIM correct, DMARC correct, SPF correct, PTR correct, MX correct, A reocrd)
- $mydestination in postfix configuration file is :
mydestination = $myhostname, mskillsa.com, mainserver.mskillsa.com, localhost.mskillsa.com, localhost, mail.mskillsa.com
- When I run this command in terminal (netstat -tnap | grep master) I get:
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 11420/master
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 11420/master
tcp6 0 0 :::465 :::* LISTEN 11420/master
tcp6 0 0 :::25 :::* LISTEN 11420/master
- When I run (dig MX mskillsa.com) I get:
; <<>> DiG 9.11.3-1ubuntu1.17-Ubuntu <<>> MX mskillsa.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12484
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;mskillsa.com. IN MX
;; ANSWER SECTION:
mskillsa.com. 14400 IN MX 10 mainserver.mskillsa.com.
mskillsa.com. 14400 IN MX 10 mail.mskillsa.com.
;; Query time: 125 msec
;; SERVER: 31.220.105.10#53(31.220.105.10)
;; WHEN: Fri Aug 12 11:42:49 UTC 2022
;; MSG SIZE rcvd: 89
- When I run (dig A mskillsa.com) I get:
; <<>> DiG 9.11.3-1ubuntu1.17-Ubuntu <<>> A mskillsa.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53419
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;mskillsa.com. IN A
;; ANSWER SECTION:
mskillsa.com. 14400 IN A (My IP address)
;; Query time: 25 msec
;; SERVER: 31.220.105.10#53(31.220.105.10)
;; WHEN: Fri Aug 12 11:44:23 UTC 2022
;; MSG SIZE rcvd: 57
- I also get like (bounce or reject) mail from Gmail when I send to my server and It says:
This is the mail system at host mainserver.mskillsa.com.
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<[email protected]>: unknown user: "info"
- I have usermin interface (port:20000)
- I have roundcube interface
- I have virtualmin/webmin manager
- I can send from them to any address but I can not receive
- My mail.log file is empty
- When I run (telnet 45.82.73.195 25) I get
Trying 45.82.73.195...
Connected to 45.82.73.195.
Escape character is '^]'.
- When I run (telnet 45.82.73.195 465) I get:
Trying 45.82.73.195...
Connected to 45.82.73.195.
Escape character is '^]'.
My postfix configuration:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
compatibility_level = 2
inet_interfaces = all
inet_protocols = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
milter_default_action = accept
mydestination = $myhostname, mskillsa.com, mainserver.mskillsa.com, localhost.mskillsa.com, localhost, mail.mskillsa.commyhostname = mainserver.mskillsa.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = $myhostname
non_smtpd_milters = inet:localhost:8891
readme_directory = no
recipient_delimiter = +
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_milters = inet:localhost:8891
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_gid_maps = static:2000
virtual_mailbox_base = /home/virtualmailboxes
virtual_mailbox_domains = mskillsa.com
virtual_mailbox_maps = hash:/etc/postfix/virtualmaps
virtual_minimum_uid = 500
virtual_uid_maps = static:2000
Dovecot configuration:
auth_mechanisms = plain login
disable_plaintext_auth = no
mail_location = maildir:~/Maildir
mail_privileged_group = mail
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
}
passdb {
driver = pam
}
protocols = " imap pop3"
ssl_cert = </etc/dovecot/private/dovecot.pem
ssl_client_ca_dir = /etc/ssl/certs
ssl_key = # hidden, use -P to show it
userdb {
driver = passwd
}
local_name mskillsa.com {
ssl_cert = </home/mskillsa/ssl.combined
ssl_key = # hidden, use -P to show it
}
local_name *.mskillsa.com {
ssl_cert = </home/mskillsa/ssl.combined
ssl_key = # hidden, use -P to show it
}
Can you help me to fix the problem of receiving mails from external sources??