Page 1 of 1

Relayhost und Konfiguration auf dem entsprechenden Host

Posted: 2004-04-07 18:30
by jlinker
Ich habe 2 Server und möchte alle Mails des Servers1 zu Server2 senden. Auf Server1 hinterlege ich den entsprechenden relayhost Eintrag. Aber ich packe es nicht, dass mein Server2 die Mails auch relayed. Ein Eintrag in relay_hosts hat leider nicht geholfen. Könnt Ihr mir weiterhelfen? :roll:

Anbei Auszug der main.cf auf Server2

Code: Select all

header_checks = regexp:/etc/postfix/header_checks
readme_directory = /usr/share/doc/packages/postfix/README_FILES
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_maps = hash:/etc/postfix/virtual, hash:/etc/postfix/confixx_virtualUsers, hash:/etc/postfix/confixx_localDomains
relay_domains = hash:/etc/postfix/relay_domains, $mydestination
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 = xxx
mydomain = xxx.de
masquerade_domains =
disable_dns_lookups = no
message_size_limit = 40960000
content_filter = smtp-amavis:[127.0.0.1]:10024
mailbox_command =
mailbox_transport =
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unknown_recipient_domain, reject_unknown_sender_domain, reject_unauth_de
alias_maps = hash:/etc/aliases, hash:/etc/aliases.d/mailman
smtpd_sasl_local_domain = server1
smtpd_sasl_auth_enable=yes
smtpd_sasl_security_optons= noanonymous

Re: Relayhost und Konfiguration auf dem entsprechenden Host

Posted: 2004-04-08 18:57
by jlinker
...wo seid Ihr super Admins :cry:

:P :P :P :P :P :P

Re: Relayhost und Konfiguration auf dem entsprechenden Host

Posted: 2004-04-08 21:32
by Joe User
Im Urlaub.

Re: Relayhost und Konfiguration auf dem entsprechenden Host

Posted: 2004-04-08 23:00
by captaincrunch
Schön wär's... ;)

Re: Relayhost und Konfiguration auf dem entsprechenden Host

Posted: 2004-04-08 23:15
by compositiv
Nanu, wo ist das obligatorische RTFM? >:->

Also: $mynetworks könnte helfen.

Allerdings macht im Zeitalter des Spams auch bei Server->Server-Kommunikation SMTP-Auth Sinn.

Alles andere fällt IMHO eher unter "Security by Obscurity", wenn man sich z.b. auf die IP verlaesst, obwohls eher die gehobene Schule sein dürfte eine ganze Mail mit einer gespooften IP einzuschleusen.

Re: Relayhost und Konfiguration auf dem entsprechenden Host

Posted: 2004-04-09 10:39
by jlinker
An SMTP-Auth dachte ich auch schon - habt Ihr nen Hinweis wie ich das im sendenden Postfix hinterlegen kann / muss?
Danke :lol:

Re: Relayhost und Konfiguration auf dem entsprechenden Host

Posted: 2004-04-09 11:34
by Matthias Diehl
Dazu solltest Du so etwas in die main.cf eintragen:

Code: Select all

relayhost = mail.server2.tld
und in die sasl_passwd dann:

Code: Select all

mail.server2.tld             webxpx:passwort
Dann noch

Code: Select all

postmap sasl_passwd
und es sollte gehen.

Re: Relayhost und Konfiguration auf dem entsprechenden Host

Posted: 2004-04-10 13:04
by jlinker
..hab noch ne Frage dazu. Ne sasl_passwd gibts bei mir noch nicht. Reicht es aus die einfach anzulegen oder muss ich die noch irgendwo eintragen bzw. hinterlegen dass es die jetzt gibt.
Danke
Jürgen

Re: Relayhost und Konfiguration auf dem entsprechenden Host

Posted: 2004-04-10 14:06
by jlinker
OK, habs selber rausgefunden :-)

In die main.cf habe ich noch eingetragen:
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous

jetzt gehts - vielen Dank :lol:

Re: Relayhost und Konfiguration auf dem entsprechenden Host

Posted: 2004-04-10 20:44
by Joe User
Compositiv wrote:Nanu, wo ist das obligatorische RTFM? >:->
Irgendetwas müssen unsere User auch mal beisteuern dürfen :roll: