Re: sendmail config

2008-01-23 Thread Giorgos Keramidas
On 2008-01-23 19:54, Steven Friedrich <[EMAIL PROTECTED]> wrote:
> I configured KMail with SSL to send mail from a foreign network thru my 
> broadband ISP.  This works fine.
> 
> I want to be able to use send-pr, and thought I might me able to configure 
> sendmail as outgoing only. I have sendmail_enable="NO" in /etc/rc.conf.
> 
> local mail works fine.  I don't want incoming from the Internet.
> 
> I copied /etc/mail/freebsd.mc to laptop.mc and set SMART_HOST to  
> mail.insightbb.com and moved sendmail.cf to sendmailcf.sav.  I compiled 
> laptop.mc with m4 /usr/share/sendmail/cf/m4/cf.m4 laptop.mc
> 
> I then copied laptop.cf to sendmail.cf and rebooted.

There's a much easier way to generate `sendmail.cf' and `submit.cf' on
FreeBSD.  After reading the comments in `/etc/mail/Makefile', especially
the part shown below:

  # 
  # This Makefile uses `.mc' as the default MTA .mc file.  This
  # can be changed by defining SENDMAIL_MC in /etc/make.conf, e.g.:
  #
  #   SENDMAIL_MC=/etc/mail/myconfig.mc
  #
  # If '.mc' does not exist, it is created using 'freebsd.mc'
  # as a template.
  #
  # It also uses '.submit.mc' as the default mail submission .mc
  # file.  This can be changed by defining SENDMAIL_SUBMIT_MC in
  # /etc/make.conf, e.g.:
  #
  #   SENDMAIL_SUBMIT_MC=/etc/mail/mysubmit.mc
  #
  # If '.submit.mc' does not exist, it is created using
  # 'freebsd.submit.mc' as a template.
  # 

You can set up a `sendmail.cf' and `submit.cf' file by:

  0. Set up the `rc.conf' options for local delivery only, and to
 forward all other messages to the SMART_HOST relay.

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

  1. Editing `/etc/make.conf' and setting SENDMAIL_MC and
 SENDMAIL_SUBMIT_MC to:

SENDMAIL_MC?= /etc/mail/laptop.mc
SENDMAIL_SUBMIT_MC?= /etc/mail/laptop.submit.mc

  2. Backup your current `laptop.mc' and `laptop.submit.mc' if any.

  3. Copy the original `freebsd.mc' to `laptop.mc' and the original
 `submit.mc' to `freebsd.submit.mc' in `/etc/mail':

# cd /etc/mail
# cp freebsd.mc laptop.mc
# cp freebsd.submit.mc laptop.submit.mc

  4. Edit the new `laptop.mc' file and set SMART_HOST.

  5. Use the standard `Makefile' to build and install the new *.cf files:

# cd /etc/mail
# make all && make install

Now you should be able to start Sendmail with:

# /etc/rc.d/sendmail stop
# /etc/rc.d/sendmail start

> Now, the response is "Service not available", but I think it's because
> I don't have sendmail configured to use SSL, like KMail.

The standard `freebsd.mc' distributed with FreeBSD sources doesn't force
the use of SSL or TLS.  You should be able to use it without SSL.

If you have made modifications to the original `freebsd.mc' file, you
can restore it by copying a fresh version of the same file from their
pristine copies included in the source tree of FreeBSD:

/usr/src/etc/sendmail/freebsd.mc
/usr/src/etc/sendmail/freebsd.submit.mc

HTH,
Giorgos

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


sendmail config

2008-01-23 Thread Steven Friedrich
I configured KMail with SSL to send mail from a foreign network thru my 
broadband ISP.  This works fine.

I want to be able to use send-pr, and thought I might me able to configure 
sendmail as outgoing only. I have sendmail_enable="NO" in /etc/rc.conf.

local mail works fine.  I don't want incoming from the Internet.

I copied /etc/mail/freebsd.mc to laptop.mc and set SMART_HOST to  
mail.insightbb.com and moved sendmail.cf to sendmailcf.sav.  I compiled 
laptop.mc with m4 /usr/share/sendmail/cf/m4/cf.m4 laptop.mc

I then copied laptop.cf to sendmail.cf and rebooted.

Now, the response is "Service not available", but I think it's because I don't 
have sendmail configured to use SSL, like KMail.

Is it possible?
I have read the Handbook and an old version of "Unix System Administration 
Handbook", and the README in /usr/share/sendmail/cf, and in /etc/mail.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Sendmail Config Issues

2007-04-25 Thread Schiz0

On 4/24/07, Dan Busarow <[EMAIL PROTECTED]> wrote:



On Apr 24, 2007, at 6:09 PM, Schiz0 wrote:

> Hey,
>
> I'm running 6.2-RELEASE-p3. I'm having some issues configuring
> sendmail. I'm
> new to sendmail, so please bear with me. I've read
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mail.html
> along
> with some docs on sendmail.org. I'm guessing I'm overlooking
> something, or
> missing something completely.
>
> I'm trying to sent up a sendmail config to send/receive mail
> locally, and
> run smtp. My asdf.mc file is located at: http://pastebin.ca/456745
> and my
> asdf.submit.mc file is at: http://pastebin.ca/456757
> SENDMAIL_MC and SENDMAIL_SUBMIT_MC are set in make.conf to the full
> path to
> those .mc files.
>
> I also made changes to aliases, access, local-host-names, and
> virtusertable
> in the /etc/mail dir.

As a first step change

DOMAIN(schiz0.securityexploits.com)

to

DOMAIN(schiz0.securityexploits.com)

unless you happen to have created an M4 domain file named
schiz0.securityexploits.com.m4.  It is *not* a place you define your
domain name.

Dan


>
> When I run make in the /etc/mail dir, I get the following error:
> ---
> # make
> /usr/sbin/sendmail -bi -OAliasFile=/etc/mail/aliases
> /etc/mail/sendmail.cf: line 279: Unknown address family inet6 in
> Family=option
> *** Error code 70
>
> Stop in /etc/mail.
> ---
>
> I disabled IPv6 in my kernel config, and I commented out in both
> the normal
> mc file, and the submit file the information for ipv6, so I'm not sure
> what's doing this.
>
> Thanks in advance! If it wasn't for these mailing lists, I'd be
> back on
> windows :-D
>
> ~Steve
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-
> [EMAIL PROTECTED]"




Thanks! I looked at /usr/share/sendmail/domains and that got it for me. I
misunderstood the DOMAIN() option. Sendmail is now up and running.

Much appreciated!
~Steve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Sendmail Config Issues

2007-04-24 Thread Dan Busarow


On Apr 24, 2007, at 6:09 PM, Schiz0 wrote:


Hey,

I'm running 6.2-RELEASE-p3. I'm having some issues configuring  
sendmail. I'm

new to sendmail, so please bear with me. I've read
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mail.html  
along
with some docs on sendmail.org. I'm guessing I'm overlooking  
something, or

missing something completely.

I'm trying to sent up a sendmail config to send/receive mail  
locally, and
run smtp. My asdf.mc file is located at: http://pastebin.ca/456745  
and my

asdf.submit.mc file is at: http://pastebin.ca/456757
SENDMAIL_MC and SENDMAIL_SUBMIT_MC are set in make.conf to the full  
path to

those .mc files.

I also made changes to aliases, access, local-host-names, and  
virtusertable

in the /etc/mail dir.


As a first step change

DOMAIN(schiz0.securityexploits.com)

to

DOMAIN(schiz0.securityexploits.com)

unless you happen to have created an M4 domain file named  
schiz0.securityexploits.com.m4.  It is *not* a place you define your  
domain name.


Dan




When I run make in the /etc/mail dir, I get the following error:
---
# make
/usr/sbin/sendmail -bi -OAliasFile=/etc/mail/aliases
/etc/mail/sendmail.cf: line 279: Unknown address family inet6 in
Family=option
*** Error code 70

Stop in /etc/mail.
---

I disabled IPv6 in my kernel config, and I commented out in both  
the normal

mc file, and the submit file the information for ipv6, so I'm not sure
what's doing this.

Thanks in advance! If it wasn't for these mailing lists, I'd be  
back on

windows :-D

~Steve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions- 
[EMAIL PROTECTED]"


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Sendmail Config Issues

2007-04-24 Thread Schiz0

Hey,

I'm running 6.2-RELEASE-p3. I'm having some issues configuring sendmail. I'm
new to sendmail, so please bear with me. I've read
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mail.html along
with some docs on sendmail.org. I'm guessing I'm overlooking something, or
missing something completely.

I'm trying to sent up a sendmail config to send/receive mail locally, and
run smtp. My asdf.mc file is located at: http://pastebin.ca/456745 and my
asdf.submit.mc file is at: http://pastebin.ca/456757
SENDMAIL_MC and SENDMAIL_SUBMIT_MC are set in make.conf to the full path to
those .mc files.

I also made changes to aliases, access, local-host-names, and virtusertable
in the /etc/mail dir.

When I run make in the /etc/mail dir, I get the following error:
---
# make
/usr/sbin/sendmail -bi -OAliasFile=/etc/mail/aliases
/etc/mail/sendmail.cf: line 279: Unknown address family inet6 in
Family=option
*** Error code 70

Stop in /etc/mail.
---

I disabled IPv6 in my kernel config, and I commented out in both the normal
mc file, and the submit file the information for ipv6, so I'm not sure
what's doing this.

Thanks in advance! If it wasn't for these mailing lists, I'd be back on
windows :-D

~Steve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: A sendmail config question

2005-09-16 Thread Emanuel Strobl
Am Samstag, 17. September 2005 03:49 CEST schrieb stan:
> I'm setting up a 4.11 STABLE machine.
>
> 4.11 comes with sendmail 8.13.4, and I prefer to use this, rather than
> build the one from ports (BTW if anyone has a strong reason that I
> should do this different, I'd entertain a discussion on this).
>
> In any case the scenario I'm trying to set up is that I wat to recive
> mail for say [EMAIL PROTECTED], [EMAIL PROTECTED] ... a.y.com, c.y.com . Note 
> that I _don't
> want to accept mail for [EMAIL PROTECTED]



I don't understand that sentence... You mention [EMAIL PROTECTED] in negative 
_and_ 
positive... Don't try to gain security by obscurity!

> Now how I'm trying to do this is using /etc/mail/virtusertable I've got
> etnries like this:
>
> [EMAIL PROTECTED]   stan
> [EMAIL PROTECTED]  stan
>
> In /etc/mail/local-host-names I have entries like:
>
> a.net
> b.com
> c.com
>
> Notice that there is not entry in virtusertable for [EMAIL PROTECTED], yet
> mail addressed to that address is acepted and deliverd (as are the ones
> I _want_ to work) to the local user stan.

Ugh, I don't understand that either, but maybe [EMAIL PROTECTED] is your 
canonical 
domain?
Why don't you just post your config, replacing @ with (at) or anything 
else? We are not used to your environment and so we don't have the 
possibility to check for wider errors...

Good luck,

-Harry

>
> Can anyone enlighten me as to wgat I'm doing wrong here?
>
> Oh, of course the are DNS records for a.net, b.com, and c.com that point
> to the IP addresses for this machine.


pgpGqnbf13A1o.pgp
Description: PGP signature


Re: A sendmail config question

2005-09-16 Thread Giorgos Keramidas
On 2005-09-16 21:49, stan <[EMAIL PROTECTED]> wrote:
> I'm setting up a 4.11 STABLE machine.
>
> 4.11 comes with sendmail 8.13.4, and I prefer to use this, rather than
> build the one from ports (BTW if anyone has a strong reason that I should
> do this different, I'd entertain a discussion on this).
>
> In any case the scenario I'm trying to set up is that I wat to recive mail
> for say [EMAIL PROTECTED], [EMAIL PROTECTED] ... a.y.com, c.y.com . Note that 
> I _don't want to
> accept mail for [EMAIL PROTECTED]
>
> Now how I'm trying to do this is using /etc/mail/virtusertable I've got 
> etnries
> like this:
>
> [EMAIL PROTECTED]   stan
> [EMAIL PROTECTED]  stan
>
> In /etc/mail/local-host-names I have entries like:
>
> a.net
> b.com
> c.com

I think the following paragraph from the sendmail.org page on virtual
hosting may be helpful:

%   [See: http://www.sendmail.org/virtual-hosting.html]
%
%   Note 1: if you have a local user, say sam, and there is no
%   key for [EMAIL PROTECTED] and no catch-all key for
%   @yourdomain.com, then sendmail will fall back to the local
%   user sam when resolving [EMAIL PROTECTED] To prevent this,
%   you must use either a catch-all key or an explicit key for
%   [EMAIL PROTECTED]; the error:nouser example above may be
%   useful in this instance.

You have to specify a "catch-all" rule for the rest of the a.net or the
b.com domain, with something like this:

[EMAIL PROTECTED]  stan
@a.net  error:nouser No such user here

[EMAIL PROTECTED]  stan
@b.com  error:nouser No such user here

> Notice that there is not entry in virtusertable for [EMAIL PROTECTED], yet
> mail addressed to that address is acepted and deliverd (as are the ones
> I _want_ to work) to the local user stan.

A similar, since you have c.com as a local host name (virtual or not)
but no virtusertable entries, so Sendmail assumes all @c.com addresses
can be delivered to existing local users.

- Giorgos

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


A sendmail config question

2005-09-16 Thread stan
I'm setting up a 4.11 STABLE machine.

4.11 comes with sendmail 8.13.4, and I prefer to use this, rather than
build the one from ports (BTW if anyone has a strong reason that I should 
do this different, I'd entertain a discussion on this).

In any case the scenario I'm trying to set up is that I wat to recive mail
for say [EMAIL PROTECTED], [EMAIL PROTECTED] ... a.y.com, c.y.com . Note that I 
_don't want to 
accept mail for [EMAIL PROTECTED] 

Now how I'm trying to do this is using /etc/mail/virtusertable I've got etnries
like this:

[EMAIL PROTECTED]   stan
[EMAIL PROTECTED]  stan

In /etc/mail/local-host-names I have entries like:

a.net
b.com
c.com

Notice that there is not entry in virtusertable for [EMAIL PROTECTED], yet
mail addressed to that address is acepted and deliverd (as are the ones 
I _want_ to work) to the local user stan.

Can anyone enlighten me as to wgat I'm doing wrong here?

Oh, of course the are DNS records for a.net, b.com, and c.com that point
to the IP addresses for this machine.


-- 
U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong 
Terror 
- New York Times 9/3/1967
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: sendmail config double check

2004-11-01 Thread Matthew Seaman
On Mon, Nov 01, 2004 at 02:44:44PM -0500, Steel City Phantom wrote:

>ok, cool.  thanks.  next simple question, once i change these, how do i
>get sendmail to pick up the new settings without rebooting the server?

Easy.

# cd /etc/mail
# make restart

Cheers,

Matthew


-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgpg8tyBTd3bw.pgp
Description: PGP signature


Re: sendmail config double check

2004-11-01 Thread Steel City Phantom

   ok, cool.  thanks.  next simple question, once i change these, how do
   i get sendmail to pick up the new settings without rebooting the
   server?
   Matthew Seaman wrote:

On Mon, Nov 01, 2004 at 01:30:15PM -0500, Steel City Phantom wrote:
  

my bsd LAMP machine won't send any emails through php.  i just wanted to 
doublecheck my rc.conf with you guys to make sure i have it right.  here 
are the settings

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

now, if my brain is straight, these settings should reject outside 
systems from trying to route mail through this machine, but the machine 
itself can generate and send mail.  am i right?


sendmail_enable="NO" --- implies: don't run a sendmail process
listening on port 25 for incoming connections over the 'net.  CORRECT.

sendmail_submit_enable="NO" --- implies: don't run a sendmail MTA
process listening on the loopback address.  WRONG.  You can't send
e-mail without an MTA process in there somewhere, and this setting is
expressly designed for 'send-only' machines.  

sendmail_outbound_enable="YES -- implies: flush the sendmail MTA queue
at intervals.  IRRELEVANT.  You don't need this if you run the
'sendmail_submit_enable' instance above, and in fact, rc.sendmail will
ignore this setting if you have 'sendmail_submit_enable="YES"'.

You should also have 'sendmail_msp_queue_enable="YES"' which will
flush any emails stuck in the submission queue.  But that's the
default anyhow.

In summary, you want:

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

I'm not exactly sure how PHP sends e-mail on a Unix system.  The
choices are either that it speaks SMTP directly to an MTA (which in
this case will have to be localhost port 25), or else it does what all
good unix programs should do, which is to pipe the message into the
STDIN of /usr/sbin/sendmail.  The config above should work for both of
those cases.  You will possibly need to fiddle with
/etc/mail/`hostname`.mc to setup a smart host as the next MTA to pass
the message to -- see the comments in that file for details.

Cheers,

Matthew

  
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: sendmail config double check

2004-11-01 Thread Matthew Seaman
On Mon, Nov 01, 2004 at 01:30:15PM -0500, Steel City Phantom wrote:
> my bsd LAMP machine won't send any emails through php.  i just wanted to 
> doublecheck my rc.conf with you guys to make sure i have it right.  here 
> are the settings
> 
> sendmail_enable="NO"
> sendmail_submit_enable="NO"
> sendmail_outbound_enable="YES"
> 
> now, if my brain is straight, these settings should reject outside 
> systems from trying to route mail through this machine, but the machine 
> itself can generate and send mail.  am i right?

sendmail_enable="NO" --- implies: don't run a sendmail process
listening on port 25 for incoming connections over the 'net.  CORRECT.

sendmail_submit_enable="NO" --- implies: don't run a sendmail MTA
process listening on the loopback address.  WRONG.  You can't send
e-mail without an MTA process in there somewhere, and this setting is
expressly designed for 'send-only' machines.  

sendmail_outbound_enable="YES -- implies: flush the sendmail MTA queue
at intervals.  IRRELEVANT.  You don't need this if you run the
'sendmail_submit_enable' instance above, and in fact, rc.sendmail will
ignore this setting if you have 'sendmail_submit_enable="YES"'.

You should also have 'sendmail_msp_queue_enable="YES"' which will
flush any emails stuck in the submission queue.  But that's the
default anyhow.

In summary, you want:

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

I'm not exactly sure how PHP sends e-mail on a Unix system.  The
choices are either that it speaks SMTP directly to an MTA (which in
this case will have to be localhost port 25), or else it does what all
good unix programs should do, which is to pipe the message into the
STDIN of /usr/sbin/sendmail.  The config above should work for both of
those cases.  You will possibly need to fiddle with
/etc/mail/`hostname`.mc to setup a smart host as the next MTA to pass
the message to -- see the comments in that file for details.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgpJWIgdYNOX0.pgp
Description: PGP signature


sendmail config double check

2004-11-01 Thread Steel City Phantom
my bsd LAMP machine won't send any emails through php.  i just wanted to 
doublecheck my rc.conf with you guys to make sure i have it right.  here 
are the settings

sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="YES"
now, if my brain is straight, these settings should reject outside 
systems from trying to route mail through this machine, but the machine 
itself can generate and send mail.  am i right?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


***SPAM*** possible sendmail config problem/Perl

2004-03-17 Thread Peter W. Merritt
Hi,

Using FreeBSD 5.1

Acting as a mailserver, which runs a Perl 'application' to answer
questions from the public
I'm a Perl novice. I switched from a SuSE Linux Distribution as the
application constantly crashed.
Sendmail has the following complaint:

dosmirror# more maillog
Mar 14 08:53:07 dosmirror sm-mta[56111]: starting daemon (8.12.10):
[EMAIL PROTECTED]:30:00
Mar 14 08:53:07 dosmirror sm-mta[56112]: grew WorkList for
/var/spool/mqueue to 2000
Mar 14 08:53:07 dosmirror sm-msp-queue[56114]: starting daemon (8.12.10):
[EMAIL PROTECTED]:30:00
Mar 14 08:53:08 dosmirror sm-mta[56112]: grew WorkList for
/var/spool/mqueue to 3000
Mar 14 08:53:08 dosmirror sm-mta[56112]: grew WorkList for
/var/spool/mqueue to 4000
Mar 14 08:53:08 dosmirror sm-mta[56112]: grew WorkList for
/var/spool/mqueue to 5000
Mar 14 08:53:08 dosmirror sm-mta[56112]: grew WorkList for
/var/spool/mqueue to 6000
Mar 14 08:53:08 dosmirror sm-mta[56112]: grew WorkList for
/var/spool/mqueue to 7000
Mar 14 08:53:08 dosmirror sm-mta[56112]: grew WorkList for
/var/spool/mqueue to 8000
Mar 14 08:53:08 dosmirror sm-mta[56112]: grew WorkList for
/var/spool/mqueue to 9000
Mar 14 08:53:08 dosmirror sm-mta[56116]: i2EETVZX047626: SYSERR(root):
Cannot exec /home/qrc/bin/qrcmailin: Exec format error
Mar 14 08:53:08 dosmirror sm-mta[56112]: i2EETVZX047626: to=root,
ctladdr=root (26/0), delay=00:17:02, xdelay=00:00:00, mailer=qrc,
pri=123562, relay=localhost, dsn=4.0.0, stat=Operating system error
Mar 14 08:53:08 dosmirror sm-mta[56117]: i2EETVZW047626: SYSERR(root):
Cannot exec /home/qrc/bin/qrcmailin: Exec format error
using
perl-5.8.2_2.tbz, did a use.perl port
pkg_add -r sendmail

Modify the default .mc file: freebsd.mc, Add necessary parts from
qrc-dosref.mc, Create a combined file,copy the combined file using the
domain (dosmirror.lib.uic.edu)
cp /home/bogue/local-host-names /etc/mail/local-host-names
cp /home/bogue/dosmirror.lib.uic.edu.mc dosmirror.lib.uic.edu.mc
The new .mc file:

start here **

dosmirror# more dosmirror.lib.uic.edu.mc
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.28 2003/04/18
01:25:41 gshapiro Exp $')
OSTYPE(freebsd5)
DOMAIN(generic)
FEATURE(access_db, `hash -o -T /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
dnl Uncomment to allow relaying based on your MX records.
dnl NOTE: This can allow sites to use your server as a backup MX without
dnl   your permission.
dnl FEATURE(relay_based_on_MX)
dnl DNS based black hole lists
dnl 
dnl DNS based black hole lists come and go on a regular basis
dnl so this file will not serve as a database of the available servers.
dnl For that, visit
dnl
http://dir

possible sendmail config problem/Perl

2004-03-14 Thread Timothy E Bogue
Hi,

Using FreeBSD 5.1

Acting as a mailserver, which runs a Perl 'application' to answer
questions from the public

I'm a Perl novice. I switched from a SuSE Linux Distribution as the
application constantly crashed.

Sendmail has the following complaint:

dosmirror# more maillog
Mar 14 08:53:07 dosmirror sm-mta[56111]: starting daemon (8.12.10):
[EMAIL PROTECTED]:30:00
Mar 14 08:53:07 dosmirror sm-mta[56112]: grew WorkList for
/var/spool/mqueue to 2000
Mar 14 08:53:07 dosmirror sm-msp-queue[56114]: starting daemon (8.12.10):
[EMAIL PROTECTED]:30:00
Mar 14 08:53:08 dosmirror sm-mta[56112]: grew WorkList for
/var/spool/mqueue to 3000
Mar 14 08:53:08 dosmirror sm-mta[56112]: grew WorkList for
/var/spool/mqueue to 4000
Mar 14 08:53:08 dosmirror sm-mta[56112]: grew WorkList for
/var/spool/mqueue to 5000
Mar 14 08:53:08 dosmirror sm-mta[56112]: grew WorkList for
/var/spool/mqueue to 6000
Mar 14 08:53:08 dosmirror sm-mta[56112]: grew WorkList for
/var/spool/mqueue to 7000
Mar 14 08:53:08 dosmirror sm-mta[56112]: grew WorkList for
/var/spool/mqueue to 8000
Mar 14 08:53:08 dosmirror sm-mta[56112]: grew WorkList for
/var/spool/mqueue to 9000
Mar 14 08:53:08 dosmirror sm-mta[56116]: i2EETVZX047626: SYSERR(root):
Cannot exec /home/qrc/bin/qrcmailin: Exec format error
Mar 14 08:53:08 dosmirror sm-mta[56112]: i2EETVZX047626: to=root,
ctladdr=root (26/0), delay=00:17:02, xdelay=00:00:00, mailer=qrc,
pri=123562, relay=localhost, dsn=4.0.0, stat=Operating system error
Mar 14 08:53:08 dosmirror sm-mta[56117]: i2EETVZW047626: SYSERR(root):
Cannot exec /home/qrc/bin/qrcmailin: Exec format error

using
perl-5.8.2_2.tbz, did a use.perl port

pkg_add -r sendmail

Modify the default .mc file: freebsd.mc, Add necessary parts from
qrc-dosref.mc, Create a combined file,copy the combined file using the
domain (dosmirror.lib.uic.edu)

cp /home/bogue/local-host-names /etc/mail/local-host-names
cp /home/bogue/dosmirror.lib.uic.edu.mc dosmirror.lib.uic.edu.mc

The new .mc file:

start here **

dosmirror# more dosmirror.lib.uic.edu.mc
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.28 2003/04/18
01:25:41 gshapiro Exp $')
OSTYPE(freebsd5)
DOMAIN(generic)

FEATURE(access_db, `hash -o -T /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')

dnl Uncomment to allow relaying based on your MX records.
dnl NOTE: This can allow sites to use your server as a backup MX without
dnl   your permission.
dnl FEATURE(relay_based_on_MX)

dnl DNS based black hole lists
dnl 
dnl DNS based black hole lists come and go on a regular basis
dnl so this file will not serve as a database of the available servers.
dnl For that, visit
dnl

Re: sendmail config query

2004-03-11 Thread Matthew Seaman
On Thu, Mar 11, 2004 at 08:39:54AM +1100, Chris Richards wrote:
> Hiya,
>  
> I am running FreeBSD 5.1-RELEASE-p10 and want to configure
> SMTP-AUTH/TLS. A friend gave me some instructions on how to do it and
> they talk about editing "$SRC/devtools/Site/site.config.m4" $SRC being
> the sendmail source of course. My friend is not a FreeBSD user so I
> can't ask him for help.
>  
> I just have a standard install of sendmail on a normal system build. Can
> someone point me in the right direction as to where this file should be?
> I have searched for it and it does not exist in the current system - Is
> there a directory somewhere that I can add it to so it will be included
> in a sendmail build?

It's actually very easy.  First, you need to install some SASL
libraries that come with the cyrus-sasl-2.1.17_1 package:

# portinstall -N security/cyrus-sasl2

Then make the system sendmail compile the SASL code and link against
those libraries, by adding the following to /etc/make.conf:

SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2
SENDMAIL_LDFLAGS=-L/usr/local/lib
SENDMAIL_LDADD=-lsasl2

and do a normal build,installworld cycle as described in
/usr/src/UPDATING and the Handbook and many other places.

Now, enable the SASL capabilities in your sendmail config by adding
the following to your /etc/mail/`hostname`.mc:

dnl ## Set SASL options
TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN')dnl
define(`confDEF_AUTH_INFO', `/etc/mail/auth-info')dnl
define(`confDONT_BLAME_SENDMAIL',`GroupReadableSASLDBFile')dnl

dnl
define(`CERT_DIR', `MAIL_SETTINGS_DIR`'certs')dnl
define(`confCACERT_PATH', `CERT_DIR')dnl
define(`confCACERT', `CERT_DIR/cacert.pem')dnl
define(`confSERVER_CERT', `CERT_DIR/cert.pem')dnl
define(`confSERVER_KEY', `CERT_DIR/key.pem')dnl
define(`confCLIENT_CERT', `CERT_DIR/cert.pem')dnl
define(`confCLIENT_KEY', `CERT_DIR/key.pem')dnl

Then you need to generate yourself a suitable encryption key for the
TLS encrypted sessions.  In order to create a self-signed certificate
and key in the appropriate format, follow the instructions here:

http://www.sendmail.org/~ca/email/other/cagreg.html

Then just build your sendmail configuration, install it and start
testing:

# cd /etc/mail
# make
# make install
# make restart

For further information, there's a section in the handbook which goes
through setting up SMTP Auth using SASL version 1 in rather more
detail, which you might find useful -- the procedure is very similar
to what's required for SASL version 2:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/smtp-auth.html

and also look at this page:

http://www.ofb.net/%7Ejheiss/sendmail/tlsandrelay.shtml

although you can ignore the linux specific instructions about how to
get sendmail compiled with OpenSSL -- you get all that already with
the system sendmail.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


sendmail config query

2004-03-10 Thread Chris Richards
Hiya,
 
I am running FreeBSD 5.1-RELEASE-p10 and want to configure
SMTP-AUTH/TLS. A friend gave me some instructions on how to do it and
they talk about editing "$SRC/devtools/Site/site.config.m4" $SRC being
the sendmail source of course. My friend is not a FreeBSD user so I
can't ask him for help.
 
I just have a standard install of sendmail on a normal system build. Can
someone point me in the right direction as to where this file should be?
I have searched for it and it does not exist in the current system - Is
there a directory somewhere that I can add it to so it will be included
in a sendmail build?
 
Thank you for reading and hopefully responding.
 
Cheers,
Chris
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: A sendmail config question

2004-01-01 Thread stan
On Thu, Jan 01, 2004 at 07:29:56PM +, Matthew Seaman wrote:
> On Thu, Jan 01, 2004 at 11:09:28AM -0500, stan wrote:
> > I'm setting up a FreeBSD machine behind a firewall to recieve mail. Inside
> > teh firewall the machines are in a "fak" domain. The IP address that is on
> > the outside of the firewall is in a vaild DNS block.
> > 
> > Looking at the default freebsd.mc config file, I don't see anywhere to tell
> > sedmail to accept mail for the real domain. What am I missing?
> 
> All you have to do is add the list of addresses (ie. the RHS part,
> after the @ symbol) to the file /etc/mail/local-host-names, one per
> line.  This file should list all of the addresses that your server
> does final delivery for.
>  
> > Also how can I set up wildcarding, so that mail for that domain that does
> > not go to a valid user gets directed to a specifc user on that system?
> 
Thansk taht's most helpful.


-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
-- Benjamin Franklin
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: A sendmail config question

2004-01-01 Thread Matthew Seaman
On Thu, Jan 01, 2004 at 11:09:28AM -0500, stan wrote:
> I'm setting up a FreeBSD machine behind a firewall to recieve mail. Inside
> teh firewall the machines are in a "fak" domain. The IP address that is on
> the outside of the firewall is in a vaild DNS block.
> 
> Looking at the default freebsd.mc config file, I don't see anywhere to tell
> sedmail to accept mail for the real domain. What am I missing?

All you have to do is add the list of addresses (ie. the RHS part,
after the @ symbol) to the file /etc/mail/local-host-names, one per
line.  This file should list all of the addresses that your server
does final delivery for.
 
> Also how can I set up wildcarding, so that mail for that domain that does
> not go to a valid user gets directed to a specifc user on that system?

This is a job for virtusertable -- read about what you can do with
virtusertable funtionality in /usr/share/sendmail/cf/README.  The
default FreeBSD configuration already includes virtusertable support,
so all you have to do is create a file /etc/mail/virtusertable into
which you put a line like the following:

@virtual-domain.com  [EMAIL PROTECTED]

Then run make in /etc/mail which will process that file into the db
hash file sendmail uses to do it's lookups.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


A sendmail config question

2004-01-01 Thread stan
I'm setting up a FreeBSD machine behind a firewall to recieve mail. Inside
teh firewall the machines are in a "fak" domain. The IP address that is on
the outside of the firewall is in a vaild DNS block.

Looking at the default freebsd.mc config file, I don't see anywhere to tell
sedmail to accept mail for the real domain. What am I missing?

Also how can I set up wildcarding, so that mail for that domain that does
not go to a valid user gets directed to a specifc user on that system?

-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
-- Benjamin Franklin
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: sendmail config for desktop

2003-06-22 Thread Bill Moran
I found that following these instructions helped:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/smtp-dialup.html
Gary Schenk wrote:
I am running 4.7-RELEASE. When I installed freeBSD I made the localhost 
name fuzz.

I am now attempting to get mutt running on this computer.

I cannot send email to the outside world. My email is rejected because 
the doamin part of the address includes the localhost name "fuzz". So 
instead of "[EMAIL PROTECTED]", which is what the ISP expects, mail 
is sent out as being from "[EMAIL PROTECTED]".

In one attempt to get things working, I edited freebsd.mc in a couple of 
places. I defined 'SMART_HOST' as my isp, and included a line 
MASQUERADE_AS('socal.rr.com'). I did make cf, and make install. After 
running sendmail -q it gives me an error message in sendmail.cf "line 
66: unknown configuration line "\n"

I used ee editor to go to line 66 and deleted what was apparently blank. 
Now when I run sendmail -q it's as though nothing occurs, I don't even 
get a mail message telling me my email was rejected.

How can I remove fuzz from my address? Dynamite? I have very little hair 
left, and this day has been really rough on what is left. It's being 
ripped out in big chunks. Sendmail documentation seems to be setup for 
server configuration. I have not been able to find anything for a 
standalone desktop that answers these questions. I've spent two days 
studying about and configuring mutt. Should I just stick with kmail?

Thanks, I really needed to vent!
Gary
here is the error message:

Jun 21 17:32:05 fuzz sendmail[85]: NOQUEUE: SYSERR(root): 
/etc/mail/sendmail.cf: line 66: unknown configuration line "\n"

here is freebsd.mc:

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 4.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.10.2.16 2002/05/22 
16:39:14 gshapiro Exp $')
OSTYPE(freebsd4)
DOMAIN(generic)

FEATURE(access_db, `hash -o -T /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')
MASQUERADE_AS('socal.rr.com') dnl

dnl Uncomment to allow relaying based on your MX records.
dnl NOTE: This can allow sites to use your server as a backup MX without
dnl   your permission.
dnl FEATURE(relay_based_on_MX)
dnl DNS based black hole lists
dnl 
dnl DNS based black hole lists come and go on a regular basis
dnl so this file will not serve as a database of the available servers.
dnl For that, visit 
http://dmoz.org/Computers/Internet/Abuse/Spam/Blacklists/

dnl Uncomment to activate Realtime Blackhole List
dnl information available at http://www.mail-abuse.com/
dnl NOTE: This is a subscription service as of July 31, 2001
dnl FEATURE(dnsbl)
dnl Alternatively, you can provide your own server and rejection 
message

Re: sendmail config for desktop

2003-06-22 Thread Matthew Seaman
On Sat, Jun 21, 2003 at 05:38:05PM -0700, Gary Schenk wrote:
> I am running 4.7-RELEASE. When I installed freeBSD I made the localhost 
> name fuzz.
> 
> I am now attempting to get mutt running on this computer.
> 
> I cannot send email to the outside world. My email is rejected because 
> the doamin part of the address includes the localhost name "fuzz". So 
> instead of "[EMAIL PROTECTED]", which is what the ISP expects, mail 
> is sent out as being from "[EMAIL PROTECTED]".

You can put:

set   [EMAIL PROTECTED]

into your ~/.muttrc which should help, but yes, the general solution
is to use sendmail's Masquerade feature.

 
> In one attempt to get things working, I edited freebsd.mc in a couple of 
> places. I defined 'SMART_HOST' as my isp, and included a line 
> MASQUERADE_AS('socal.rr.com'). I did make cf, and make install. After 
> running sendmail -q it gives me an error message in sendmail.cf "line 
> 66: unknown configuration line "\n"

> MASQUERADE_AS('socal.rr.com') dnl

> dnl Dialup users should uncomment and define this appropriately
> define(`SMART_HOST', `smtp-server.socal.rr.com') dnl

Hmmm.. Try this in your `hostname`.mc.  Don't leave a space before the
'dnl' after those entries, and make sure you get the quoting right.
With m4(1) you need to use quotes like `this', not like 'this':

MASQUERADE_AS(`socal.rr.com')dnl

define(`SMART_HOST', `smtp-server.socal.rr.com')dnl

In case your screen font doesn't make the distinction clear, the first
quote mark ` is character 96, and the second quote mark ' is character
39 -- see ascii(7) for the whole table.

Cheers,

Matthew
-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


sendmail config for desktop

2003-06-21 Thread Gary Schenk
I am running 4.7-RELEASE. When I installed freeBSD I made the localhost 
name fuzz.

I am now attempting to get mutt running on this computer.

I cannot send email to the outside world. My email is rejected because 
the doamin part of the address includes the localhost name "fuzz". So 
instead of "[EMAIL PROTECTED]", which is what the ISP expects, mail 
is sent out as being from "[EMAIL PROTECTED]".

In one attempt to get things working, I edited freebsd.mc in a couple of 
places. I defined 'SMART_HOST' as my isp, and included a line 
MASQUERADE_AS('socal.rr.com'). I did make cf, and make install. After 
running sendmail -q it gives me an error message in sendmail.cf "line 
66: unknown configuration line "\n"

I used ee editor to go to line 66 and deleted what was apparently blank. 
Now when I run sendmail -q it's as though nothing occurs, I don't even 
get a mail message telling me my email was rejected.

How can I remove fuzz from my address? Dynamite? I have very little hair 
left, and this day has been really rough on what is left. It's being 
ripped out in big chunks. Sendmail documentation seems to be setup for 
server configuration. I have not been able to find anything for a 
standalone desktop that answers these questions. I've spent two days 
studying about and configuring mutt. Should I just stick with kmail?

Thanks, I really needed to vent!
Gary

here is the error message:

Jun 21 17:32:05 fuzz sendmail[85]: NOQUEUE: SYSERR(root): 
/etc/mail/sendmail.cf: line 66: unknown configuration line "\n"

here is freebsd.mc:

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 4.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.10.2.16 2002/05/22 
16:39:14 gshapiro Exp $')
OSTYPE(freebsd4)
DOMAIN(generic)

FEATURE(access_db, `hash -o -T /etc/mail/access')
FEATURE(blacklist_recipients)
FEATURE(local_lmtp)
FEATURE(mailertable, `hash -o /etc/mail/mailertable')
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable')

MASQUERADE_AS('socal.rr.com') dnl

dnl Uncomment to allow relaying based on your MX records.
dnl NOTE: This can allow sites to use your server as a backup MX without
dnl   your permission.
dnl FEATURE(relay_based_on_MX)

dnl DNS based black hole lists
dnl 
dnl DNS based black hole lists come and go on a regular basis
dnl so this file will not serve as a database of the available servers.
dnl For that, visit 
http://dmoz.org/Computers/Internet/Abuse/Spam/Blacklists/

dnl Uncomment to activate Realtime Blackhole List
dnl information available at http://www.mail-abuse.com/
dnl NOTE: This is a subscription service as of July 31, 2001
dnl FEATURE(dnsbl)
dnl Alternatively, you can provide your own server and rejection 
message:
dnl FEATURE(dnsbl, `blackholes.mail-abuse.org', `"550 Mail from " 
$&{client_addr} " rejected, see http://mail-abuse.org/

Re: Sendmail config file

2003-03-10 Thread IAccounts
> > > > > > # install -c -m freebsd.cf /etc/mail/sendmail.cf
> > > > > > Install: Invalid file mode: freebsd.cf
> > > > > > Has anyone else experienced this during their sendmail upgrade?
> > > > >
> > > > > Does the file /usr/share/mk/bsd.own.mk exist?
> > > > >
> > > > > If yes, does it contain a definition of SHAREMODE?
> > > > >
> > > > >   % grep SHAREMODE /usr/share/mk/bsd.own.mk
> > > > >   # SHAREMODE ASCII text file mode. [${NOBINMODE}]
> > > > >   SHAREMODE?= ${NOBINMODE}
> > > >
> > > > It certainly does. The entry is laid out exactly as you have it above.
> > > > The Makefile appears to be a binary, for reasons unknown to me, but that
> > > > is besides the point. Can I just copy a new makefile over from a different
> > > > box, or am I headed in the wrong direction with this?
> > >
> > > Have you upgraded recently?  Did you run mergemaster after installworld?
> > >
> > > What is the output of the following command?
> > >
> > >   $ diff -u /etc/mail/Makefile /usr/src/etc/mail/Makefile
> >
> > Sorry, the output is 'Binary files differ'. The /etc/mail Makefile is
> > binary, the former is not.
> >
> > The copy of the new Makefile did not work, It states that it 'Do not know
> > how to make freebsd.submit.cf'. By driving through mergemaster, I can see
> > that I will destroy what is working of sendmail :o)
> >
> > Is there any reason that I can't stay with the old config files? I can't
> > afford to break sendmail at this time. If it is not a security risk to
> > remain with old config files against the newest binary, I will just leave
> > it sit for now until I can dig up more info.
>
> It depends on what the old version of Sendmail was.  What do you get
> when you telnet to port 25?

8.12.8/8.11.1

As far as I can tell, there are no vulnerabilities by reusing the old
configs, so I will let you get back to more important things on the list
and play around and research independantly for the time being.

Thanks for everything!

Steve



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: Sendmail config file

2003-03-10 Thread Giorgos Keramidas
On 2003-03-10 12:51, IAccounts <[EMAIL PROTECTED]> wrote:
> > > > Have you upgraded recently?  Did you run mergemaster after installworld?
> > > > What is the output of the following command?
> > > >
> > > > $ diff -u /etc/mail/Makefile /usr/src/etc/mail/Makefile
> > >
> > > Yes I just upgraded last week. 4.3->RELENG_4.
> > >
> > > I did do mergemaster, but only on the password file.  I will
> > > copy the latter file to /etc/mail and give it a test.
> > >
> > > Thanks.
> >
> > Nice :)
> >
> > You should really run mergemaster and let it merge all the
> > necessary changes to /etc though.  Not just the password file.
>
> I will play with this on a test box, but not on production. Looks
> like it is trying to merge some lines that I am not overly confident
> will produce successful results.

Fine with me.  I don't know what those diffs you're talking about are,
so I'll have to agree that being cautious to avoid breaking thing is
the best path to take.

:)


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: Sendmail config file

2003-03-10 Thread Giorgos Keramidas
On 2003-03-10 12:45, IAccounts <[EMAIL PROTECTED]> wrote:
> > > > > # install -c -m freebsd.cf /etc/mail/sendmail.cf
> > > > > Install: Invalid file mode: freebsd.cf
> > > > > Has anyone else experienced this during their sendmail upgrade?
> > > >
> > > > Does the file /usr/share/mk/bsd.own.mk exist?
> > > >
> > > > If yes, does it contain a definition of SHAREMODE?
> > > >
> > > > % grep SHAREMODE /usr/share/mk/bsd.own.mk
> > > > # SHAREMODE ASCII text file mode. [${NOBINMODE}]
> > > > SHAREMODE?= ${NOBINMODE}
> > >
> > > It certainly does. The entry is laid out exactly as you have it above.
> > > The Makefile appears to be a binary, for reasons unknown to me, but that
> > > is besides the point. Can I just copy a new makefile over from a different
> > > box, or am I headed in the wrong direction with this?
> >
> > Have you upgraded recently?  Did you run mergemaster after installworld?
> >
> > What is the output of the following command?
> >
> > $ diff -u /etc/mail/Makefile /usr/src/etc/mail/Makefile
>
> Sorry, the output is 'Binary files differ'. The /etc/mail Makefile is
> binary, the former is not.
>
> The copy of the new Makefile did not work, It states that it 'Do not know
> how to make freebsd.submit.cf'. By driving through mergemaster, I can see
> that I will destroy what is working of sendmail :o)
>
> Is there any reason that I can't stay with the old config files? I can't
> afford to break sendmail at this time. If it is not a security risk to
> remain with old config files against the newest binary, I will just leave
> it sit for now until I can dig up more info.

It depends on what the old version of Sendmail was.  What do you get
when you telnet to port 25?

: [EMAIL PROTECTED]:33]/home/giorgos$ telnet 0 25
: Trying 0.0.0.0...
: Connected to 0.
: Escape character is '^]'.
: 220 gothmog.gr ESMTP Sendmail 8.12.8/8.12.8; Mon, 10 Mar 2003 20:33:46 +0200 (EET)
: quit
: 221 2.0.0 gothmog.gr closing connection
: Connection closed by foreign host.
: [EMAIL PROTECTED]:33]/home/giorgos$

The two version numbers after "ESMTP Sendmail" above are, in order,
the version of the Sendmail executable and the version of the
sendmail.cf file.

- Giorgos

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: Sendmail config file

2003-03-10 Thread IAccounts
> > > > > > # install -c -m freebsd.cf /etc/mail/sendmail.cf
> > > > > > Install: Invalid file mode: freebsd.cf
> > > > > > Has anyone else experienced this during their sendmail upgrade?
> > > > >
> > > > > Does the file /usr/share/mk/bsd.own.mk exist?
> > > > >
> > > > > If yes, does it contain a definition of SHAREMODE?
> > > > >
> > > > >   % grep SHAREMODE /usr/share/mk/bsd.own.mk
> > > > >   # SHAREMODE ASCII text file mode. [${NOBINMODE}]
> > > > >   SHAREMODE?= ${NOBINMODE}
> > > >
> > > > It certainly does. The entry is laid out exactly as you have it above.
> > > > The Makefile appears to be a binary, for reasons unknown to me, but that
> > > > is besides the point. Can I just copy a new makefile over from a different
> > > > box, or am I headed in the wrong direction with this?
> > >
> > > Have you upgraded recently?  Did you run mergemaster after installworld?
> > > What is the output of the following command?
> > >
> > >   $ diff -u /etc/mail/Makefile /usr/src/etc/mail/Makefile
> >
> > Yes I just upgraded last week. 4.3->RELENG_4.
> >
> > I did do mergemaster, but only on the password file.
> > I will copy the latter file to /etc/mail and give it a test.
> >
> > Thanks.
>

> Nice :)
>
> You should really run mergemaster and let it merge all the necessary
> changes to /etc though.  Not just the password file.

I will play with this on a test box, but not on production. Looks like it
is trying to merge some lines that I am not overly confident will produce
successful results.

Steve

>
>


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: Sendmail config file

2003-03-10 Thread Giorgos Keramidas
On 2003-03-10 12:32, IAccounts <[EMAIL PROTECTED]> wrote:
> > > > > # install -c -m freebsd.cf /etc/mail/sendmail.cf
> > > > > Install: Invalid file mode: freebsd.cf
> > > > > Has anyone else experienced this during their sendmail upgrade?
> > > >
> > > > Does the file /usr/share/mk/bsd.own.mk exist?
> > > >
> > > > If yes, does it contain a definition of SHAREMODE?
> > > >
> > > > % grep SHAREMODE /usr/share/mk/bsd.own.mk
> > > > # SHAREMODE ASCII text file mode. [${NOBINMODE}]
> > > > SHAREMODE?= ${NOBINMODE}
> > >
> > > It certainly does. The entry is laid out exactly as you have it above.
> > > The Makefile appears to be a binary, for reasons unknown to me, but that
> > > is besides the point. Can I just copy a new makefile over from a different
> > > box, or am I headed in the wrong direction with this?
> >
> > Have you upgraded recently?  Did you run mergemaster after installworld?
> > What is the output of the following command?
> >
> > $ diff -u /etc/mail/Makefile /usr/src/etc/mail/Makefile
>
> Yes I just upgraded last week. 4.3->RELENG_4.
>
> I did do mergemaster, but only on the password file.
> I will copy the latter file to /etc/mail and give it a test.
>
> Thanks.

Nice :)

You should really run mergemaster and let it merge all the necessary
changes to /etc though.  Not just the password file.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: Sendmail config file

2003-03-10 Thread IAccounts
> > > > # install -c -m freebsd.cf /etc/mail/sendmail.cf
> > > > Install: Invalid file mode: freebsd.cf
> > > > Has anyone else experienced this during their sendmail upgrade?
> > >
> > > Does the file /usr/share/mk/bsd.own.mk exist?
> > >
> > > If yes, does it contain a definition of SHAREMODE?
> > >
> > >   % grep SHAREMODE /usr/share/mk/bsd.own.mk
> > >   # SHAREMODE ASCII text file mode. [${NOBINMODE}]
> > >   SHAREMODE?= ${NOBINMODE}
> >
> > It certainly does. The entry is laid out exactly as you have it above.
> > The Makefile appears to be a binary, for reasons unknown to me, but that
> > is besides the point. Can I just copy a new makefile over from a different
> > box, or am I headed in the wrong direction with this?
>
> Have you upgraded recently?  Did you run mergemaster after installworld?
>
> What is the output of the following command?
>
>   $ diff -u /etc/mail/Makefile /usr/src/etc/mail/Makefile

Sorry, the output is 'Binary files differ'. The /etc/mail Makefile is
binary, the former is not.

The copy of the new Makefile did not work, It states that it 'Do not know
how to make freebsd.submit.cf'. By driving through mergemaster, I can see
that I will destroy what is working of sendmail :o)

Is there any reason that I can't stay with the old config files? I can't
afford to break sendmail at this time. If it is not a security risk to
remain with old config files against the newest binary, I will just leave
it sit for now until I can dig up more info.

Tks.

>
> - Giorgos
>
>
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
>


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: Sendmail config file

2003-03-10 Thread IAccounts
> > > > # install -c -m freebsd.cf /etc/mail/sendmail.cf
> > > > Install: Invalid file mode: freebsd.cf
> > > > Has anyone else experienced this during their sendmail upgrade?
> > >
> > > Does the file /usr/share/mk/bsd.own.mk exist?
> > >
> > > If yes, does it contain a definition of SHAREMODE?
> > >
> > >   % grep SHAREMODE /usr/share/mk/bsd.own.mk
> > >   # SHAREMODE ASCII text file mode. [${NOBINMODE}]
> > >   SHAREMODE?= ${NOBINMODE}
> >
> > It certainly does. The entry is laid out exactly as you have it above.
> > The Makefile appears to be a binary, for reasons unknown to me, but that
> > is besides the point. Can I just copy a new makefile over from a different
> > box, or am I headed in the wrong direction with this?
>
> Have you upgraded recently?  Did you run mergemaster after installworld?

Yes I just upgraded last week. 4.3->RELENG_4.

I did do mergemaster, but only on the password file.
I will copy the latter file to /etc/mail and give it a test.

Thanks.

>
> What is the output of the following command?
>
>   $ diff -u /etc/mail/Makefile /usr/src/etc/mail/Makefile



>
> - Giorgos
>
>
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
>


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: Sendmail config file

2003-03-10 Thread Giorgos Keramidas
On 2003-03-10 09:59, IAccounts <[EMAIL PROTECTED]> wrote:
> > > # install -c -m freebsd.cf /etc/mail/sendmail.cf
> > > Install: Invalid file mode: freebsd.cf
> > > Has anyone else experienced this during their sendmail upgrade?
> >
> > Does the file /usr/share/mk/bsd.own.mk exist?
> >
> > If yes, does it contain a definition of SHAREMODE?
> >
> > % grep SHAREMODE /usr/share/mk/bsd.own.mk
> > # SHAREMODE ASCII text file mode. [${NOBINMODE}]
> > SHAREMODE?= ${NOBINMODE}
>
> It certainly does. The entry is laid out exactly as you have it above.
> The Makefile appears to be a binary, for reasons unknown to me, but that
> is besides the point. Can I just copy a new makefile over from a different
> box, or am I headed in the wrong direction with this?

Have you upgraded recently?  Did you run mergemaster after installworld?

What is the output of the following command?

$ diff -u /etc/mail/Makefile /usr/src/etc/mail/Makefile

- Giorgos


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: Sendmail config file

2003-03-10 Thread IAccounts
> > # install -c -m freebsd.cf /etc/mail/sendmail.cf
> > Install: Invalid file mode: freebsd.cf
> > Has anyone else experienced this during their sendmail upgrade?

>
> Does the file /usr/share/mk/bsd.own.mk exist?
>
> If yes, does it contain a definition of SHAREMODE?
>
>   % grep SHAREMODE /usr/share/mk/bsd.own.mk
>   # SHAREMODE ASCII text file mode. [${NOBINMODE}]
>   SHAREMODE?= ${NOBINMODE}

It certainly does. The entry is laid out exactly as you have it above.
The Makefile appears to be a binary, for reasons unknown to me, but that
is besides the point. Can I just copy a new makefile over from a different
box, or am I headed in the wrong direction with this?

Tks.


>
> - Giorgos
>
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-questions" in the body of the message
>


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: Sendmail config file

2003-03-08 Thread Peter Wu
IAccounts <[EMAIL PROTECTED]> writes:

> This same question was asked yesterday (I think), but I accidently deleted
> the thread, and it hasnt hit the archives yet.
>
> I have upgraded from 4.3 to 4.8, and a telnet to sendmail states
> 8.12.8/8.11.3.
>
> Someone had responded on how to upgrade just the .cf to reflect the new
> binary version. Could someone please either post the response, or send it
> to me personally?

As root:

   # cd /etc/mail   
   # make cf
   # make install
   # make restart

Hope this helps.

-- 
Peter Wu
Powered by FreeBSD 4.8-RC

This posting is provided "AS IS" with no warranties, and confers no rights.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: Sendmail config file

2003-03-07 Thread Giorgos Keramidas
On 2003-03-07 12:43, IAccounts <[EMAIL PROTECTED]> wrote:
> > # cd /etc/mail
> > # tar cf - *.cf | gzip -9c - > oldcf.tar.gz
> >
> > Then regenerate all the *.cf files:
> >
> > # make cf
> >
> > Install them as sendmail.cf and submit.cf:
> >
> > # make install
> >
>
> At this point it fails with:
>
> # install -c -m freebsd.cf /etc/mail/sendmail.cf
> Install: Invalid file mode: freebsd.cf
>
> I have tried all manner of file permissions, as I am assuming that they
> this is what is referred to by mode.
>
> Has anyone else experienced this during their sendmail upgrade?

Does the file /usr/share/mk/bsd.own.mk exist?

If yes, does it contain a definition of SHAREMODE?

% grep SHAREMODE /usr/share/mk/bsd.own.mk
# SHAREMODE ASCII text file mode. [${NOBINMODE}]
SHAREMODE?= ${NOBINMODE}

- Giorgos

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Re: Sendmail config file

2003-03-07 Thread IAccounts
> # cd /etc/mail
> # tar cf - *.cf | gzip -9c - > oldcf.tar.gz
>
> Then regenerate all the *.cf files:
>
> # make cf
>
> Install them as sendmail.cf and submit.cf:
>
> # make install
>

At this point it fails with:

# install -c -m freebsd.cf /etc/mail/sendmail.cf
Install: Invalid file mode: freebsd.cf

I have tried all manner of file permissions, as I am assuming that they
this is what is referred to by mode.

Has anyone else experienced this during their sendmail upgrade?

Steve

> Restart sendmail:
>
> # make restart
>
> and you should be set to go.
>
> : If anything seems to fail for you after this remake of the *.cf
> : files, just enter /etc/mail and restore from the backup copy:
> :
> :   # cd /etc/mail
> :   # zcat oldcf.tar.gz | tar xf -
>
>


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message


Sendmail config file

2003-03-07 Thread IAccounts
This same question was asked yesterday (I think), but I accidently deleted
the thread, and it hasnt hit the archives yet.

I have upgraded from 4.3 to 4.8, and a telnet to sendmail states
8.12.8/8.11.3.

Someone had responded on how to upgrade just the .cf to reflect the new
binary version. Could someone please either post the response, or send it
to me personally?

Tks.

Steve


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message