[Resolved] Open relay

4 posts / 0 new
Last post
#1 Fri, 05/10/2013 - 15:43

[Resolved] Open relay

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_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
Fri, 05/10/2013 - 23:01


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?


Sat, 05/11/2013 - 04:03 (Reply to #2)

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.

Sat, 05/11/2013 - 08:38


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)

Topic locked