PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Postfix-Problem: Relay access denied.



webshark
27.10.05, 13:45
Hallo,
ich habe folgendes Problem:

Ich betreibe einen eigenen Mailserver. Seit kurzem hinter einem IPCop (4 NICs). Zuvor lief alles wie geschmiert, doch jetzt befindet sich der E-Mail-Server unter 123.456.3.30 (nur ein Beispiel) und die Clients unter 123.456.1.XX (Bsp.).

Wenn ich jetzt versuche von einem Client aus eine Mail zu versenden, erhalte ich immer die Meldung: Relay Access denied.

An welcher Schraube von Postfix muss ich denn drehen, ohne zum Spam-Relay zu werden? :confused:

Roger Wilco
27.10.05, 13:53
An welcher Schraube von Postfix muss ich denn drehen, ohne zum Spam-Relay zu werden? :confused:
Kommt darauf an, welche Schrauben bei dir für die Authentifizierung zuständig waren. Meine Glaskugel meint z. B. mynetworks.

webshark
27.10.05, 14:10
Auszug aus meinem Mail-Log:

Oct 27 15:02:12 bbb imap-login: Login: sven [::ffff:192.168.1.19]
Oct 27 15:03:42 bbb postfix/smtpd[19310]: warning: database /etc/postfix/access.db is older than source file /etc/postfix/access
Oct 27 15:03:42 bbb postfix/smtpd[19310]: warning: 192.168.1.19: address not listed for hostname localhost
Oct 27 15:03:42 bbb postfix/smtpd[19310]: connect from unknown[192.168.1.19]
Oct 27 15:03:42 bbb postfix/smtpd[19310]: NOQUEUE: reject: RCPT from unknown[192.168.1.19]: 554 <aaa.bbb@gmx.de>: Relay access denied; from=<aaa@bbb.homeip.net> to=<aaa.bbb@gmx.de> proto=ESMTP helo=<[192.168.1.19]>
Oct 27 15:04:00 bbb postfix/smtpd[19310]: lost connection after RCPT from unknown[192.168.1.19]
Oct 27 15:04:00 bbb postfix/smtpd[19310]: disconnect from unknown[192.168.1.19]
Wenn ich dass richtig verstehe soll ich die IP der Clients zulassen, bloß wo?

Roger Wilco
29.10.05, 11:02
Wenn ich dass richtig verstehe soll ich die IP der Clients zulassen, bloß wo?
mynetworks

webshark
29.10.05, 11:34
readme_directory = /usr/share/doc/packages/postfix/README_FILES
inet_protocols = all
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_maps = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
myhostname = bbb.homeip.net
program_directory = /usr/lib/postfix
masquerade_domains =
mydestination = $myhostname, localhost.$mydomain, bbb.homeip.net
defer_transports =
disable_dns_lookups = no
relayhost = mail.arcor.de
mailbox_command =
mailbox_transport =
strict_rfc821_envelopes = no
smtp_sasl_auth_enable = no
smtpd_sasl_auth_enable = no
smtpd_use_tls = no
smtp_use_tls = no
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 10240000
myorigin = bbb.homeip.net
# AntiVir Einbindung
content_filter = smtp:127.0.0.1:10024 Da soll ich jetzt z.B
mynetworks = 192.168.x.0/30, 192.168.y.0/30einfügen?

Fly
29.10.05, 11:41
Da soll ich jetzt z.B
mynetworks = 192.168.x.0/30, 192.168.y.0/30einfügen?

Ja, genau! Falls es nicht funktioniert würde ich die Zahlen nach der IP-Adresse auf 24 statt 30 ändern! Wenn Subnetz 255.255.255.0 ist, dann setzt du 24!

Fly
29.10.05, 11:43
Vergiss nicht auf 127.0.0.1/8 bei mynetworks, damit du lokal auch mails versenden kannst!

webshark
29.10.05, 12:19
Das Versenden von Mail klappt! Jetzt bekomme ich dass zu sehen und die Mails werden nicht abgeholt:
fetchmail: 6.2.5 querying aaa.bbb@gmx.de (protocol POP3) at Sat Oct 29 13:14:34 2005: poll started
fetchmail: POP3< +OK GMX POP3 StreamProxy ready <30759.1130584533@mp028>
fetchmail: POP3> CAPA
fetchmail: POP3< -ERR Unknown command.
fetchmail: Unknown command.
fetchmail: Repoll immediately on aaa.bbb@gmx.de@pop.gmx.net
fetchmail: POP3< +OK GMX POP3 StreamProxy ready <30878.1130584533@mp034>
fetchmail: POP3> USER aaa.bbb@gmx.de
fetchmail: POP3< +OK May I have your password, please?
fetchmail: POP3> PASS *
fetchmail: POP3< +OK mailbox has 2 messages (2196 octets)
fetchmail: POP3> STAT
fetchmail: POP3< +OK 2 2196
fetchmail: POP3> LAST
fetchmail: POP3< -ERR unknown command
fetchmail: unknown command
fetchmail: POP3> UIDL
fetchmail: POP3< +OK mailbox has 2 messages (2196 octets)
fetchmail: POP3< 1 fd369a6b14f550909d7595ae084495bc
fetchmail: POP3< 2 31b479067e93ebbfa1339d1092732215
fetchmail: POP3< .
2 messages for aaa.bbb@gmx.de at aaa.bbb@gmx.de (2196 octets).
fetchmail: POP3> LIST 1
fetchmail: POP3< +OK 1 1098
fetchmail: POP3> TOP 1 99999999
fetchmail: POP3< +OK message follows
reading message aaa.bbb@gmx.de@pop.gmx.net:1 of 2 (1098 octets)
fetchmail: smtp listener protocol error
fetchmail: smtp listener protocol error
fetchmail: SMTP connect to localhost failed
fetchmail: POP3> QUIT
fetchmail: POP3< 1255
fetchmail: SMTP transaction error while fetching from aaa.bbb@gmx.de
fetchmail: 6.2.5 querying aaa.bbb@gmx.de (protocol POP3) at Sat Oct 29 13:14:40 2005: poll completed

webshark
29.10.05, 12:34
DANKE! :D Es funzt!

# Mein Eintrag
mynetworks = 127.0.0.0/8, 192.168.X.0/24, 192.168.Y.0/24

(x und y müssen natürlich ersetzt werden)

Ein kleiner Schönheitsfehler: 127.0.0.1/8 ist fasch - Mail Log:
Oct 29 13:15:39 bbb postfix/smtpd[7166]: fatal: non-null host address bits in "127.0.0.1/8", perhaps you should use "127.0.0.0/8" instead
Das erzeugte nämlich die Ausgabe aus meinem vorigen Thread - mit 127.0.0.0/8 klappt's.

Danke nochmals!