sendmail configuration

Jona Joachim jona.joachim at gmail.com
Sun May 14 14:08:45 PDT 2006


Hi!
Sendmail drives me mad.
The only thing I want it to do is change the sender's E-Mail address to
jaj13 at web.de and forward everything to smtp.web.de whenever I send mail
from the command line.
It always sends a DNS query to get the MX records of web.de but the
servers designated by the MX records don't accept mail from me as I'm on
a DSL line with no static IP address. I even tried to specify the IP
address of the mailserver directly so that the words "web.de" don't
occur in any configuration file but it still queries for the MX records.


When I type:

#sendmail jona.joachim at gmail.com
test
.

sendmail first tries to contact the web.de server that is designated by
the MX record. When this server refuses to accept to mail it directly
contacts the gmail server. When I receive the mail the sender's address
is default at nirvana.lan.net although I mapped this address to
jaj13 at web.de in genericstable.
I attached /var/log/maillog and a libpcap file (sniffed using ethereal)
which describe what happens when I issue the command above.

I also attached following configuration files:
/etc/mail/nirvana.lan.net.mc
/etc/mail/nirvana.lan.submit.mc
/etc/mail/genericstable
/etc/rc.conf
/etc/hosts

I created all the .cf and .db files using the Makefile in /etc/mail.
I'm sorry to bug you with this, I must be missing something obvious.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ethereal
Type: application/octet-stream
Size: 13429 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20060514/d9190c10/ethereal.obj
-------------- next part --------------

May 14 19:24:52 nirvana sm-mta[11087]: starting daemon (8.13.6): SMTP+queueing at 00:30:00
May 14 19:24:52 nirvana sm-msp-queue[11090]: starting daemon (8.13.6): queueing at 00:30:00
May 14 19:24:52 nirvana sm-mta[11088]: k4BIAfF8000497: to=<default at 10.0.0.11>, delay=2+23:14:09, xdelay=00:00:00, mailer=esmtp, pri=5521614, relay=10.0.0.11. [10.0.0.11], dsn=4.0.0, stat=Deferred: Connection refused by 10.0.0.11.
May 14 19:24:54 nirvana sm-mta[11088]: k4AItUc2007774: to=<jaj13 at web.de>, delay=3+22:29:22, xdelay=00:00:02, mailer=esmtp, pri=5970323, relay=mx-ha02.web.de. [217.72.192.188], dsn=4.0.0, stat=Deferred: Connection reset by mx-ha02.web.de.
May 14 19:25:00 nirvana sendmail[11097]: k4EHP0oE011097: from=root, size=256, class=0, nrcpts=1, msgid=<200605141725.k4EHP0oE011097 at nirvana.lan.net>, relay=root at localhost
May 14 19:25:00 nirvana sm-mta[11098]: k4EHP0vK011098: from=<root at nirvana.lan.net>, size=547, class=0, nrcpts=1, msgid=<200605141725.k4EHP0oE011097 at nirvana.lan.net>, proto=ESMTP, daemon=Daemon0, relay=localhost.lan.net [127.0.0.1]
May 14 19:25:00 nirvana sendmail[11097]: k4EHP0oE011097: to=root, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30256, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k4EHP0vK011098 Message accepted for delivery)
May 14 19:25:00 nirvana sm-mta[11099]: k4EHP0vK011098: to=<root at nirvana.lan.net>, ctladdr=<root at nirvana.lan.net> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30810, relay=local, dsn=2.0.0, stat=Sent
May 14 19:25:05 nirvana sendmail[11101]: k4EHP38b011101: from=default, size=5, class=0, nrcpts=1, msgid=<200605141725.k4EHP38b011101 at nirvana.lan.net>, relay=root at localhost
May 14 19:25:06 nirvana sm-mta[11102]: k4EHP5VZ011102: from=<default at nirvana.lan.net>, size=340, class=0, nrcpts=1, msgid=<200605141725.k4EHP38b011101 at nirvana.lan.net>, proto=ESMTP, daemon=Daemon0, relay=localhost.lan.net [127.0.0.1]
May 14 19:25:06 nirvana sendmail[11101]: k4EHP38b011101: to=jona.joachim at gmail.com, ctladdr=default (1001/0), delay=00:00:03, xdelay=00:00:01, mailer=relay, pri=30005, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k4EHP5VZ011102 Message accepted for delivery)
May 14 19:25:07 nirvana sm-mta[11104]: k4EHP5VZ011102: to=<jona.joachim at gmail.com>, ctladdr=<default at nirvana.lan.net> (1001/0), delay=00:00:02, xdelay=00:00:01, mailer=esmtp, pri=30340, relay=gmail-smtp-in.l.google.com. [64.233.183.114], dsn=2.0.0, stat=Sent (OK 1147627507 a23si3294417nfc)

-------------- next part --------------
check_quotas="NO"

font8x16="iso15-8x16.fnt"
keymap="swissfrench.iso.acc"

sshd_enable="NO"
usbd_enable="YES"
inetd_enable="NO"
ntpdate_enable="YES"

sendmail_enable="NO"
sendmail_submit_enable="YES"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="YES"

linux_enable="YES"
compat4x_enable="NO"
compat5x_enable="YES"

lpd_enable="YES"

nessusd_enable="NO"

apache22_enable="NO"
postgresql_enable="YES"
postgresql_data="/var/pgsql"

moused_enable="NO"
moused_ums0_enable="NO"
moused_nondefault_enable="NO"

hostname="nirvana.lan.net"
ifconfig_sk0="inet 10.0.0.11 netmask 255.0.0.0"
defaultrouter="10.0.0.1"

-------------- next part --------------
127.0.0.1		localhost.lan.net localhost

10.0.0.11		nirvana.lan.net nirvana
10.0.0.12		padres

#Brother AP206 Printer
10.0.0.21		RNP6C37EB


-------------- next part --------------
default				jaj13 at web.de
default at localhost		jaj13 at web.de
default at nirvana.lan.net		jaj13 at web.de
root				jaj13 at web.de
root at localhost			jaj13 at web.de
root at nirvana.lan.net		jaj13 at web.de


-------------- next part --------------
divert(-1)
#
# Copyright (c) 1983 Eric P. Allman
# Copyright (c) 1988, 1993
#	The Regents of the University of California.  All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the distribution.
# 3. All advertising materials mentioning features or use of this software
#    must display the following acknowledgement:
#	This product includes software developed by the University of
#	California, Berkeley and its contributors.
# 4. Neither the name of the University nor the names of its contributors
#    may be used to endorse or promote products derived from this software
#    without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#

#
#  This is a generic configuration file for FreeBSD 5.X and later systems.
#  If you want to customize it, copy it to a name appropriate for your
#  environment and do the modifications there.
#
#  The best documentation for this .mc file is:
#  /usr/share/sendmail/cf/README or
#  /usr/src/contrib/sendmail/cf/README
#

divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.30 2005/06/14 02:25:17 gshapiro Exp $')dnl
OSTYPE(freebsd6)dnl
DOMAIN(generic)dnl

undefine(`ALIAS_FILE')dnl
FEATURE(`genericstable', `hash -o /etc/mail/genericstable')dnl

undefine(`UUCP_RELAY')dnl
undefine(`BITNET_RELAY')dnl
undefine(`DECNET_RELAY')dnl
undefine(`FAX_RELAY')dnl
define(`LOCAL_RELAY', `esmtp:[217.72.192.157]')dnl smtp.web.de
define(`MAIL_HUB', `esmtp:[217.72.192.157]')dnl
define(`SMART_HOST', `esmtp:[217.72.192.157]')dnl

DAEMON_OPTIONS(`Name=IPv4, Family=inet')dnl

define(`confCW_FILE', `-o /etc/mail/local-host-names')dnl
define(`confBIND_OPTS', `WorkAroundBrokenAAAA')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
MAILER(local)dnl
MAILER(smtp)dnl

-------------- next part --------------
divert(-1)
#
# Copyright (c) 2001-2003 Sendmail, Inc. and its suppliers.
#	All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
#

#
#  This is the FreeBSD configuration for a set-group-ID sm-msp sendmail
#  that acts as a initial mail submission program.
#
#

divert(0)dnl
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.submit.mc,v 1.1 2003/10/19 00:03:13 gshapiro Exp $')
define(`confCF_VERSION', `Submit')dnl
define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining
define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet
define(`confTIME_ZONE', `USE_TZ')dnl
define(`confDONT_INIT_GROUPS', `True')dnl
define(`confBIND_OPTS', `WorkAroundBrokenAAAA')dnl
dnl
dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1]
FEATURE(`msp', `esmtp:[217.72.192.157]')dnl




More information about the freebsd-questions mailing list