Relais de spams+postfix

bibbou Messages postés 138 Statut Membre -  
 gnieark -
Bonjour,
Bonjour tout le monde,

J'ai un serveur de messagerie postfix installé sur une debian.
la queue des messages est pleines avec les spams, j'ai essayé de vider
la queue mais tjr pleine.j'ai spamassain comme antisapm

mon main.cf est comme suit

#############

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

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)

biff = no

# appending .domain is the MUA's job.

append_dot_mydomain = no

setgid_group = postdrop

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

#delay_warning_time = 4h

alias_maps = hashetc/aliases

alias_database = hashetc/aliases

local_recipient_maps =

mydomain = lll.lll

myhostname = lll.lll.lll

myorigin = /etc/mailname

mydestination = $mydomain, $myhostname, localhost.localdomain, localhost

#mynetworks=hashetc/postfix/relay_hosts

mynetworks = 127.0.0.1, 196.lll.lll.0/24, 10.0.0.0/8

#relay_domains=$mydestination $mynetworks

mailbox_command = procmail -a "$EXTENSION"

mailbox_size_limit = 0

recipient_delimiter = +

# -- ajoute pour clamsmtp --

content_filter = scan:127.0.0.1:10025

receive_override_options = no_address_mappings

# -- end --

#queue_run_delay=3600

#header_checks=regexpetc/postfix/header_checks

smtpd_recipient_restrictions = permit_mynetworks , reject_unauth_destination

##############

master.cf

##########

#

==========================================================================

# service type private unpriv chroot wakeup maxproc command + args

# (yes) (yes) (yes) (never) (100)

# ==========================================================================

smtp inet n - n - - smtpd -o content_filter=spamassassin

#127.0.0.1:smtp-backdoor inet n -n - - smtpd -o content_filter=

#submission inet n - - - - smtpd -v

# -o smtpd_etrn_restrictions=reject

#628 inet n - - - - qmqpd

pickup fifo n - - 60 1 pickup

cleanup unix n - - - 0 cleanup

qmgr fifo n - - 300 1 qmgr

#qmgr fifo n - - 300 1 oqmgr

rewrite unix - - - - - trivial-rewrite

bounce unix - - - - 0 bounce

defer unix - - - - 0 bounce

trace unix - - - - 0 bounce

verify unix - - - - 1 verify

flush unix n - - 1000? 0 flush

proxymap unix - - - - - proxymap

smtp unix - - - - - smtp

relay unix - - - - - smtp

# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5

showq unix n - - - - showq

error unix - - - - - error

local unix - n n - - local

virtual unix - n n - - virtual

lmtp unix - - n - - lmtp

anvil unix - - n - 1 anvil

#

# Interfaces to non-Postfix software. Be sure to examine the manual

# pages of the non-Postfix software to find out what options it wants.

#

# maildrop. See the Postfix MAILDROP_README file for details.

#

maildrop unix - n n - - pipe

flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}

uucp unix - n n - - pipe

flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)

ifmail unix - n n - - pipe

flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)

bsmtp unix - n n - - pipe

flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop -f$sender $recipient

scalemail-backend unix - n n - 2 pipe

flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}

# only used by postfix-tls

#tlsmgr fifo - - n 300 1 tlsmgr

#smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes

#587 inet n - n - - smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes

# -- Ajoute pour clamsmtp--

scan unix - - n - 16 smtp

-o smtp_send_xforward_command=yes

127.0.0.1:10026 inet n - n - 16 smtpd

-o content_filter=

-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks

-o smtpd_helo_restrictions=

-o smtpd_client_restrictions=

-o smtpd_sender_restrictions=

-o smtpd_recipient_restrictions=permit_mynetworks,reject

-o mynetworks_style=host

-o smtpd_authorized_xforward_hosts=127.0.0.0/8

# --

spamassassin unix - n n - - pipe

user=spamd argv=/usr/bin/spamc -f -e

/usr/sbin/sendmail -oi -f ${sender} ${recipient}

##########

il marchait trés bien

qd je met

tail /var/log/mail.log me donne pleine

AF9BD2056B4 5240 Sun Apr 27 15:24:40 MAILER-DAEMON

(delivery temporarily suspended: host vmx.terra.com[208.70.188.60]
refused to talk to me: 450 Client host rejected: cannot find your
hostname, [ll.lll.lll.lll])

jasminebashaw@terra.com

AE833421 5268 Sun Apr 27 15:25:16 MAILER-DAEMON

(delivery temporarily suspended: host vmx.terra.com[208.70.188.60]
refused to talk to me: 450 Client host rejected: cannot find your
hostname, [lll.lll.lll.lll])

manuelabashaw@terra.com

Je suis bloquée aiiiiiiiiiiiiiiiiiiiiiiiidez moi svp .

2 réponses

LtSoldier Messages postés 23 Statut Membre 2
 
Bonjour,

Explique moi bien en détail la situation s'il te plait.

Merci
0
bibbbou
 
Mon serveur est devenu un relais de spams comment faire pour arrter ca.
les utilistaeurs n'arrive pas envoyer leurs mails

aider moi svvvvvvp
0
gnieark
 
le problème est là à mon avis

mynetworks = 127.0.0.1, 196.lll.lll.0/24, 10.0.0.0/8

196.III.III. O/24 si tu désignais juste une IP publique (la tienne, enlève /24) parceque là tu autorises toute la plage d'adresse à se servir de ton serveur il me semble

si ça correspond aux adresses de ton réseau local, change toutes les adresses de ton réseau local pour qu'il soit dans dans une plage d'IP de classe C non rootable sur internet

Bon courage!
0