changed sendmail behavior on FreeBSD 7?
Chris St Denis
chris at smartt.com
Mon Mar 31 14:17:55 PDT 2008
Giorgos Keramidas wrote:
> On Mon, 31 Mar 2008 13:29:28 -0700, Chris St Denis <chris at smartt.com> wrote:
>
>> I've setup a new web server hostname doremi.ctgameinfo.com. When I try
>> to send mail to username at ctgameinfo.com it tries to deliver it locally
>> instead of to the mx server mx1.ctgameinfo.com.
>>
>> In previous versions this seems to work correctly. Why would it be
>> trying to deliver locally this time? I'm running default sendmail
>> config that comes with the standard install.
>>
>
> Show us your `/etc/mail/hostname.mc' file, and if you have a file with a
> list of `local' hostnames in `/etc/mail/local-host-names' show us that
> file too.
>
It's just the default mc file.
Scenario 1 described above
-------------
No local-host-names file. I tried creating one with just the hostname in
it, but it didn't help.
doremi# cat /etc/mail/doremi.ctgameinfo.com.mc | grep -v ^# | grep -v ^dnl
divert(-1)
divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.34.2.1 2007/11/22
16:19:40 gshapiro Exp $')
OSTYPE(freebsd6)
DOMAIN(generic)
FEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
define(`confCW_FILE', `-o /etc/mail/local-host-names')
DAEMON_OPTIONS(`Name=IPv4, Family=inet')
DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O')
define(`confBIND_OPTS', `WorkAroundBrokenAAAA')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
MAILER(local)
MAILER(smtp)
Scenario 2 described above. stickyhost & MAIL_HUB were added to work
around.
-------------
no local-host-names initially. One was created trying to debug this tho
it doesn't seem to help any.
carbon# cat /etc/mail/local-host-names
localhost
carbon.smartt.com
carbon# cat /etc/mail/carbon.smartt.com.mc | grep -v ^# | grep -v ^dnl
divert(-1)
divert(0)
VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.34.2.1 2007/11/22
16:19:40 gshapiro Exp $')
OSTYPE(freebsd6)
DOMAIN(generic)
FEATURE(access_db, `hash -o -T<TMPF> /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
FEATURE(stickyhost)
define(`MAIL_HUB', `smtp-be1')
define(`confCW_FILE', `-o /etc/mail/local-host-names')
DAEMON_OPTIONS(`Name=IPv4, Family=inet')
DAEMON_OPTIONS(`Name=IPv6, Family=inet6, Modifiers=O')
define(`confBIND_OPTS', `WorkAroundBrokenAAAA')
define(`confNO_RCPT_ACTION', `add-to-undisclosed')
define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
MAILER(local)
MAILER(smtp)
Btw, should OSTYPE haven't been bumped to freebsd7?
More information about the freebsd-questions
mailing list