Hello,
I logged into a server that I was using to test out postfix and discovered tens of thousands of messages in a user mailbox.
I used the MX Toolbox site to check my server and it says that the server may be an open relay.
I've added
Code:
smtpd_sender_restrictions = reject_unknown_sender_domain
and
Code:
reject_unauth_destination reject_unknown_reverse_client_hostname
to my main.cf file and reloaded and restarted the service but after testing again using the above site and other SMTP testing sites I keep getting messages that my server is an open relay.
Can you shed some light on this issue for me?
Below is a copy of my main.cf file.
Code:
alias_maps hash:/etc/aliases
always_bcc root
best_mx_transport local
inet_protocols all
luser_relay maildrop
mail_name mywebsite.site
mailbox_size_limit 2048000000
mailq_path /usr/bin/mailq.postfix
manpage_directory /usr/share/man
mydestination $myhostname, localhost.$mydomain, $mydomain
mydomain com
myhostname mywebsite.site
myorigin $mydomain
newaliases_path /usr/bin/newaliases.postfix
notify_classes bounce, 2bounce, delay, policy, protocol, resource, software
readme_directory /usr/share/doc/postfix-2.6.6/README_FILES
sample_directory /usr/share/doc/postfix-2.6.6/samples
sendmail_path /usr/sbin/sendmail.postfix
smtp_sasl_auth_enable yes
smtpd_recipient_restrictions permit_mynetworks permit_inet_interfaces permit_sasl_authenticated check_relay_domains reject_unauth_destination reject_unknown_reverse_client_hostname
smtpd_sasl_auth_enable yes
smtpd_sender_restrictions reject_unknown_sender_domain
smtpd_tls_cert_file /noyb/sike.pem
smtpd_tls_key_file /noyb/sike.pem
smtpd_tls_security_level may
virtual_alias_maps hash:/etc/postfix/virtual