Hello all, 

I just finished setting up a postfix server with mysql/virtual users. I can 
send and receive emails fine. But my server is an open relay according to 
online tests. I've tried many and they all list my server as an open relay. 
I've tried my best to correct this problem but i can't figure it out. Maybe you 
can help me out. I've posted my main.cf

Thanks!

# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# 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
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings

readme_directory = no

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/dovecot.pem
smtpd_tls_key_file=/etc/ssl/private/dovecot.pem
smtpd_tls_security_level = may
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_tls_per_site = hash:/etc/postfix/tls_per_site
smtpd_tls_CAfile = /etc/postfix/CAcert.pem

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = example.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myhostname
mydomain = example.com
myorigin = $mydomain
relayhost =
mynetworks = 127.0.0.1/8,198.100.50.0/24
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
message_size_limit = 20480000
recipient_delimiter = +
inet_interfaces = all
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_alias_maps = 
mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf
virtual_transport = dovecot

dovecot_destination_recipient_limit = 1

smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
content_filter = smtp-amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings

show_user_unknown_table_name = no

smtpd_helo_required = yes
strict_rfc821_envelopes = yes
smtpd_delay_reject = no
disable_vrfy_command = yes
unknown_address_reject_code  = 554
unknown_hostname_reject_code = 554
unknown_client_reject_code   = 554


smtpd_helo_restrictions = 
permit_mynetworks,reject_invalid_hostname,reject_unknown_hostname

smtpd_sender_restrictions = 
hash:/etc/postfix/access,reject_unknown_recipient_domain,reject_non_fqdn_sender

smtpd_data_restrictions = reject_unauth_pipelining

smtpd_recipient_restrictions =

  reject_invalid_hostname,

  reject_non_fqdn_sender,

  reject_non_fqdn_recipient,

  reject_unknown_sender_domain,

  reject_unknown_recipient_domain,

  permit_mynetworks,

  reject_unauth_destination,

  permit_sasl_authenticated,

  reject_unauth_pipelining,                                       
_________________________________________________________________
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3

Reply via email to