Hi all,

I'm new to the list and have a problem with my mail system. Recently I'm
receiving a lot of spam emails coming from the internet but the sender is a
user from my domain. Then I tried the same thing directly from other system,
as described below:

telnet mailsystemwithproblem 25
helo testdomain
MAIL FROM: <[EMAIL PROTECTED]>
RCPT TO: <[EMAIL PROTECTED]>
DATA
test
.

I've done this with success, and the machine that i've used to telnet is not
in the mynetworks or other parameter.
The problem is that all my users are receiving spam from themselfs. My
server is not an open relay because from outside I can't send email to other
domains, but if somebody connects and send to my own domain it works like I
said before.

My configuration is listed below, i just changed the name of the domain with
testdomain.com and another domain that this machine receive mail with
anotherdomain.com:

smtpd_banner = $myhostname ESMTP
biff = no
append_dot_mydomain = no

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

myhostname = mail.testdomain.com
mydomain = testdomain.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myhostname, $mydomain, [EMAIL PROTECTED],
anotherdomain.com
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
message_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
queue_directory = /var/spool/postfix
debug_peer_level = 2

smtpd_error_sleep_time = 2
smtpd_soft_error_limit = 10
smtpd_hard_error_limit = 10
smtpd_delay_reject = yes
strict_rfc821_envelopes = yes
disable_vrfy_command = yes
maximal_queue_lifetime = 4h
bounce_queue_lifetime = 4h

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes

virtual_maps = hash:/etc/postfix/virtualusertable
virtual_mailbox_base = /var/spool/virtual

body_checks = regexp:/etc/postfix/body-checks.regexp
header_checks = regexp:/etc/postfix/header-checks.regexp

smtpd_sender_restrictions =
        permit_mynetworks
        ,permit_sasl_authenticated
        ,check_client_access hash:/etc/postfix/helo-whitelist
        ,reject_unauth_pipelining

smtpd_recipient_restrictions =
        permit_mynetworks
        ,permit_sasl_authenticated
        ,check_client_access hash:/etc/postfix/helo-whitelist
        ,reject_unauth_destination
        ,reject_unauth_pipelining

inet_protocols = all

I hope somebody could help me solve this problem or at least guide me,
showing what can I do or read to solve this.

Thanks in advance.

Gabriel.

Reply via email to