PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Mail-Weiterleitung an den entsprechenden User



Bruce
03.10.04, 17:58
Hi!

Ich habe Postfix und Cyrus nach diesem Tutorial konfiguriert [http://www.linux-tin.org/modules.php?op=modload&name=PagEd&file=index&page_id=9].
eMails versenden kann ich inzwischen, nur empfangen nicht. Wenn ich mir von web.de 'ne eMailschicke, dann bekomme ich sie kurz darauf zurück:
The original message was received at Sun, 3 Oct 2004 18:24:42 +0200
from fmomail01.dlan.cinetic.de [172.20.1.45]

----- The following addresses had permanent fatal errors -----
adresse@domain.de
(reason: 554 <adresse@domain.de>: Relay access denied)

----- Transcript of session follows -----
... while talking to mail.sewid.de.:
>>> DATA
<<< 554 <adresse@domain.de>: Relay access denied
554 5.0.0 Service unavailable
<<< 554 Error: no valid recipients


Return-Path: <superman@web.de>
Received: by fmmailgate04.web.de (8.12.10/8.12.10/webde Linux 0.7) with SMTP id i93GNWOF003400
for adresse@domain.de; Sun, 3 Oct 2004 18:24:42 +0200
Received: from 80.139.36.208 by freemailng0203.web.de with HTTP;
Sun, 03 Oct 2004 18:24:42 +0200
Date: Sun, 03 Oct 2004 18:24:42 +0200
Message-Id: <1613218515@web.de>
MIME-Version: 1.0
From: "Super Man" <superman@web.de>
To: adresse@domain.de
Subject: test
Precedence: fm-user
Organization: http://freemail.web.de/
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

(adressen... geändert).

Könnt ihr mir sagen, woran das grundlegend liegen könnte, damit ich die entsprechenden Configs hier posten kann?

Gruß
Bruce

shb
03.10.04, 19:23
Relay access denied
dies ist dein problem der relay ist verboten, hat die bewandnis, dass sich jeder nen mailserver aufsetzen kann und dann wie ein verückter spam versenden kann ich glaub du musst dich mittels smtp auth vorher anmelden. such mal danach finst schon was

cu SHB

Bruce
03.10.04, 19:47
moment....
ich habe mir von meinem web.de account eine email an einen account auf meinem eigenen mailserver geschickt. wo muss ich mich jetzt authen? nochmal ein bisschen genauer (bitte).

danke!
bruce

shb
03.10.04, 19:52
oh ich war jetzt das du mit deinem mail server an web.de geschickt hast, sorry dann war ich falsch ;(
aber mich deucht das ist das selbe problem, das du bei deinem server den mail relay deaktiviert hast, aktiviere ihn mal

cu SHB

Terran Marine
03.10.04, 19:54
moment....
ich habe mir von meinem web.de account eine email an einen account auf meinem eigenen mailserver geschickt. wo muss ich mich jetzt authen? nochmal ein bisschen genauer (bitte).

danke!
bruce

Wie immer, main.cf posten, ansonsten ist helfen schwierig.

Gruß
Terran

Bruce
03.10.04, 21:36
hier meine main.cf


# The queue_directory specifies the location of the Postfix queue.
queue_directory = /var/spool/postfix

# The command_directory parameter specifies the location of all
# postXXX commands.
command_directory = /usr/sbin

# The daemon_directory parameter specifies the location of all Postfix
# daemon programs
daemon_directory = /usr/libexec/postfix

# The mail_owner parameter specifies the owner of the Postfix queue
# and of most Postfix daemon processes. Specify the name of a user
# account THAT DOES NOT SHARE ITS USER OR GROUP ID WITH OTHER ACCOUNTS
# AND THAT OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM.
mail_owner = postfix

# The myhostname parameter specifies the internet hostname of this
# mail system.
myhostname = mail.DOMAIN.de

# The mydomain parameter specifies the local internet domain name.
mydomain = DOMAIN.de

# The myorigin parameter specifies the domain that locally-posted
# mail appears to come from.
myorigin = $mydomain

# The inet_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on.
inet_interfaces = $myhostname

# inet_interfaces = all # Wenn der Mailserver für mehrere Domains zuständig sein soll
# The mydestination parameter specifies the list of domains that this
# machine considers itself the final destination for.
mydestination = $myhostname, localhost.$mydomain, $mydomain

# The mynetworks parameter specifies the list of "trusted" SMTP
# clients that have more privileges than "strangers".
#
# In particular, "trusted" SMTP clients are allowed to relay mail
# through Postfix.
# Hier kann man dann auch um das interne Netzwerk erweitern.
# So wie es hier ist braucht jeder Client ein Passwort. Ist aber gut zum Testen.
# Du kannst auch noch etwas wie 192.168.40.0/24 einfügen. Dann dürfen alle Rechner aus
# diesem Netzwerk auch Mails ohne Passwort versenden.
mynetworks = 127.0.0.0/8

# The relay_domains parameter restricts what clients this mail system
# will relay mail from, or what destinations this system will relay
# mail to.
relay_domains = $mydomain

# Erlaube sasl-authentifizierte Clients, die aus mynetworks und die aus relay_domains
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, check_relay_domains

# The alias_maps parameter specifies the list of alias databases used
# by the local delivery agent.
alias_maps = hash:/etc/postfix/aliases

#debug_peer_level = 2
#debugger_command =
# PATH=/usr/bin:/usr/X11R6/bin
# xxgdb $daemon_directory/$process_name $process_id&sleep 5
# sendmail_path: The full pathname of the Postfix sendmail command.
sendmail_path = /usr/sbin/sendmail

# newaliases_path: The full pathname of the Postfix newaliases command.
newaliases_path = /usr/bin/newaliases

# mailq_path: The full pathname of the Postfix mailq command. This
# is the Sendmail-compatible mail queue listing command.
mailq_path = /usr/bin/mailq

# setgid_group: The group for mail submission and queue management
# commands.
setgid_group = postdrop

# manpage_directory: The location of the Postfix on-line manual pages.
manpage_directory = /usr/share/man

# sample_directory: The location of the Postfix sample configuration files.
sample_directory = /etc/postfix/samples

# readme_directory: The location of the Postfix README files.
readme_directory = /etc/postfix/readme

best_mx_transport = local

# SASL SUPPORT FOR CLIENT
#
# The following options set parameters needed by Postfix to enable
# Cyrus-SASL support for authentication of mailclients.
#
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
mailbox_transport = cyrus
fallback_transport = cyrus



und meine smtpd.conf


pwcheck_method: saslauthd
mech_list: plain login CRAM-MD5 DIGEST-MD5
log_level 3


es klappt weder die weiterleitung an cyrus noch die smtp-authentifizierung

Bruce
03.10.04, 21:48
hier ist ein auszug aus dem mail-log:



Oct 3 22:44:53 linux postfix/smtpd[19306]: match_string: relay_domains ~? relay_domains
Oct 3 22:44:53 linux postfix/smtpd[19306]: match_string: permit_mx_backup_networks ~? debug_peer_list
Oct 3 22:44:53 linux postfix/smtpd[19306]: match_string: permit_mx_backup_networks ~? fast_flush_domains
Oct 3 22:44:53 linux postfix/smtpd[19306]: match_string: permit_mx_backup_networks ~? mynetworks
Oct 3 22:44:53 linux postfix/smtpd[19306]: match_string: permit_mx_backup_networks ~? permit_mx_backup_networks
Oct 3 22:44:53 linux postfix/smtpd[19306]: dict_open: unix:passwd.byname
Oct 3 22:44:53 linux postfix/smtpd[19306]: dict_open: hash:/etc/aliases
Oct 3 22:44:53 linux postfix/smtpd[19306]: match_string: smtpd_access_maps ~? debug_peer_list
Oct 3 22:44:53 linux postfix/smtpd[19306]: match_string: smtpd_access_maps ~? fast_flush_domains
Oct 3 22:44:53 linux postfix/smtpd[19306]: match_string: smtpd_access_maps ~? mynetworks
Oct 3 22:44:53 linux postfix/smtpd[19306]: match_string: smtpd_access_maps ~? permit_mx_backup_networks
Oct 3 22:44:53 linux postfix/smtpd[19306]: match_string: smtpd_access_maps ~? qmqpd_authorized_clients
Oct 3 22:44:53 linux postfix/smtpd[19306]: match_string: smtpd_access_maps ~? relay_domains
Oct 3 22:44:53 linux postfix/smtpd[19306]: match_string: smtpd_access_maps ~? smtpd_access_maps
Oct 3 22:44:53 linux postfix/smtpd[19306]: smtpd_sasl_initialize: SASL config file is smtpd.conf
Oct 3 22:44:53 linux postfix/smtpd[19306]: fatal: SASL per-process initialization failed
Oct 3 22:44:54 linux postfix/master[19192]: warning: process /usr/lib/postfix/smtpd pid 19306 exit status 1
Oct 3 22:44:54 linux postfix/master[19192]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Oct 3 22:45:54 linux postfix/smtpd[19330]: match_string: mynetworks ~? debug_peer_list
Oct 3 22:45:54 linux postfix/smtpd[19330]: match_string: mynetworks ~? fast_flush_domains
Oct 3 22:45:54 linux postfix/smtpd[19330]: match_string: mynetworks ~? mynetworks
Oct 3 22:45:54 linux postfix/smtpd[19330]: match_string: relay_domains ~? debug_peer_list
Oct 3 22:45:54 linux postfix/smtpd[19330]: match_string: relay_domains ~? fast_flush_domains
Oct 3 22:45:54 linux postfix/smtpd[19330]: match_string: relay_domains ~? mynetworks
Oct 3 22:45:54 linux postfix/smtpd[19330]: match_string: relay_domains ~? permit_mx_backup_networks
Oct 3 22:45:54 linux postfix/smtpd[19330]: match_string: relay_domains ~? qmqpd_authorized_clients
Oct 3 22:45:54 linux postfix/smtpd[19330]: match_string: relay_domains ~? relay_domains
Oct 3 22:45:54 linux postfix/smtpd[19330]: match_string: permit_mx_backup_networks ~? debug_peer_list
Oct 3 22:45:54 linux postfix/smtpd[19330]: match_string: permit_mx_backup_networks ~? fast_flush_domains
Oct 3 22:45:54 linux postfix/smtpd[19330]: match_string: permit_mx_backup_networks ~? mynetworks
Oct 3 22:45:54 linux postfix/smtpd[19330]: match_string: permit_mx_backup_networks ~? permit_mx_backup_networks
Oct 3 22:45:54 linux postfix/smtpd[19330]: dict_open: unix:passwd.byname
Oct 3 22:45:54 linux postfix/smtpd[19330]: dict_open: hash:/etc/aliases
Oct 3 22:45:54 linux postfix/smtpd[19330]: match_string: smtpd_access_maps ~? debug_peer_list
Oct 3 22:45:54 linux postfix/smtpd[19330]: match_string: smtpd_access_maps ~? fast_flush_domains
Oct 3 22:45:54 linux postfix/smtpd[19330]: match_string: smtpd_access_maps ~? mynetworks
Oct 3 22:45:54 linux postfix/smtpd[19330]: match_string: smtpd_access_maps ~? permit_mx_backup_networks
Oct 3 22:45:54 linux postfix/smtpd[19330]: match_string: smtpd_access_maps ~? qmqpd_authorized_clients
Oct 3 22:45:54 linux postfix/smtpd[19330]: match_string: smtpd_access_maps ~? relay_domains
Oct 3 22:45:54 linux postfix/smtpd[19330]: match_string: smtpd_access_maps ~? smtpd_access_maps
Oct 3 22:45:54 linux postfix/smtpd[19330]: smtpd_sasl_initialize: SASL config file is smtpd.conf
Oct 3 22:45:54 linux postfix/smtpd[19330]: fatal: SASL per-process initialization failed
Oct 3 22:45:55 linux postfix/master[19192]: warning: process /usr/lib/postfix/smtpd pid 19330 exit status 1
Oct 3 22:45:55 linux postfix/master[19192]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Oct 3 22:46:55 linux postfix/smtpd[19331]: match_string: mynetworks ~? debug_peer_list
Oct 3 22:46:55 linux postfix/smtpd[19331]: match_string: mynetworks ~? fast_flush_domains
Oct 3 22:46:55 linux postfix/smtpd[19331]: match_string: mynetworks ~? mynetworks
Oct 3 22:46:55 linux postfix/smtpd[19331]: match_string: relay_domains ~? debug_peer_list
Oct 3 22:46:55 linux postfix/smtpd[19331]: match_string: relay_domains ~? fast_flush_domains
Oct 3 22:46:55 linux postfix/smtpd[19331]: match_string: relay_domains ~? mynetworks
Oct 3 22:46:55 linux postfix/smtpd[19331]: match_string: relay_domains ~? permit_mx_backup_networks
Oct 3 22:46:55 linux postfix/smtpd[19331]: match_string: relay_domains ~? qmqpd_authorized_clients
Oct 3 22:46:55 linux postfix/smtpd[19331]: match_string: relay_domains ~? relay_domains
Oct 3 22:46:55 linux postfix/smtpd[19331]: match_string: permit_mx_backup_networks ~? debug_peer_list
Oct 3 22:46:55 linux postfix/smtpd[19331]: match_string: permit_mx_backup_networks ~? fast_flush_domains
Oct 3 22:46:55 linux postfix/smtpd[19331]: match_string: permit_mx_backup_networks ~? mynetworks
Oct 3 22:46:55 linux postfix/smtpd[19331]: match_string: permit_mx_backup_networks ~? permit_mx_backup_networks
Oct 3 22:46:55 linux postfix/smtpd[19331]: dict_open: unix:passwd.byname
Oct 3 22:46:55 linux postfix/smtpd[19331]: dict_open: hash:/etc/aliases
Oct 3 22:46:55 linux postfix/smtpd[19331]: match_string: smtpd_access_maps ~? debug_peer_list
Oct 3 22:46:55 linux postfix/smtpd[19331]: match_string: smtpd_access_maps ~? fast_flush_domains
Oct 3 22:46:55 linux postfix/smtpd[19331]: match_string: smtpd_access_maps ~? mynetworks
Oct 3 22:46:55 linux postfix/smtpd[19331]: match_string: smtpd_access_maps ~? permit_mx_backup_networks
Oct 3 22:46:55 linux postfix/smtpd[19331]: match_string: smtpd_access_maps ~? qmqpd_authorized_clients
Oct 3 22:46:55 linux postfix/smtpd[19331]: match_string: smtpd_access_maps ~? relay_domains
Oct 3 22:46:55 linux postfix/smtpd[19331]: match_string: smtpd_access_maps ~? smtpd_access_maps
Oct 3 22:46:55 linux postfix/smtpd[19331]: smtpd_sasl_initialize: SASL config file is smtpd.conf

Terran Marine
04.10.04, 07:27
.
mydomain = DOMAIN.de
mydestination = $myhostname, localhost.$mydomain, $mydomain
relay_domains = $mydomain


Was mir aufgefallen ist,

Domains in mydestination werden lokal zugestellt (über den local-Transport), Domains in relay_domains werden wiederum über den relay Transport an andere Rechner zugestellt.
Du hast für domain.de beide Werte gesetzt.

Was willst du denn genau ?