These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for [Resolved] Open relay on the new forum.
I have installed Virtualmin 3.99 on Debian 6.0 Using Postfix 2.7.1, default settings. My server is using as open relay, how I can disable it?
Please, help me, I have stopped postfix and don't know what to do. Much thanks!
Main.cfg (domain.com for example):
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
myhostname = domain.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = Debian-60-squeeze-64-minimal, domain.com, localhost.com, localhost
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
mailbox_size_limit = 0
recipient_delimiter = +
virtual_alias_maps = hash:/etc/postfix/virtual
sender_bcc_maps = hash:/etc/postfix/bcc
home_mailbox = Maildir/
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
allow_percent_hack = no
Howdy,
I don't see anything there that appears to make your server an open relay.. what symptoms are you seeing that make it appear to be an open relay?
-Eric
Thanks for unswer.
Seems, that one of the sites was hacked.
When I disable it, spamming is stoping.
Could you help, how can I determine, which script is sending mail?
And one more question, how can I limit mail sending per hour, for example 5 mails/hour.
Hi.
Please see http://www.virtualmin.com/node/12567
You cannot put limits on individual virtual servers; only on the system server. (that I know of)