ich habe folgendes Problem auf meinem System Debian 4.0 Etch habe ich sendmail über "apt-get install sendmail" installiert. Soweit so gut!
Allerdings versendet mein System seit neustem keine Emails mehr über die php-funktion mail(); . Obowhl keinerlei Abänderungen an den Konfigurationsdateien gemacht worden sind.
Hier mal einige Auszüge über die Konfigurationsdateien:
/var/log/mail.log (Dies sind die letzte Zeilen aus der Log!)
/etc/mail/sendmail.mcApr 30 15:48:01 ns201285 sendmail[28018]: m3UDm1wG028018: from=root, size=260, class=0, nrcpts=1, msgid=<200804301348.m3UDm1wG028018@ns201285.ovh.net>, relay=root@localhost
Apr 30 15:48:01 ns201285 sm-mta[28072]: m3UDm1Mx028072: from=<root@ns201285.ovh.net>, size=528, class=0, nrcpts=1, msgid=<200804301348.m3UDm1wG028018@ns201285.ovh.net>, proto=ESMTP, daemon=MSP-v4, relay=localhost.localdomain [127.0.0.1]
Apr 30 15:48:01 ns201285 sendmail[28018]: m3UDm1wG028018: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30260, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m3UDm1Mx028072 Message accepted for delivery)
Apr 30 15:48:01 ns201285 sm-mta[28074]: m3UDm1Mx028072: to=ovh, ctladdr=<root@ns201285.ovh.net> (8/0), delay=00:00:00, mailer=local, pri=120528, dsn=5.1.1, stat=User unknown
Apr 30 15:48:01 ns201285 sm-mta[28074]: m3UDm1Mx028072: to=ovh, ctladdr=<root@ns201285.ovh.net> (8/0), delay=00:00:00, mailer=local, pri=30754, dsn=5.1.1, stat=User unknown
Apr 30 15:48:01 ns201285 sm-mta[28074]: m3UDm1Mx028072: to=ovh, ctladdr=root (8/0), delay=00:00:00, mailer=local, pri=30754, dsn=5.1.1, stat=User unknown
Apr 30 15:48:01 ns201285 sm-mta[28074]: m3UDm1Mx028072: m3UDm1Mx028074: postmaster notify: User unknown
Apr 30 15:48:01 ns201285 sm-mta[28074]: m3UDm1Mx028074: to=ovh, ctladdr=root (8/0), delay=00:00:00, mailer=local, pri=0, dsn=5.1.1, stat=User unknown
Apr 30 15:48:01 ns201285 sm-mta[28074]: m3UDm1Mx028074: to=ovh, ctladdr=root (8/0), delay=00:00:00, mailer=local, pri=0, dsn=5.1.1, stat=User unknown
Apr 30 15:48:01 ns201285 sm-mta[28074]: m3UDm1Mx028074: m3UDm1N0028074: return to sender: User unknown
Apr 30 15:48:01 ns201285 sm-mta[28074]: m3UDm1N0028074: to=ovh, ctladdr=root (8/0), delay=00:00:00, mailer=local, pri=0, dsn=5.1.1, stat=User unknown
Apr 30 15:48:01 ns201285 sm-mta[28074]: m3UDm1Mx028074: Saved message in /var/lib/sendmail/dead.letter
Apr 30 15:48:21 ns201285 sendmail[28021]: m3UDm1pE028021: from=root, size=530, class=0, nrcpts=1, msgid=<200804301348.m3UDm1pE028021@ns201285.ovh.net>, relay=root@localhost
Apr 30 15:48:21 ns201285 sm-mta[28080]: m3UDmLin028080: from=<root@ns201285.ovh.net>, size=798, class=0, nrcpts=1, msgid=<200804301348.m3UDm1pE028021@ns201285.ovh.net>, proto=ESMTP, daemon=MSP-v4, relay=localhost.localdomain [127.0.0.1]
Apr 30 15:48:21 ns201285 sendmail[28021]: m3UDm1pE028021: to=root, ctladdr=root (0/0), delay=00:00:20, xdelay=00:00:00, mailer=relay, pri=30530, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m3UDmLin028080 Message accepted for delivery)
Apr 30 15:48:21 ns201285 sm-mta[28081]: m3UDmLin028080: to=ovh, ctladdr=<root@ns201285.ovh.net> (8/0), delay=00:00:00, mailer=local, pri=120798, dsn=5.1.1, stat=User unknown
Apr 30 15:48:21 ns201285 sm-mta[28081]: m3UDmLin028080: to=ovh, ctladdr=<root@ns201285.ovh.net> (8/0), delay=00:00:00, mailer=local, pri=31024, dsn=5.1.1, stat=User unknown
Apr 30 15:48:21 ns201285 sm-mta[28081]: m3UDmLin028080: to=ovh, ctladdr=root (8/0), delay=00:00:00, mailer=local, pri=31024, dsn=5.1.1, stat=User unknown
Apr 30 15:48:21 ns201285 sm-mta[28081]: m3UDmLin028080: m3UDmLin028081: postmaster notify: User unknown
Apr 30 15:48:21 ns201285 sm-mta[28081]: m3UDmLin028081: to=ovh, ctladdr=root (8/0), delay=00:00:00, mailer=local, pri=0, dsn=5.1.1, stat=User unknown
Apr 30 15:48:21 ns201285 sm-mta[28081]: m3UDmLin028081: to=ovh, ctladdr=root (8/0), delay=00:00:00, mailer=local, pri=0, dsn=5.1.1, stat=User unknown
Apr 30 15:48:21 ns201285 sm-mta[28081]: m3UDmLin028081: m3UDmLio028081: return to sender: User unknown
Apr 30 15:48:21 ns201285 sm-mta[28081]: m3UDmLio028081: to=ovh, ctladdr=root (8/0), delay=00:00:00, mailer=local, pri=0, dsn=5.1.1, stat=User unknown
Apr 30 15:48:21 ns201285 sm-mta[28081]: m3UDmLin028081: Saved message in /var/lib/sendmail/dead.letter
Apr 30 15:48:44 ns201285 sendmail[28104]: m3UDmi7u028104: from=www-data, size=344, class=0, nrcpts=1, msgid=<200804301348.m3UDmi7u028104@ns201285.ovh.net>, relay=www-data@localhost
Apr 30 15:48:44 ns201285 sm-mta[28105]: m3UDmib3028105: from=<www-data@ns201285.ovh.net>, size=572, class=0, nrcpts=1, msgid=<200804301348.m3UDmi7u028104@ns201285.ovh.net>, proto=ESMTP, daemon=MSP-v4, relay=localhost.localdomain [127.0.0.1]
Apr 30 15:48:44 ns201285 sendmail[28104]: m3UDmi7u028104: to=danieldjx@gmail.com, ctladdr=www-data (33/33), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30344, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m3UDmib3028105 Message accepted for delivery)
/etc/mail/sendmail.confdivert(-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,restrictqrun,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/up.m4')dnl
include(`/etc/mail/m4/provider.m4')dnl
dnl #
dnl # Default Mailer setup
MAILER_DEFINITIONS
MAILER(`procmail')dnl
MAILER(`smtp')dnl
dnl # Masquerading options
FEATURE(`always_add_domain')dnl
MASQUERADE_AS(`meinedomain.de)dnl
FEATURE(`allmasquerade')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`accept_unqualified_senders')dnl
Um ehrlich zu sagen habe ich keinerlei Ahnung woran es genau liegt. Ich hoffe einfach nur das mir hier geholfen wird. Die Googlesuche spuckt auch nicht gerade sehr nutzbares aus.#------------------------------------------------------------------------------
#
# /etc/mail/sendmail.conf
#
# Copyright (c) 2001-2005 Richard Nelson. All Rights Reserved.
# Version: 8.13.8
# Time-stamp: <2006-12-08 20:21:10 cowboy>
#
# Parameter file for sendmail (sourced by /usr/share/sendmail/sendmail)
# Make all changes herein, instead of altering /etc/init.d/sendmail.
#
# After making changes here, you'll need to run /usr/sbin/sendmailconfig
# or /usr/share/sendmail/update_conf to have the changes take effect -
# If you change DAEMON_MODE, QUEUE_MODE, or QUEUE_INTERVAL, you'll also
# need to run /etc/init.d/sendmail restart.
#
# Changes made herein will be kept across upgrades - except for comments!
# Some comment lines have special significance ...
#
# **** **** **** **** DO NOT EDIT THE COMMENTS **** **** **** ****
#
# Supported parameters (and defaults) are listed herein.
#
# Notes:
# * This setup allows sendmail to run in several modes:
# - listener and queue runner..DAEMON_MODE="daemon".QUEUE_MODE="daemon"
# - listener only..............DAEMON_MODE="daemon".QUEUE_MODE="none"
# - queue runner only..........DAEMON_MODE="none"...QUEUE_MODE="daemon"
# - *NOTHING* ?!?..............DAEMON_MODE="none"...QUEUE_MODE="none"
#
# * You can also run the listener from inetd:
# - listener and queue runner..DAEMON_MODE="inetd"..QUEUE_MODE="daemon"
# - listener only..............DAEMON_MODE="inetd"..QUEUE_MODE="none"
#
# * You can also run the queue runner from cron:
# - listener and queue runner..DAEMON_MODE="....."..QUEUE_MODE="cron"
# - queue runner only..........DAEMON_MODE="none"...QUEUE_MODE="cron"
#
# * _PARMS entries herein are shown in precedence order, any later _PARMS
# field will, if applicable, override any previous _PARMS fields.
#
# * Values *MUST* be surrounded with double quotes ("), single quotes
# will *NOT* work !
#
#------------------------------------------------------------------------------
# SMTP Listener Configuration
#
# DAEMON_NETMODE="Dynamic"; Keyword SMTP network mode
# static: Do not monitor any network interfaces for changes
# dynamic: Monitor one or more interfaces for changes
#
DAEMON_NETMODE="Dynamic";
#
# DAEMON_NETIF="eth0"; string SMTP interface(s)
# This parameter defines the network interface(s) that the daemon
# will monitor for status changes (via ppp, dhcp, ifup/down hooks).
#
# NOTES:
# 1) Only list more than one interfaces if they only used for fallback,
# otherwise the daemon will wind up ping-ponging between interfaces.
# 2) Do not use 'lo' unless your daemon only listens on the localhost.
#
DAEMON_NETIF="eth0";
#
# DAEMON_MODE="Daemon"; Keyword SMTP listener
# daemon: Run as standalone daemon
# inetd: Run from inet supervisor (forks for each mail)
# none: No listener (ie, nullclient/smarthost)
#
# NOTE: If you choose "none", mail will build up in the MSP queues
# and you will not receive any mail from external sites.
#
DAEMON_MODE="Daemon";
#
# DAEMON_PARMS=""; String Listener parms
# Any parameters here will be ignored when run from cron.
# Note that {QUEUE,MISC,CRON}_PARMS, if applicable, will override
# anything declared herein.
#
DAEMON_PARMS="";
#
# DAEMON_HOSTSTATS="No"; Boolean Listener stats
# This parameter determines whether or not host stats are collected
# and available for the `hoststat` command to display. There will
# be a (minor) performance hit, as files will be created/updated for each
# sendmail delivery attempt. The files are fixed in size, and small,
# but there can be many of them.
#
DAEMON_HOSTSTATS="No";
#
# DAEMON_MAILSTATS="No"; Boolean Listener stats
# This parameter determines whether or not mailer stats are collected
# and available for the `mailstats` command to display. There will
# be a (minor) performance hit, as this file will be updated for each
# item coming into, or out of, sendmail. The file is fixed in size,
# and small, so there's no need to rotate it.
#
DAEMON_MAILSTATS="No";
#
#------------------------------------------------------------------------------
# SMTP MTA Queue Runner Configuration
#
# QUEUE_MODE="${DAEMON_MODE}"; Keyword SMTP queue runner
# daemon: Run as standalone daemon
# cron: Run from crontab
# none: No queue runner (ie, nullclient/smarthost)
#
QUEUE_MODE="${DAEMON_MODE}";
#
# QUEUE_INTERVAL="10m"; Timespec (digits+w|d|h|m|s)
# Interval at which to run the MTA queues. What interval should you use?
# The amount of time that is acceptable before retrying delivery on
# mail that couldn't be delivered in one run, or how long an item can
# set in the queue before having the first delivery attempt done.
#
# NOTE: If you leave this field blank, You get *NO* queue runners !!!
#
QUEUE_INTERVAL="10m";
#
# QUEUE_PARMS=""; String queue parameters
# Any parameters here are also used when run from cron.
# Note that MISC_PARMS and CRON_PARMS, if applicable, will override
# anything declared herein.
#
QUEUE_PARMS="";
#
#------------------------------------------------------------------------------
# SMTP - MSP Queue Runner Configuration
#
# MSP_MODE="Cron"; Keyword MSP queue runner mode
# daemon: Run as standalone daemon
# cron: Run from crontab
# none: No queue runner (ie, nullclient/smarthost)
#
# NOTE: If QUEUE_MODE="cron" & MSP_MODE="none", the MSP queue will
# be run as part of the MTA queue running process.
#
MSP_MODE="Cron";
#
# MSP_INTERVAL="20m"; Timespec (digits+w|d|h|m|s)
# Interval at which to run the MSP queues. What interval should you use?
# The amount of time that is acceptable before retrying delivery on
# mail that couldn't be accepted by the MTA, and was therefore left
# in the message submission queue. The MTA shouldn't be down that often
# so this can be larger than QUEUE_INTERVAL.
#
# NOTE: If you leave this field blank, The MSP queue will *NOT* be run !!!
#
MSP_INTERVAL="20m";
#
# MSP_PARMS=""; String queue parameters
# Any parameters here are also used when run from cron.
# Note that MISC_PARMS and CRON_PARMS, if applicable, will override
# anything declared herein.
#
MSP_PARMS="";
#
# MSP_MAILSTATS="${DAEMON_MAILSTATS}"; Boolean Listener stats
# This parameter determines whether or not mailer stats are collected
# and available for the `mailstats` command to display. There will
# be a (minor) performance hit, as this file will be updated for each
# item coming into, or out of, sendmail. The file is fixed in size,
# and small, so there's no need to rotate it.
#
MSP_MAILSTATS="${DAEMON_MAILSTATS}";
#
#------------------------------------------------------------------------------
# Miscellaneous Confguration
#
# MISC_PARMS=""; String miscellaneous parameters
# Miscellaneous parameters - applied to any sendmail invocation.
# Any parameters here are also used when run from cron.
# Applied after {DAEMON,QUEUE}_PARMS, and can therefore override them
# if need be (in which case why did use them?)
# Note that CRON_PARMS, if applicable, will override anything
# declared herein.
#
# Here is where'd you setup and debugging or special parms that you
# want shared betwixt the possibly separate listener/queue-runner
# processes.
#
MISC_PARMS="";
#
#------------------------------------------------------------------------------
# Cron Job Configuration
#
# CRON_MAILTO="root"; String cronjob output
# Recipient of *rare* cronjob output. Some cronjobs will be running
# under user `mail`, so any problems encountered would probably be missed
# so define a user who actually (hopefully) checks email now and again.
#
CRON_MAILTO="root";
#
# CRON_PARMS=""; String cron specific parmeters
# Cron parameters - applied *only* when sendmail queue running is done
# via a cronjob. Applied after QUEUE_PARMS and MISC_PARMS, and can
# therefore override them if need be.
#
CRON_PARMS="";
#
#------------------------------------------------------------------------------
# Other stuff
# LOG_CMDS="No"; Binary command logging flag
# Will cause syslog entries for many of the sendmail related commands
# like runq, mailq, etc - you'll also see cron jobs (if enabled).
#
LOG_CMDS="No";
#
# HANDS_OFF="No"; Binary Do *NOT* touch the configuration
# Set this *ONLY* if you are going to be fully responsible for the entire
# setup of sendmail - the directories, permissions, databases, etc. With
# this variable set to "Yes", nothing will be done for you during updates.
#
# In other words, "The blood be upon your hands" if you set this...
# My ability to help with problems will be greatly reduced !
#
# "Well, a pet peeve of mine is people who directly edit the
# .cf file instead of using the m4 configuration files.
# Don't do it! [laughs] I treat the .cf file as a binary
# file - you should too."
# -- Eric Allman 1999/10/18
#
HANDS_OFF="No";
#
#------------------------------------------------------------------------------
# Queue Aging Configuration
#
# Why would you want to age your queues? On every queue-run interval,
# sendmail will try *every* file in the queue... If a site is down
# for a while, considerable time can be wasted each interval in retrying
# it. The scheme supported allows aging by time, and can move the older
# files to another (less frequently run queue), thereby reducing overal
# system impact - and providing better mail throughput.
#
# Note that this support is completely separate from QUEUE_MODE=cron,
# you can age queues even if you're running QUEUE_MODE=daemon.
#
# There are four parts to the queue aging support, and these parts
# may be repeated, to operate on multiple queues.
#
# 1. Interval at which to age the queues (in minutes).
# What interval should you use? Roughly twice the normal queue
# interval, so that messages are tried twice in each successively
# slower queue.
#
# 2. Criteria (optional and defaults to interval). This is the
# specification of which files to move. It defaults moving
# files whose age in the queues exceeds the interval.
# This field, if specified can be very complex - supporting
# aging by just about anything! see qtool(8) for details.
#
# 3. To queue. This is the queue to which files will be moved.
# It may be fully qualified, or relative to /var/spool/mqueue.
#
# 4. From queue. This is the queue from which files will be moved.
# It may be fully qualified, or relative to /var/spool/mqueue.
#
# Samples:
# AGE_DATA="[['25m', '', 'hourly', 'main']]";
# Every 25 minutes, move any file older than 25 minutes from
# /var/spool/mqueue/main to /var/spool/mqueue/hourly
#
# AGE_DATA="[['25m', '', 'hourly', 'main'],
# ['125', '', 'daily', 'hourly']]";
# Same as the above, but also move files from the hourly queue
# to the daily queue after 125 minutes in the hourly queue.
#
# AGE_DATA="[['25m',
# '-e '$msg{message}[0] == /Deferred: 452 4.2.2 Over quota/'',
# 'overquota', 'main']]";
# Every 25 minutes, move all files deferred because of quota
# violations from /var/spool/mqueue/main to
# /var/spool/mqueue/overquota where they can be processed on
# a different interval, or by some other means.
#
# If the above samples suggest Perl arrays, well, they are...
#
# AGE_DATA=""; Perl array Queue aging data
#
AGE_DATA="";
#
#------------------------------------------------------------------------------
# Dependant variables (set according to other variables)
#
#
#------------------------------------------------------------------------------
# Hidden variables (the blood be upon your hands)
#
DAEMON_RUNASUSER="No";
#
#------------------------------------------------------------------------------
# Deprecated variables (kept for reference)
#
DAEMON_STATS="${DAEMON_MAILSTATS}";
MSP_STATS="${MSP_MAILSTATS}";
#
#------------------------------------------------------------------------------
# Unknown variables (kept for reference)
#
#------------------------------------------------------------------------------
#
Vielen Dank.
MfG,
Sintec