Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Feb 2000 21:05:11 +0800
From:      Patrick Yu <pyu@glink.net.hk>
To:        freebsd-questions@FreeBSD.ORG
Subject:   sendmail problem with the SMARTHOST macro
Message-ID:  <38A94F07.DF3ADBF@glink.net.hk>

next in thread | raw e-mail | index | archive | help

Hello all.  I thought with my simple setup the SMART_HOST variable in my
.mc
file will give me a working sendmail.cf.  But NOT.  I cannot send mail
properly to the outside world !!  The fetchmail program is getting
email correctly from the POP3 server with the current sendmail  .mc
file.

The sendmail  .mc file is appended at the end of the message.

Thanks you for any advice,  Please copy any reply to the email address
pyu@glink.net.hk because I am not currently subscribed to this mailing
list.  Thanks !!

Patrick



Setting
=======
A FreeBSD box (hostname alien.local.org.hk) connected to a Windows NT
proxy
(hostname proxy.local.org.hk), which is our dial-up access for the
Internet.
The Windows NT machine does not provide DNS service.

Email sent by email client such as mutt on alien for an outside address
is
not sent, producing the 'mailq' output:
                Mail Queue (1 request)
--Q-ID-- --Size-- -----Q-Time-----
------------Sender/Recipient------------
QAA02065        3 Mon Feb 14 16:37 localuser
                 (host map: lookup (outside.org): deferred)
                                   someone@outside.org


Feb 14 17:11:03 alien sendmail[2248]: RAA02248: from=localuser,
size=310, class=0, pri=30310, nrcpts=1,
msgid=<20000214171103.A2240@alien.local.org.hk>,
relay=localuser@localhost
Feb 14 17:11:03 alien sendmail[2248]: RAA02248: to=someone@outside.org,
delay=00:00:00, mailer=relay, stat=queued
-----------------------------


BUT if the user localuser send mail to localuser@local.org.hk the mail
does
go through the proxy !?  Why ?

Feb 14 17:06:36 alien sendmail[2201]: RAA02201: from=localuser,
size=341, class=0, pri=30341, nrcpts=1,
msgid=<20000214170636.A2193@alien.local.org.hk>,
relay=localuser@localhost
Feb 14 17:09:13 alien sendmail[2203]: RAA02201:
to=localuser@local.org.hk, ctladdr=localuser (1002/1002),
delay=00:02:37, xdelay=00:02:37, mailer=relay, relay=proxy.local.org.hk.
[192.168.1.97], stat=Sent (RAA17873 Message accepted for delivery)
-----------------------------

And if the user send to an unqualified address, eg. 'localuser', the
mail
is sent correctly without going through the proxy.

Feb 14 17:12:20 alien sendmail[2261]: RAA02261: from=localuser,
size=356, class=0, pri=30356, nrcpts=1,
msgid=<20000214171220.A2253@alien.local.org.hk>,
relay=localuser@localhost
Feb 14 17:12:20 alien sendmail[2263]: RAA02261:
to=localuser@alien.local.org.hk, ctladdr=localuser (1002/1002),
delay=00:00:00, xdelay=00:00:00, mailer=local, stat=Sent

------------- sendmail.mc
VERSIONID(`$FreeBSD: src/etc/sendmail/freefall.mc,v 1.12.2.3 1999/08/29
14:20:02 peter Exp $')dnl

OSTYPE(bsd4.4)dnl
FEATURE(accept_unresolvable_domains)dnl
FEATURE(`masquerade_envelope')dnl
MASQUERADE_AS(local.org)dnl
define(`MAIL_HUB', `alien.local.org')dnl
define(`SMART_HOST', `proxy.local.org')dnl
dnl FEATURE(local_lmtp)dnl
dnl define(`LOCAL_MAILER_FLAGS', LOCAL_MAILER_FLAGS`'P)dnl
dnl define(`confNO_RCPT_ACTION', `add-to-undisclosed')dnl
define(`confMAX_MIME_HEADER_LENGTH', `256/128')dnl
MAILER(local)dnl
MAILER(smtp)dnl





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38A94F07.DF3ADBF>