Mailserver bockt - komme trotz div. How-to´s nicht weiter

Postfix, QMail, Sendmail, Dovecot, Cyrus, Courier, Anti-Spam
olafover
Posts: 17
Joined: 2003-06-09 04:52

Mailserver bockt - komme trotz div. How-to´s nicht weiter

Post by olafover » 2004-03-03 14:01

Oh hilfe .. ich wollte eigentlich nicht zu der breiten Masse gehören, die Ihre main.cf und ähnliche Sachen posten...
Nun muss ich aber doch...

Ich habe diverse How-To´s befolgt, hab mich hier schon totgesucht, und hatte keinen Erfolg.
System : Suse 8.1 , Postfix 2.0.XX

Beim versenden von Mails mit Outlook bekomme ich das zurück:

Code: Select all

Ihre Nachricht hat einige oder alle Empfänger nicht erreicht.

      Betreff:	tesmail
      Gesendet am:	03.03.2004 13:42

Folgende Empfänger konnten nicht erreicht werden:

      Olaf am 03.03.2004 13:42
            504 <server>: Helo command rejected: need fully-qualified hostname
Dabei sollte in der späteren Konfiguration das lokale versenden von Mails eines Scriptes noch möglich sein.

Der Auszug aus /var/log/mail

Code: Select all

Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: regexp map /etc/postfix/body_checks, line 28: ignoring unrecognized request
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 29: unknown regexp option "?": skipping this rule
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 30: no closing regexp delimiter "?": ignoring this rule
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 31: no closing regexp delimiter "*": ignoring this rule
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 32: no closing regexp delimiter "?": ignoring this rule
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 33: no closing regexp delimiter "?": ignoring this rule
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 34: no closing regexp delimiter "?": ignoring this rule
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 35: no closing regexp delimiter "?": ignoring this rule
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 36: unknown regexp option "=": skipping this rule
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 37: no closing regexp delimiter "?": ignoring this rule
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: regexp map /etc/postfix/body_checks, line 38: ignoring unrecognized request
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 39: no closing regexp delimiter "+": ignoring this rule
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 40: unknown regexp option "?": skipping this rule
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 41: no closing regexp delimiter "?": ignoring this rule
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: regexp map /etc/postfix/body_checks, line 42: ignoring unrecognized request
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 42: no closing regexp delimiter "?": ignoring this rule
Mar  3 13:42:20 p15120081 postfix/smtpd[3158]: 2EA2A2200B6: client=pD9EB90C5.dip0.t-ipconnect.de[217.235.144.197]
Mar  3 13:42:20 p15120081 postfix/trivial-rewrite[2998]: warning: do not list domain xxxxxx.net in BOTH mydestination and virtual_alias_domains
Mar  3 13:42:20 p15120081 postfix/smtpd[3158]: 2EA2A2200B6: reject: RCPT from pD9EB90C5.dip0.t-ipconnect.de[217.235.144.197]: 504 <server>: Helo command rejected: need fully-qualified hostname; from=<webmaster@xxxxx.net> to=<oover@gmx.net> proto=ESMTP helo=<server>
Mar  3 13:42:24 p15120081 postfix/smtpd[3158]: disconnect from pD9EB90C5.dip0.t-ipconnect.de[217.235.144.197]
main.cf
--------

Code: Select all

command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
myhostname = xxxxxxxxx.pureserver.info
mydomain = xxxxxxxxx.net
myorigin = $mydomain
mynetworks_style = host
relay_domains = $mydestination
#local_recipient_maps = $alias_maps unix:passwd.byname
header_checks = regexp:/etc/postfix/header_checks
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
debug_peer_level = 2
debugger_command =
	 PATH=/usr/bin:/usr/X11R6/bin
	 xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/sbin/sendmail
mailq_path = /usr/bin/mailq
setgid_group = maildrop
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/packages/postfix/samples
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
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
masquerade_domains = 
defer_transports = 
disable_dns_lookups = no
mailbox_command = 
mailbox_transport = 
smtpd_sender_restrictions = hash:/etc/postfix/access
strict_rfc821_envelopes = no
maps_rbl_domains = sbl.spamhaus.org, relays.ordb.org, unconfirmed.dsbl.org
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_non_fqdn_hostname, reject_unknown_recipient_domain, reject_invalid_hostname, reject_unknown_hostname, reject_unknown_sender_domain, reject_rbl_client, permit_mx_backup, reject_unauth_destination
alias_maps = hash:/etc/aliases
unknown_local_recipient_reject_code = 450
header_checks = pcre:/etc/postfix/header_checks
body_checks = pcre:/etc/postfix/body_checks
mime_header_checks = regexp:/etc/postfix/mime_header_checks
smtpd_helo_required = yes
mydestination = $myhostname, localhost.$mydomain, $mydomain
smtpd_sasl_auth_enable = yes
smtpd_sasl_securty_options = nonanonymous
smtpd_sasl_local_domain = xxxxxxxxx.pureserver.info
smtpd_helo_required = yes

Code: Select all

die /var/log/mail
-------------------
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: regexp map /etc/postfix/body_checks, line 28: ignoring unrecognized request
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 29: unknown regexp option "?": skipping this rule
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 30: no closing regexp delimiter "?": ignoring this rule
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 31: no closing regexp delimiter "*": ignoring this rule
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 32: no closing regexp delimiter "?": ignoring this rule
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 33: no closing regexp delimiter "?": ignoring this rule
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 34: no closing regexp delimiter "?": ignoring this rule
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 35: no closing regexp delimiter "?": ignoring this rule
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 36: unknown regexp option "=": skipping this rule
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 37: no closing regexp delimiter "?": ignoring this rule
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: regexp map /etc/postfix/body_checks, line 38: ignoring unrecognized request
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 39: no closing regexp delimiter "+": ignoring this rule
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 40: unknown regexp option "?": skipping this rule
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 41: no closing regexp delimiter "?": ignoring this rule
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: regexp map /etc/postfix/body_checks, line 42: ignoring unrecognized request
Mar  3 13:42:20 p15120081 postfix/cleanup[3159]: warning: pcre map /etc/postfix/body_checks, line 42: no closing regexp delimiter "?": ignoring this rule
Mar  3 13:42:20 p15120081 postfix/smtpd[3158]: 2EA2A2200B6: client=pD9EB90C5.dip0.t-ipconnect.de[217.235.144.197]
Mar  3 13:42:20 p15120081 postfix/trivial-rewrite[2998]: warning: do not list domain xxxxx.net in BOTH mydestination and virtual_alias_domains
Mar  3 13:42:20 p15120081 postfix/smtpd[3158]: 2EA2A2200B6: reject: RCPT from pD9EB90C5.dip0.t-ipconnect.de[217.235.144.197]: 504 <server>: Helo command rejected: need fully-qualified hostname; from=<webmaster@xxxxxxxxx.net> to=<xxxx@gmx.net> proto=ESMTP helo=<server>
Mar  3 13:42:24 p15120081 postfix/smtpd[3158]: disconnect from pD9EB90C5.dip0.t-ipconnect.de[217.235.144.197]



Jetzt schrei auch ich mal um HILFE.

squize
Userprojekt
Userprojekt
Posts: 741
Joined: 2003-05-19 16:46
Location: Karlsruhe

Re: Mailserver bockt - komme trotz div. How-to´s nicht weiter

Post by squize » 2004-03-03 14:33

Als erstes solltest du mal deine body_checks entweder korrigieren oder ausschalten, dann wird dein Client abgewiesen, weil er das ehlo command ohne server namen benutzt.

Da kannst du smtpd_helo_required = no setzen, dann sollte es gehen. Aufpassen, du hast dies Variable gleich zweimal definiert.

Dann solltest du schauen, dass eine domain nicht gleichzeitig in mydomain/my_destination und den virtual maps erscheint.

Weisst du wozu alle deine Einstellungen dienen?

Bevor ich anfange mit body, header und weiteren checks rumzuspielen würde ich versuchen ein lauffähiges System aufzubauen und dann erst langsam die Komplexität zu steigern. Dann weisst du was schief gegangen ist, wenn es nicht mehr geht.

Gruss

Marc