PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : postfix: open relay (???)



msi
28.07.02, 00:00
hallo,

ich habe ein big problem, ich kann meinen postfix server
nicht dazu überreden dass er kein open relay mehr ist.
meine konfig:

command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
setgid_group = postdrop
biff = no

mydomain = private.de
append_dot_mydomain = yes
myhostname = sun
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $mydomain
mydestination = sun, localhost.localdomain, , localhost, $mydomain
relayhost =
mynetworks = 127.0.0.1/24
# ja und hier ist das prob
# er nimmt trotzdem noch von andern rechner im netz (192.168.0.0/24)
# mails für bsp. @gmx.de entgegen
# versteh ich nicht
mailbox_size_limit = 0
recipient_delimiter = +

home_mailbox = Maildir/
relay_domains = $mydestination, freemail.private.de
# postfix
# nimmt nur mails für relay_domains von allen (inet_interfaces) entgegen
# aber er nimmt trotzdem noch von 192.168.0.0/24 mails für
# andere domains an
virtual_mailbox_base = /var/spool/maildirs
virtual_uid_maps = mysql:/etc/postfix/mysql-ids
virtual_gid_maps = mysql:/etc/postfix/mysql-ids
virtual_mailbox_maps = mysql:/etc/postfix/mysql-mailbox
virtual_minimum_uid = 5000


thx im Vorraus Markus

Belkira
28.07.02, 01:56
mydestination = sun, localhost.localdomain, , localhost, $mydomain
relay_domains = $mydestination, freemail.private.de

Du erlaubst hier relaying für $mydestination, wo Deine ganze Domain drin aufgelistet ist.

msi
29.07.02, 04:26
alle hosts die in einer domain sind die in relay_domains aufgelistet
ist dürfen meinen host auf als relay benutzen??

thx Markus

Weihnachtsmann
29.07.02, 07:32
setrz mal deine netmask richtig bei my_networks

vielleicht akzeptiert er deshalb die zeile nicht, und verwendet die default config, die relay vom lokalen subnet erlaubt

mynetworks = 127.0.0.0/8

Belkira
29.07.02, 10:45
alle hosts die in einer domain sind die in relay_domains aufgelistet
ist dürfen meinen host auf als relay benutzen??
Auszug aus der Postfix Dokumentation:

What clients to relay mail for

By default, Postfix will relay mail for clients in authorized networks and in authorized domains.

Authorized client networks are defined by the mynetworks parameter. The default is to authorize all clients in the IP subnetworks that the local machine is attached to.

Authorized client domains are by defined by the relay_domains configuration parameter. The default setting trusts clients with hostnames below the domain(s) listed in mydestination.

msi
29.07.02, 16:31
@Belkira
vielen Dank. Jetzt ist mir das klar geworden,

@others
auch an die anderen vielen Dank für eure Hilfe!

Markus