Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Feb 2005 17:20:39 -0500
From:      Ken Hawkins <rosewoodblues@mac.com>
To:        <freebsd-questions@freebsd.org> <freebsd-questions@freebsd.org> <freebsd-questions@freebsd.org>
Subject:   Re: complete rookie sendmail question
Message-ID:  <6ecb12f5b29fa031d9210f1995a19546@mac.com>
In-Reply-To: <d8ef6e9fb652f9d40e8cd228209f5c04@rosewoodblues.com>
References:  <aaf69334b1a26fc0f4bab9e496d89132@rosewoodblues.com> <20050225161127.GB55686@orion.daedalusnetworks.priv> <d415eb3eecbceacf607a4e07b553fcfc@rosewoodblues.com> <20050227202639.GB9833@gothmog.gr> <d8ef6e9fb652f9d40e8cd228209f5c04@rosewoodblues.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <box name>.mc > <box name>.cf
m4: <box name>.mc at line 49:  
include(/usr/share/sendmail/cf/domain/<box name>.m4): No such file or  
directory

i replaced our host name with <box name> in the output.

can anyone point me toward what I require to create a domain file for  
our <box name> 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 <ken@rosewoodblues.com> 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"
>



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