From owner-freebsd-questions@FreeBSD.ORG Sun Feb 27 22:20:43 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5311C16A4CE for ; Sun, 27 Feb 2005 22:20:43 +0000 (GMT) Received: from imf22aec.mail.bellsouth.net (imf22aec.mail.bellsouth.net [205.152.59.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92DD443D53 for ; Sun, 27 Feb 2005 22:20:42 +0000 (GMT) (envelope-from rosewoodblues@mac.com) Received: from [192.168.1.4] ([66.156.2.50]) by imf22aec.mail.bellsouth.net ESMTP <20050227222041.ZVYG2068.imf22aec.mail.bellsouth.net@[192.168.1.4]> for ; Sun, 27 Feb 2005 17:20:41 -0500 Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: References: <20050225161127.GB55686@orion.daedalusnetworks.priv> <20050227202639.GB9833@gothmog.gr> Message-Id: <6ecb12f5b29fa031d9210f1995a19546@mac.com> From: Ken Hawkins Date: Sun, 27 Feb 2005 17:20:39 -0500 To: X-Mailer: Apple Mail (2.619.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Re: complete rookie sendmail question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Feb 2005 22:20:43 -0000 alright I found an old blurb about handling a scenario similar to mine: http://lists.freebsd.org/pipermail/freebsd-questions/2003-July/ 014468.html it essentially says: If you want to get FreeBSD to forward your email to the MS-Exchange server, you have to: 1. make sure sendmail is running. (ie remove sendmail_* lines from /etc/rc.conf) 2. # cd /etc/mail 3. # cp freebsd.mc `hostname`.mc 4. edit `hostname`.mc and uncomment the following line: define(`SMART_HOST', `your.isp.mail.server') 5. replace `your.isp.mail.server' with your Exchange server. 6. # make 7. # make install 8. # sh /etc/rc.sendmail restart This will configure sendmail to send all non-local mail to the Exchange Server for further processing (eg: to send email to the 'Net). This is essetially what I need to do ('cept ours is not an EXCHANGE server) and if i follow this, put in bhost1.broadjam.net for the SMART_HOST and during make i get an error that it is looking for a domain file: /usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/ /usr/share/sendmail/cf/m4/cf.m4 .mc > .cf m4: .mc at line 49: include(/usr/share/sendmail/cf/domain/.m4): No such file or directory i replaced our host name with in the output. can anyone point me toward what I require to create a domain file for our in the /usr/share/sendmail/cf/domain/ area? ken; On Feb 27, 2005, at 4:03 PM, Ken Hawkins wrote: > inline... > > On Feb 27, 2005, at 3:26 PM, Giorgos Keramidas wrote: > >> On 2005-02-27 11:44, Ken Hawkins wrote: >>> Found out it was a firewall issue and that is open now. though my >>> problem has gone from connection refused to: >>> Feb 27 08:22:04 web1 sendmail[85505]: j1MIj4DI065443: <...> >>> delay=4+19:37:00, xdelay=00:00:00, mailer=esmtp, pri=22920813, >>> relay=bhost1.broadjam.net., dsn=4.0.0, stat=Deferred: Operation timed >>> out with bhost1.broadjam.net. >>> >>> is there a timeout that I can set in sendmail to set a longer wait >>> time on this? >> >> Something else is wrong now. I can't connect to the SMTP port of >> bhost1.broadjam.net, so I can't tell if it's down or just refusing my >> attempt to connect. > > I think it is just refusing your connection attempts. > >> >> Are you sure you should be sending outgoing email through that host? > > yes. > >> >>> my flags in my rc.conf are: >>> >>> sendmail_enable="YES" >>> sendmail_flags="-bd -q30m" # -bd is pretty mandatory. >> >> This looks a bit wrong, if you are running a recent release of >> FreeBSD. >> The sendmail_enable option is *NOT* going to work with _flags. It is >> mostly a wrapper around the following: >> >> sendmail_submit_enable >> sendmail_outbound_enable >> sendmail_msp_queue_enable >> >> You should definitely read the manpage of rc.sendmail, before setting >> Sendmail-related options in your /etc/rc.conf file. Pay very close >> attention to the section ``RC.CONF VARIABLES''. > > from my man rc.conf: > > RC.CONF VARIABLES > The following variables affect the behavior of rc.sendmail. They > are > defined in /etc/defaults/rc.conf and can be changed in > /etc/rc.conf. > > sendmail_enable > (str) If set to ``YES'', run the sendmail(8) daemon at > system > boot time. If set to ``NO'', do not run a sendmail(8) > daemon to > listen for incoming network mail. This does not preclude > a > sendmail(8) daemon listening on the SMTP port of the > loopback > interface. The ``NONE'' option is deprecated and should > not be > used. It will be removed in a future release. > > sendmail_flags > (str) If sendmail_enable is set to ``YES'', these are the > flags > to pass to the sendmail(8) daemon. > > and my settings are: > > sendmail_enable="YES" > sendmail_flags="-bd -q30m" # -bd is pretty mandatory. > > the only thing that I see wrong here is that I do not need the -bd > which tells sendmail to run as a daemon since sendmail_enable="YES" > essentially does this. the other is to process the queue every 30 > minutes. am I missing my problem here? > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >