PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Problem:>SENDMAIL< Irgendwie komme ich mit der einstellung nicht klar



F.S.WhiTeY
06.02.08, 17:11
Hallo leute,
ich möchte bei mir Sendmail einrichten, mache aber irgendwo noch einen Fehler.

Ziel ist es, das alle bei mir gehosteten seiten die mit Webspell oder PHPKit erstelt wurden ihr Kontaktformular über Sendmail benutzen können.Ich habe mich via Google schon mal schlau gemacht, hab aber irgendwo noch nen Honker drin und bekomem ihn nicht raus.

Wäre nett wenn ihr euch das mal ansehen könntet .

Sendmail Version 8.13.8, Konfiguration V10/Berkeley



Locale Domains:

localhost
Eine-domain-für-ein-phpkit.de
eine-domain-für-eine-webspell-seite.de




Vertraute Benutzer:
root
daemon
uucp




Ausgehende Domains:
Eine-domain-für-ein-phpkit.de
eine-domain-für-eine-webspell-seite.de




#cat /etc/mail/access
# With this file you can control the access
# to your mailserver, example:
#
# cyberspammer.com 550 We don't accept mail from spammers
# okay.cyberspammer.com OK
# sendmail.org OK
# 128.32 RELAY
#
# Take a look at /usr/share/sendmail/README for a full description
localhost RELAY
127 RELAY

Eine-domain-für-ein-phpkit.de RELAY
eine-domain-für-eine-webspell-seite.de RELAY




#cat /etc/mail/sendmail.mc

divert(-1)dnl
#-----------------------------------------------------------------------------
# $Sendmail: debproto.mc,v 8.13.8 2006-12-08 20:21:10 cowboy Exp $
#
# Copyright (c) 1998-2005 Richard Nelson. All Rights Reserved.
#
# cf/debian/sendmail.mc. Generated from sendmail.mc.in by configure.
#
# sendmail.mc prototype config file for building Sendmail 8.13.8
#
# Note: the .in file supports 8.7.6 - 9.0.0, but the generated
# file is customized to the version noted above.
#
# This file is used to configure Sendmail for use with Debian systems.
#
# If you modify this file, you will have to regenerate /etc/mail/sendmail.cf
# by running this file through the m4 preprocessor via one of the following:
# * `sendmailconfig`
# * `make`
# * `m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf`
# The first two options are preferred as they will also update other files
# that depend upon the contents of this file.
#
# The best documentation for this .mc file is:
# /usr/share/doc/sendmail-doc/cf.README.gz
#
#-----------------------------------------------------------------------------
divert(0)dnl
#
# Copyright (c) 1998-2005 Richard Nelson. All Rights Reserved.
#
# This file is used to configure Sendmail for use with Debian systems.
#
define(`_USE_ETC_MAIL_')dnl
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
VERSIONID(`$Id: sendmail.mc, v 8.13.8-3 2006-12-08 20:21:10 cowboy Exp $')
OSTYPE(`debian')dnl
DOMAIN(`debian-mta')dnl
dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
undefine(`confHOST_STATUS_DIRECTORY')dnl #DAEMON_HOSTSTATS=
dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
dnl #
dnl # General defines
dnl #
dnl # SAFE_FILE_ENV: [undefined] If set, sendmail will do a chroot()
dnl # into this directory before writing files.
dnl # If *all* your user accounts are under /home then use that
dnl # instead - it will prevent any writes outside of /home !
dnl # define(`confSAFE_FILE_ENV', `')dnl
dnl #
dnl # Daemon options - restrict to servicing LOCALHOST ONLY !!!
dnl # Remove `, Addr=' clauses to receive from any interface
dnl # If you want to support IPv6, switch the commented/uncommentd lines
FEATURE(`no_default_msa')dnl
dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl
DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl
dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, Addr=::1')dnl
DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, Addr=127.0.0.1')dnl
dnl #
dnl # Be somewhat anal in what we allow
define(`confPRIVACY_FLAGS',dnl
`needmailhelo,needexpnhelo,needvrfyhelo,restrictqr un,restrictexpand,nobodyreturn,authwarnings')dnl
dnl #
dnl # Define connection throttling and window length
define(`confCONNECTION_RATE_THROTTLE', `15')dnl
define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl
dnl #
dnl # Features
dnl #
dnl # The access db is the basis for most of sendmail's checking
FEATURE(`access_db', , `skip')dnl
dnl #
dnl # The greet_pause feature stops some automail bots - but check the
dnl # provided access db for details on excluding localhosts...
FEATURE(`greet_pause', `1000')dnl 1 seconds
dnl #
dnl # Delay_checks allows sender<->recipient checking
FEATURE(`delay_checks', `friend', `n')dnl
dnl #
dnl # If we get too many bad recipients, slow things down...
define(`confBAD_RCPT_THROTTLE',`3')dnl
dnl #
dnl # Stop connections that overflow our concurrent and time connection rates
FEATURE(`conncontrol', `nodelay', `terminate')dnl
FEATURE(`ratecontrol', `nodelay', `terminate')dnl
dnl #
dnl # If you're on a dialup link, you should enable this - so sendmail
dnl # will not bring up the link (it will queue mail for later)
dnl define(`confCON_EXPENSIVE',`True')dnl
dnl #
dnl # Dialup/LAN connection overrides
dnl #
include(`/etc/mail/m4/dialup.m4')dnl
include(`/etc/mail/m4/provider.m4')dnl
dnl #
dnl # Default Mailer setup
MAILER_DEFINITIONS
MAILER(`local')dnl
MAILER(`smtp')dnl

dnl # Masquerading options
FEATURE(`always_add_domain')dnl
MASQUERADE_AS(`hwn53660')dnl
FEATURE(`allmasquerade')dnl
FEATURE(`masquerade_envelope')dnl





Wenn ihr noch irgdendetwas braucht , sagt es mir.

MfG und schon mal Danke

WhiTeY

Flex6
06.02.08, 22:14
Relay eintragen, dann leidet er alles weiter
relay_based_on_MX in die mc

F.S.WhiTeY
07.02.08, 16:35
Hab ich ds nun richtig verstanden :

in der access lediglich


...
RELAY


und in der mc :



......
FEATURE(`allmasquerade')dnl
FEATURE(`masquerade_envelope')dnl
relay_based_on_MX



???

Flex6
08.02.08, 08:26
127.0.0.1 RELAY

dann leidet er alles was lokal ist, lokal=localhost oder intern

die access_db muß dann auch mit makemap neu erstellt werden..

der Rest ist Feature und mc mit m4 /zu/Verz./Datei-mc > /zu/Verz./Datei-cf neu erstellen

Hast du für die Doamin ein dns-Eintrag

F.S.WhiTeY
09.02.08, 20:15
Danke für die hilfe, bin aber noch nich ganz durch ;)
__________________________________________________ _______
Funkioniert:


#makemap hash /etc/mail/access.db < /etc/mail/access


Funkioniert nicht:


#m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`always_add_domain')
*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`allmasquerade')
*** ERROR: FEATURE() should be before MAILER()
*** ERROR: FEATURE() should be before MAILER()

__________________________________________________ ________




Andere divert(-1)dnl
Andere #-----------------------------------------------------------------------------
Andere # $Sendmail: debproto.mc,v 8.13.8 2006-12-08 20:21:10 cowboy Exp $
Andere #
Andere # Copyright (c) 1998-2005 Richard Nelson. All Rights Reserved.
Andere #
Andere # cf/debian/sendmail.mc. Generated from sendmail.mc.in by configure.
Andere #
Andere # sendmail.mc prototype config file for building Sendmail 8.13.8
Andere #
Andere # Note: the .in file supports 8.7.6 - 9.0.0, but the generated
Andere # file is customized to the version noted above.
Andere #
Andere # This file is used to configure Sendmail for use with Debian systems.
Andere #
Andere # If you modify this file, you will have to regenerate /etc/mail/sendmail.cf
Andere # by running this file through the m4 preprocessor via one of the following:
Andere # * `sendmailconfig`
Andere # * `make`
Andere # * `m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf`
Andere # The first two options are preferred as they will also update other files
Andere # that depend upon the contents of this file.
Andere #
Andere # The best documentation for this .mc file is:
Andere # /usr/share/doc/sendmail-doc/cf.README.gz
Andere #
Andere #-----------------------------------------------------------------------------
Andere divert(0)dnl
Andere #
Andere # Copyright (c) 1998-2005 Richard Nelson. All Rights Reserved.
Andere #
Andere # This file is used to configure Sendmail for use with Debian systems.
Andere #
Definiert define(`_USE_ETC_MAIL_')dnl
Andere include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
Andere VERSIONID(`$Id: sendmail.mc, v 8.13.8-3 2006-12-08 20:21:10 cowboy Exp $')
OS Typ OSTYPE(`debian')dnl
Andere DOMAIN(`debian-mta')dnl
Andere dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
Undefiniert undefine(`confHOST_STATUS_DIRECTORY')dnl #DAEMON_HOSTSTATS=
Andere dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
Andere dnl #
Andere dnl # General defines
Andere dnl #
Andere dnl # SAFE_FILE_ENV: [undefined] If set, sendmail will do a chroot()
Andere dnl # into this directory before writing files.
Andere dnl # If *all* your user accounts are under /home then use that
Andere dnl # instead - it will prevent any writes outside of /home !
Andere dnl # define(`confSAFE_FILE_ENV', `')dnl
Andere dnl #
Andere dnl # Daemon options - restrict to servicing LOCALHOST ONLY !!!
Andere dnl # Remove `, Addr=' clauses to receive from any interface
Andere dnl # If you want to support IPv6, switch the commented/uncommentd lines
Feature FEATURE(`no_default_msa')dnl
Andere dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl
Andere DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl
Andere dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, Addr=::1')dnl
Andere DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, Addr=127.0.0.1')dnl
Andere dnl #
Andere dnl # Be somewhat anal in what we allow
Andere define(`confPRIVACY_FLAGS',dnl
Andere `needmailhelo,needexpnhelo,needvrfyhelo,restrictqr un,restrictexpand,nobodyreturn,authwarnings')dnl
Andere dnl #
Andere dnl # Define connection throttling and window length
Definiert define(`confCONNECTION_RATE_THROTTLE', `15')dnl
Definiert define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl
Andere dnl #
Andere dnl # Features
Andere dnl #
Andere dnl # The access db is the basis for most of sendmail's checking
Feature FEATURE(`access_db', , `skip')dnl
Andere dnl #
Andere dnl # The greet_pause feature stops some automail bots - but check the
Andere dnl # provided access db for details on excluding localhosts...
Feature FEATURE(`greet_pause', `1000')dnl 1 seconds
Andere dnl #
Andere dnl # Delay_checks allows sender<->recipient checking
Feature FEATURE(`delay_checks', `friend', `n')dnl
Andere dnl #
Andere dnl # If we get too many bad recipients, slow things down...
Definiert define(`confBAD_RCPT_THROTTLE',`3')dnl
Andere dnl #
Andere dnl # Stop connections that overflow our concurrent and time connection rates
Feature FEATURE(`conncontrol', `nodelay', `terminate')dnl
Feature FEATURE(`ratecontrol', `nodelay', `terminate')dnl
Andere dnl #
Andere dnl # If you're on a dialup link, you should enable this - so sendmail
Andere dnl # will not bring up the link (it will queue mail for later)
Andere dnl define(`confCON_EXPENSIVE',`True')dnl
Andere dnl #
Andere dnl # Dialup/LAN connection overrides
Andere dnl #
Andere include(`/etc/mail/m4/dialup.m4')dnl
Andere include(`/etc/mail/m4/provider.m4')dnl
Andere dnl #
Andere dnl # Default Mailer setup
Andere MAILER_DEFINITIONS
Mailer MAILER(`local')dnl
Mailer MAILER(`smtp')dnl
Andere

Andere dnl # Masquerading options
Feature FEATURE(`always_add_domain')dnl
Andere MASQUERADE_AS(`hwn53660')dnl
Feature FEATURE(`allmasquerade')dnl
Feature FEATURE(`masquerade_envelope')dnl
Feature FEATURE(`relay_based_on_MX')

403
09.02.08, 20:22
da musst du wohl noch umsortieren wie die Fehlermeldung bereits erkannt hat :P

F.S.WhiTeY
09.02.08, 20:56
ok nun scheint es zu gehen, aber irgendwie will der keine emails an meine adresse raus jagen -.-


The original message was received at Sat, 9 Feb 2008 19:51:35 GMT
from xxx.stratoserver.net [127.0.0.1]

----- The following addresses had permanent fatal errors -----
<info@xxx-xxx.de>
(reason: 504 <www-data@XXX53660>: Sender address rejected: need fully-qualified
address)

----- Transcript of session follows -----
... while talking to mailspool.xxx-xxx.de.:
>>> DATA
<<< 504 <www-data@xxx53660>: Sender address rejected: need fully-qualified address
554 5.0.0 Service unavailable
<<< 554 Error: no valid recipients

wenn ich das richtig sehe will er die nicht raushauen weil www-data@XXX53660 keine "echte" Mailaddy ist.... wo stell ich das denn um ?

Flex6
09.02.08, 23:07
FEATURE(`allmasquerade')dnl

du mußt die doamin in die mc eintragen die umgeschrieben werden sollen


benutz mal die suchfunktion, letztens hatte jemand das gleiche Problem und ist auch Lösung dabei

F.S.WhiTeY
10.02.08, 00:24
alles klar thx

F.S.WhiTeY
10.02.08, 14:35
Hi, also ich habe hier im forum noch mal ein Tutorial zu thema sendmail einrichten gefunden und mich daran langgehangelt. Hab soweit auch alles gemacht. Die domains eingetragen, User eingerichtet usw.
Scheint auch geklappt zu haben aber nun kommt er mir damit, dass er den von mir angelekten user mit der maske nicht autorisieren kann -.-

Die adresse Info@ sollte eigentlich zu mir nach hause weitergeleitet werden.


The original message was received at Sun, 10 Feb 2008 00:05:36 GMT
from www-data@localhost

----- The following addresses had permanent fatal errors -----
info@XXX-XXX.de
(reason: 550 5.1.1 <info@XXX-XXX.de>... User unknown)
(expanded from: info@XXX-XXX.de)

----- Transcript of session follows -----
... while talking to [127.0.0.1]:
>>> DATA
<<< 550 5.1.1 <info@XXX-XXX.de>... User unknown
550 5.1.1 info@XXX-XXX.de... User unknown
<<< 503 5.0.0 Need RCPT (recipient)

Hat dazu noch jemand ne fixe Idee?

thx schon mal

WhiTeY

Flex6
10.02.08, 16:47
hast du info in der aliases

info: root oder user der info bekommt

geh jetzt davon aus das du den server bzw. Adresse benutzt

makemap nicht vergessen

F.S.WhiTeY
10.02.08, 18:12
Ok, habe den fehler gefunden. War meine schuld .. Hab in der aliases nen Doppelpunkt vergessen gehabt nun geht alles.

Thx für eure hilfe

WhiTeY