PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Sendmail stellt mail's nur local zu



planetmax
28.07.04, 10:59
Ich habe das Problem das Sendmail nur Mail's local zustellt ?
Braucht ihr welche log dateien oder configs ?

LKH
28.07.04, 11:36
Hi,


Braucht ihr welche log dateien oder configs ?

Nö, nicht nötig. Wir haben alle Glaskugeln. Nur ist meine leider z.Z. zur Inspektion ... :D


LKH

planetmax
28.07.04, 11:46
Hier ist die Config:

LKH
28.07.04, 12:15
Hi,

bleiben immer noch ein paar Fragen:

- sollen die Mails direkt oder eine Provider zugestellt werden?
- was sagt Sendmail denn, wenn Mails nach außen gehen?

LKH

planetmax
28.07.04, 12:23
Hi,

Die sollen direkt zugestellt werden, wo seh ich die meldung wenn eine email versendet wird ?

LKH
28.07.04, 13:40
Hi,

/var/log/mail

LKH

planetmax
28.07.04, 14:53
Da hab ich das:



Jul 27 13:07:24 confixx3 sendmail-client[477]: starting daemon (8.12.10): persistent-queueing@00:30:00
Jul 27 13:07:24 confixx3 sendmail[484]: starting daemon (8.12.10): SMTP+queueing@00:30:00
Jul 27 13:09:02 confixx3 sendmail[794]: i6RB92Ts000794: from=root, size=306, class=0, nrcpts=1, msgid=<200407271109.i6RB92Ts000794@confixx3>, relay=root@localhost
Jul 27 13:09:02 confixx3 sendmail[795]: i6RB927F000795: ruleset=check_mail, arg1=<root@confixx3>, relay=localhost [127.0.0.1], reject=451 4.1.8 Domain of sender address root@confixx3 does not resolve
Jul 27 13:09:02 confixx3 sendmail[794]: i6RB92Ts000794: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30306, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.1.8 Domain of sender address root@confixx3 does not resolve
Jul 27 13:09:02 confixx3 sendmail[795]: i6RB927F000795: from=<root@confixx3>, size=306, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jul 27 13:09:04 confixx3 sendmail[796]: i6RB947F000796: from=<root@confixx3.fastIT.net>, size=566, class=0, nrcpts=1, msgid=<200407271109.i6RB92Ts000794@confixx3>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jul 27 13:09:04 confixx3 sendmail[796]: i6RB947F000796: to=<root@confixx3.fastIT.net>, delay=00:00:00, mailer=local, pri=30566, dsn=4.4.3, stat=queued

LKH
28.07.04, 16:01
Hi,

dein Sendmail macht eine DNS-Anfrage und findet die Domain "confixx3" nicht. Wenn du keinen eigenen Nameserver lokal betreibst kannst du Sendmail das abgewöhnen. Schreib einfach

FEATURE(nodns)dnl
FEATURE(nocanonify)dnl

in deine sendmail.mc und dann mit m4 eine neue sendmail.cf generieren lassen.

Nützlicher Link: http://www.pl-berichte.de/work/server/mailserver.html

Wenn du es dann schaffst Mails rauszubekommen solltest du als nächstes eine Domainmaskierung in Angriff nehmen (dadurch wird aus confixx3 deine "echte" Domain). Dann kann man dir auch antworten und die Empfänger erhalten auch die Mails (falls deren Provider die nicht ablehnt im Falle einer dynamischen IP bei dir).

Hoffe es hilft,

LKH

planetmax
28.07.04, 16:07
die sendmail.mc müsste in /etc/mail sein, aber da is nix

LKH
28.07.04, 16:17
Hi,

da ich Debian nicht so gut kenne kann ich dir leider nicht sagen wo die *.mc gespeichert ist (bei Slakware z.B. unter /usr/share/sendmail). Notfalls erstelle einfach eine neue, was da alles rein muss findet sich ja zu Hauf im Internet).

LKH

planetmax
28.07.04, 16:29
ne das ist auf dem suse rechner

buchwaldj
28.07.04, 16:59
Ich habe das gleiche Problem jedoch mit postfix

LKH
28.07.04, 17:01
aso ... ;)

Schau mal unter /etc/sysconfig. Da müsste es eine Datei sendmail geben. Such darin mal nach "SENDMAIL_EXPENSIVE" und "SENDMAIL_NOCANONIFY". Setze beide auf "yes". Und wenn du schon dabei bist suche auch gleich nach dem Eintrag "MASQUERADE_DOMAINS" und trage da deine Domain ein.

Danach dann SuSEconfig starten und drauf achten, dass auch eine neue sendmail.cf geschrieben wird. Ansonsten das Produkt von SuSEconfig nach sendmail.cf verschieben. Sendmail neu starten und testen.

Viel Erfolg,

LKH

LKH
28.07.04, 17:03
Hi,


Ich habe das gleiche Problem jedoch mit postfix

Welches Problem? DNS, Domainmaskerade, ... ??

LKH

planetmax
28.07.04, 18:43
aso ... ;)

Schau mal unter /etc/sysconfig. Da müsste es eine Datei sendmail geben. Such darin mal nach "SENDMAIL_EXPENSIVE" und "SENDMAIL_NOCANONIFY". Setze beide auf "yes". Und wenn du schon dabei bist suche auch gleich nach dem Eintrag "MASQUERADE_DOMAINS" und trage da deine Domain ein.

Danach dann SuSEconfig starten und drauf achten, dass auch eine neue sendmail.cf geschrieben wird. Ansonsten das Produkt von SuSEconfig nach sendmail.cf verschieben. Sendmail neu starten und testen.

Viel Erfolg,

LKH

Hab das gemacht funzt aber leider noch immer nicht :(

LKH
29.07.04, 10:43
Hi,

was steht denn jetzt im Log? Laß dir doch bitte nicht alle Infos so aus der Nase ziehen ...

LKH

planetmax
29.07.04, 12:40
Hi,



Jul 27 13:07:24 confixx3 sendmail-client[477]: starting daemon (8.12.10): persistent-queueing@00:30:00
Jul 27 13:07:24 confixx3 sendmail[484]: starting daemon (8.12.10): SMTP+queueing@00:30:00
Jul 27 13:09:02 confixx3 sendmail[794]: i6RB92Ts000794: from=root, size=306, class=0, nrcpts=1, msgid=<200407271109.i6RB92Ts000794@confixx3>, relay=root@localhost
Jul 27 13:09:02 confixx3 sendmail[795]: i6RB927F000795: ruleset=check_mail, arg1=<root@confixx3>, relay=localhost [127.0.0.1], reject=451 4.1.8 Domain of sender address root@confixx3 does not resolve
Jul 27 13:09:02 confixx3 sendmail[794]: i6RB92Ts000794: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30306, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: 451 4.1.8 Domain of sender address root@confixx3 does not resolve
Jul 27 13:09:02 confixx3 sendmail[795]: i6RB927F000795: from=<root@confixx3>, size=306, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jul 27 13:09:04 confixx3 sendmail[796]: i6RB947F000796: from=<root@confixx3.fastIT.net>, size=566, class=0, nrcpts=1, msgid=<200407271109.i6RB92Ts000794@confixx3>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jul 27 13:09:04 confixx3 sendmail[796]: i6RB947F000796: to=<root@confixx3.fastIT.net>, delay=00:00:00, mailer=local, pri=30566, dsn=4.4.3, stat=queued

LKH
29.07.04, 13:16
Hi,

ist ja zäher als ich dachte. :D

Schau mal in deiner sendmail.cf ob da eine ServiceSwitchFile und ein HostsFile Eintrag drin ist. Wenn ja, dann schau mal in deiner /etc/hosts, ob da dieser ominöse "confixx3" drin ist.

Wieso sendest du lokal eigentlich nicht mit localhost?

LKH

planetmax
29.07.04, 14:45
Also Hostfile und ServiceSwitchFile stehen drinnen, aber in etc/hosts steht nix von confixx3.

Ich will ja net nur local senden

LKH
29.07.04, 16:12
... und, die IP und den Namen mal eingetragen in die /etc/hosts?

Welches ServiceSwitchFile ist eingetragen und was steht da drin?

LKH

planetmax
29.07.04, 16:43
# service switch file (name hardwired on Solaris, Ultrix, OSF/1, others)
O ServiceSwitchFile=/etc/mail/service.switch

In etc/hosts steht:


#
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server.
# Syntax:
#
# IP-Address Full-Qualified-Hostname Short-Hostname
#

127.0.0.1 localhost

# special IPv6 addresses
::1 localhost ipv6-localhost ipv6-loopback

fe00::0 ipv6-localnet

ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts


In etc/mail/service.switch:



# this file: There is NO colon after the service.
#
# This file is used by sendmail to resolve the Fully Qualified
# Domain Names (FQDN) of hosts.
#
# All lines with `#' at the begining are comments. For Domain Name
# Service (DNS) the keyword `dns' is used. For NIS add the keyword
# `nis'. The search order is the same order as written herein. For
# NISPLUS add the keyword `nisplus'. Some NIS server do not provide
# all mappings. Check out the available maps by calling `ypcat -x'.
#

#passwd files
hosts files dns
aliases files

#passwd files nis
#hosts files nis dns
#aliases files nis

#passwd files nisplus nis
#hosts files nisplus nis dns
#aliases files nisplus nis

planetmax
30.07.04, 22:10
weiss keiner weiter ?

LKH
31.07.04, 13:53
... hast du jetzt den confixx3 mal in die /etc/hosts eingetragen?

LKH

planetmax
31.07.04, 14:28
Wie muss ich den genau eintragen ?
Sorry das ich so blöd frage, mit den Kapitel mailserver fange ich gerade erst an *g*

LKH
31.07.04, 16:41
Hi,

unter "127.0.0.1 localhost":


192.168.x.x confixx3

192.168.x.x natürlich durch die richtige IP ersetzen.

LKH

planetmax
02.08.04, 14:34
Hi,


Ich habe bei dem Anbieter meines Rootserver's einen Nameserver den ich nutzen kann, wie sieht es jetzt aus mit meinem Mailserver ?