SendMail Help!

2006-03-17 Thread Efren Bravo
Hi,

 My sendmail:
 # /usr/sbin/sendmail -d0.1 -bt /dev/null
Version 8.13.4
 Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS
MILTER MIME7TO8 MIME8TO7
NAMED_BIND NETINET NETINET6
NETUNIX NEWDB NIS PIPELINING SCANF
STARTTLS TCPWRAPPERS USERDB
XDEBUG

 SYSTEM IDENTITY (after readcf)

  (short domain name) $w = mailsrv
  (canonical domain name) $j =
mailsrv.sub.dom.com
 (subdomain name) $m = sub.dom.com
  (node name) $k =
mailsrv.sub.dom.com


ADDRESS TEST MODE (ruleset 3 NOT automatically
invoked)
Enter ruleset address


 What do I've to change so that:

 -My Domain Name (must be sub.dom.com)?
 -Bind sendmail to an IP?
 -Setup my sendmail to deliver the mails to
another mail server(dom.com)?

Thanks...

Efren Bravo.



__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: SendMail Help!

2006-03-17 Thread Steve Bertrand

  What do I've to change so that:
 
  -My Domain Name (must be sub.dom.com)?

Don't quite understand what you are getting at here.

  -Bind sendmail to an IP?

Here is a pretty good document I found that describes how to bind only
to loopback address, but I'm sure you could hack it to force it to
listen to a different address instead. It also explains rebuilding your
cf file from mc.

http://www.chinalinuxpub.com/doc/www.siliconvalleyccie.com/linux-hn/send
mail.htm

  -Setup my sendmail to deliver the mails to another mail 
 server(dom.com)?

Check out the mailertable.sample file. I believe that it is there where
you will alias the subdomain to another location.

Create a new mailertable file, then whilst in your mail directory
(usually /etc/mail), just type make, or:

# makemap hash mailertable  mailertable

HTH,

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 help needed

2005-07-29 Thread Alexandre Vieira
Hello,

Thanks for the help.

The thing is that our main mailserver is not able to work with reports
from only one address. It has a db with some names that match
[EMAIL PROTECTED] and then send the reports to the respective
persons/mailing lists.
So the basics of the question is: Is it possible to get every mail
(including local mail) redirected to one domain with MX lookup? I've
been reading about LUSER_RELAY, LOCAL_RELAY, stickyhost, but I don't
know if this will solve the problem.

On 7/28/05, Glenn Dawson [EMAIL PROTECTED] wrote:
 At 03:17 PM 7/28/2005, Alexandre Vieira wrote:
 Hello folks,
 
 I'm trying to get past a standard in sendmail which is very simple.
 
 I have several machines reporting mails trough local MTA's (sendmail)
 in each one of the boxes to our main mailserver. The thing is, I did
 not developed the scripts and they are using mailx -s subj user
 which normally would try to deliver it to a local account in the
 machine. So the question is: Can I, in any way, define that every
 user passed on the mailx in every script gets resolved to
 [EMAIL PROTECTED] and not to a local system account? We have
 hundreds of names in the scripts, so aliasing doesn't work for me.
 
 If you don't _ever_ want things to be delivered locally, you can create
 what sendmail calls a null client.  That will send all mail to the address
 you specify.  You can get more details from /usr/share/sendmail/cf/README
 
 -Glenn
 
 
 My current hack is defining DR and DS in the sendmail.cf to a static
 hostname but that takes redundancy to our mail system since if the
 main mailserver is down the backup mail server (higher MX) won't take
 any effect.
 
 Any help apreciated
 Cheers
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
 

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


Re: Sendmail help needed

2005-07-29 Thread Alexandre Vieira
Hello Glenn,

The odds of the reporting system are not of my fully knowledge, I just
know how and what mails go from where to who.

Imagine that a script on a reporting machine does this:

# mailx -s ERROR_FOUND_IN_PROC_SYNC syncproj

It will try to deliver the mail locally, as suposed to. If I define a
central hub or a Smart host it will deliver the mail I exampled to
[EMAIL PROTECTED] and it works fine. The problem is that it won't
lookup the mailhub MX record, It will send it directly to mailhub:25.
Now imagine that mailhub is down? There is a backup server listed as
an MX record for the mailhub domain with a higher pref that would take
the work while mailhub prefered MX is down.

I've been reading a little more and I think there is some kind of
feature/option that force a MX lookup on the mailhub host.

Thank you

On 7/29/05, Glenn Dawson [EMAIL PROTECTED] wrote:
 At 12:30 AM 7/29/2005, you wrote:
 Hello,
 
 Thanks for the help.
 
 The thing is that our main mailserver is not able to work with reports
 from only one address. It has a db with some names that match
 [EMAIL PROTECTED] and then send the reports to the respective
 persons/mailing lists.
 So the basics of the question is: Is it possible to get every mail
 (including local mail) redirected to one domain with MX lookup? I've
 been reading about LUSER_RELAY, LOCAL_RELAY, stickyhost, but I don't
 know if this will solve the problem.
 
 ok, lets see if I understand this correctly...
 
 You have an existing mail server that handles mail for you local network.
 Some of the mail sent to that server is compared to a database which has
 entries that look like [EMAIL PROTECTED]  If a match is found,
 the message is redistributed to some list of email addresses.  So far so
 good? hope so...
 
 The addresses that are looked at for a match, are they the from address or
 the to address?
 
 For example, I send an email to you mail server using the address
 [EMAIL PROTECTED]  Since I sent the email, it looks like it came from
 [EMAIL PROTECTED]  One of those two addresses are compared to a
 database to decide what to do with the message.  From your description, it
 sounds like the To: address is the one being looked at by the mail server.
 
 Local mail is normally considered to be mail between two addresses which
 are on the same machine.  The from and to addresses for the local mail can
 have only account names, or, one or both could have a domain associated
 with it.  Potentially, mail between the following pairs of addresses could
 all be local:
 
 From:   To:
 foo bar
 [EMAIL PROTECTED]bar
 foo [EMAIL PROTECTED]
 
  From your description above, it sounds like you're looking at mail that is
 always delivered to the same address on the mail server, and then you're
 using the address the mail was from to decide what to do with it.  Is that
 correct?
 
  From the description below (from the original email) it sounds like the
 scripts in question are running on machines that are not the mail server,
 and they're only specifying the username to deliver to, and not adding any
 domain name or hostname to the recipient.  Depending on what else is
 happening on the machines that have the scripts that generate the mail, it
 sounds like building a null client is probably the simplest thing to
 do.  Other options are using some of the masquerading features, or by using
 LOCAL_RELAY to force unqualified names to be send to a central server which
 will figure out what to do with them.
 
 Hope some of that helps...Let me know if I can clarify anything, I'll be
 around for at least another few hours...
 
 -Glenn
 
 
 On 7/28/05, Glenn Dawson [EMAIL PROTECTED] wrote:
   At 03:17 PM 7/28/2005, Alexandre Vieira wrote:
   Hello folks,
   
   I'm trying to get past a standard in sendmail which is very simple.
   
   I have several machines reporting mails trough local MTA's (sendmail)
   in each one of the boxes to our main mailserver. The thing is, I did
   not developed the scripts and they are using mailx -s subj user
   which normally would try to deliver it to a local account in the
   machine. So the question is: Can I, in any way, define that every
   user passed on the mailx in every script gets resolved to
   [EMAIL PROTECTED] and not to a local system account? We have
   hundreds of names in the scripts, so aliasing doesn't work for me.
  
   If you don't _ever_ want things to be delivered locally, you can create
   what sendmail calls a null client.  That will send all mail to the address
   you specify.  You can get more details from /usr/share/sendmail/cf/README
  
   -Glenn
  
  
   My current hack is defining DR and DS in the sendmail.cf to a static
   hostname but that takes redundancy to our mail system since if the
   main mailserver is down the backup mail server (higher MX) won't take
   any effect.
   
   Any help apreciated
   Cheers
   ___
   

Re: Sendmail help needed

2005-07-29 Thread Glenn Dawson

At 01:48 AM 7/29/2005, Alexandre Vieira wrote:

Hello Glenn,

The odds of the reporting system are not of my fully knowledge, I just
know how and what mails go from where to who.

Imagine that a script on a reporting machine does this:

# mailx -s ERROR_FOUND_IN_PROC_SYNC syncproj

It will try to deliver the mail locally, as suposed to. If I define a
central hub or a Smart host it will deliver the mail I exampled to
[EMAIL PROTECTED] and it works fine. The problem is that it won't
lookup the mailhub MX record, It will send it directly to mailhub:25.
Now imagine that mailhub is down? There is a backup server listed as
an MX record for the mailhub domain with a higher pref that would take
the work while mailhub prefered MX is down.


If that's all you're worried about, you don't have to worry.  If you 
specify a smart host and it's not available, the mail will get queued 
locally until it is available.  The default settings will hold it in the 
queue for 5 days.  If your smart host is down for that long, you probably 
have other things to worry about.


-Glenn



I've been reading a little more and I think there is some kind of
feature/option that force a MX lookup on the mailhub host.

Thank you

On 7/29/05, Glenn Dawson [EMAIL PROTECTED] wrote:
 At 12:30 AM 7/29/2005, you wrote:
 Hello,
 
 Thanks for the help.
 
 The thing is that our main mailserver is not able to work with reports
 from only one address. It has a db with some names that match
 [EMAIL PROTECTED] and then send the reports to the respective
 persons/mailing lists.
 So the basics of the question is: Is it possible to get every mail
 (including local mail) redirected to one domain with MX lookup? I've
 been reading about LUSER_RELAY, LOCAL_RELAY, stickyhost, but I don't
 know if this will solve the problem.

 ok, lets see if I understand this correctly...

 You have an existing mail server that handles mail for you local network.
 Some of the mail sent to that server is compared to a database which has
 entries that look like [EMAIL PROTECTED]  If a match is found,
 the message is redistributed to some list of email addresses.  So far so
 good? hope so...

 The addresses that are looked at for a match, are they the from address or
 the to address?

 For example, I send an email to you mail server using the address
 [EMAIL PROTECTED]  Since I sent the email, it looks like it came from
 [EMAIL PROTECTED]  One of those two addresses are compared to a
 database to decide what to do with the message.  From your description, it
 sounds like the To: address is the one being looked at by the mail server.

 Local mail is normally considered to be mail between two addresses which
 are on the same machine.  The from and to addresses for the local mail can
 have only account names, or, one or both could have a domain associated
 with it.  Potentially, mail between the following pairs of addresses could
 all be local:

 From:   To:
 foo bar
 [EMAIL PROTECTED]bar
 foo [EMAIL PROTECTED]

  From your description above, it sounds like you're looking at mail that is
 always delivered to the same address on the mail server, and then you're
 using the address the mail was from to decide what to do with it.  Is that
 correct?

  From the description below (from the original email) it sounds like the
 scripts in question are running on machines that are not the mail server,
 and they're only specifying the username to deliver to, and not adding any
 domain name or hostname to the recipient.  Depending on what else is
 happening on the machines that have the scripts that generate the mail, it
 sounds like building a null client is probably the simplest thing to
 do.  Other options are using some of the masquerading features, or by using
 LOCAL_RELAY to force unqualified names to be send to a central server which
 will figure out what to do with them.

 Hope some of that helps...Let me know if I can clarify anything, I'll be
 around for at least another few hours...

 -Glenn


 On 7/28/05, Glenn Dawson [EMAIL PROTECTED] wrote:
   At 03:17 PM 7/28/2005, Alexandre Vieira wrote:
   Hello folks,
   
   I'm trying to get past a standard in sendmail which is very simple.
   
   I have several machines reporting mails trough local MTA's (sendmail)
   in each one of the boxes to our main mailserver. The thing is, I did
   not developed the scripts and they are using mailx -s subj user
   which normally would try to deliver it to a local account in the
   machine. So the question is: Can I, in any way, define that every
   user passed on the mailx in every script gets resolved to
   [EMAIL PROTECTED] and not to a local system account? We have
   hundreds of names in the scripts, so aliasing doesn't work for me.
  
   If you don't _ever_ want things to be delivered locally, you can create
   what sendmail calls a null client.  That will send all mail to the 
address
   you specify.  You can get more details 

Re: Sendmail help needed

2005-07-29 Thread Alexandre Vieira
Hello Glenn,

Thanks for your time.

Well it is actually an issue. The reports are very important for our
departments. They do not have access to see if the procedures went OK
and as consequence they can't continue to work.

If I can't get this to work with redundancy I will have to make some
kind of script to change the A record for the mailhub, in our
nameserver, when it's down so the backup mailserver can get with it's
work.

Any help on this issue is apreciated.

On 7/29/05, Glenn Dawson [EMAIL PROTECTED] wrote:
 At 01:48 AM 7/29/2005, Alexandre Vieira wrote:
 Hello Glenn,
 
 The odds of the reporting system are not of my fully knowledge, I just
 know how and what mails go from where to who.
 
 Imagine that a script on a reporting machine does this:
 
 # mailx -s ERROR_FOUND_IN_PROC_SYNC syncproj
 
 It will try to deliver the mail locally, as suposed to. If I define a
 central hub or a Smart host it will deliver the mail I exampled to
 [EMAIL PROTECTED] and it works fine. The problem is that it won't
 lookup the mailhub MX record, It will send it directly to mailhub:25.
 Now imagine that mailhub is down? There is a backup server listed as
 an MX record for the mailhub domain with a higher pref that would take
 the work while mailhub prefered MX is down.
 
 If that's all you're worried about, you don't have to worry.  If you
 specify a smart host and it's not available, the mail will get queued
 locally until it is available.  The default settings will hold it in the
 queue for 5 days.  If your smart host is down for that long, you probably
 have other things to worry about.
 
 -Glenn
 
 
 I've been reading a little more and I think there is some kind of
 feature/option that force a MX lookup on the mailhub host.
 
 Thank you
 
 On 7/29/05, Glenn Dawson [EMAIL PROTECTED] wrote:
   At 12:30 AM 7/29/2005, you wrote:
   Hello,
   
   Thanks for the help.
   
   The thing is that our main mailserver is not able to work with reports
   from only one address. It has a db with some names that match
   [EMAIL PROTECTED] and then send the reports to the respective
   persons/mailing lists.
   So the basics of the question is: Is it possible to get every mail
   (including local mail) redirected to one domain with MX lookup? I've
   been reading about LUSER_RELAY, LOCAL_RELAY, stickyhost, but I don't
   know if this will solve the problem.
  
   ok, lets see if I understand this correctly...
  
   You have an existing mail server that handles mail for you local network.
   Some of the mail sent to that server is compared to a database which has
   entries that look like [EMAIL PROTECTED]  If a match is found,
   the message is redistributed to some list of email addresses.  So far so
   good? hope so...
  
   The addresses that are looked at for a match, are they the from address or
   the to address?
  
   For example, I send an email to you mail server using the address
   [EMAIL PROTECTED]  Since I sent the email, it looks like it came from
   [EMAIL PROTECTED]  One of those two addresses are compared to a
   database to decide what to do with the message.  From your description, it
   sounds like the To: address is the one being looked at by the mail server.
  
   Local mail is normally considered to be mail between two addresses which
   are on the same machine.  The from and to addresses for the local mail can
   have only account names, or, one or both could have a domain associated
   with it.  Potentially, mail between the following pairs of addresses could
   all be local:
  
   From:   To:
   foo bar
   [EMAIL PROTECTED]bar
   foo [EMAIL PROTECTED]
  
From your description above, it sounds like you're looking at mail that 
   is
   always delivered to the same address on the mail server, and then you're
   using the address the mail was from to decide what to do with it.  Is that
   correct?
  
From the description below (from the original email) it sounds like the
   scripts in question are running on machines that are not the mail server,
   and they're only specifying the username to deliver to, and not adding any
   domain name or hostname to the recipient.  Depending on what else is
   happening on the machines that have the scripts that generate the mail, it
   sounds like building a null client is probably the simplest thing to
   do.  Other options are using some of the masquerading features, or by 
   using
   LOCAL_RELAY to force unqualified names to be send to a central server 
   which
   will figure out what to do with them.
  
   Hope some of that helps...Let me know if I can clarify anything, I'll be
   around for at least another few hours...
  
   -Glenn
  
  
   On 7/28/05, Glenn Dawson [EMAIL PROTECTED] wrote:
 At 03:17 PM 7/28/2005, Alexandre Vieira wrote:
 Hello folks,
 
 I'm trying to get past a standard in sendmail which is very simple.
 
 I have several machines reporting mails 

Sendmail help needed

2005-07-28 Thread Alexandre Vieira
Hello folks,

I'm trying to get past a standard in sendmail which is very simple. 

I have several machines reporting mails trough local MTA's (sendmail)
in each one of the boxes to our main mailserver. The thing is, I did
not developed the scripts and they are using mailx -s subj user
which normally would try to deliver it to a local account in the
machine. So the question is: Can I, in any way, define that every
user passed on the mailx in every script gets resolved to
[EMAIL PROTECTED] and not to a local system account? We have
hundreds of names in the scripts, so aliasing doesn't work for me.

My current hack is defining DR and DS in the sendmail.cf to a static
hostname but that takes redundancy to our mail system since if the
main mailserver is down the backup mail server (higher MX) won't take
any effect.

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


Re: Sendmail help needed

2005-07-28 Thread Glenn Dawson

At 03:17 PM 7/28/2005, Alexandre Vieira wrote:

Hello folks,

I'm trying to get past a standard in sendmail which is very simple.

I have several machines reporting mails trough local MTA's (sendmail)
in each one of the boxes to our main mailserver. The thing is, I did
not developed the scripts and they are using mailx -s subj user
which normally would try to deliver it to a local account in the
machine. So the question is: Can I, in any way, define that every
user passed on the mailx in every script gets resolved to
[EMAIL PROTECTED] and not to a local system account? We have
hundreds of names in the scripts, so aliasing doesn't work for me.


If you don't _ever_ want things to be delivered locally, you can create 
what sendmail calls a null client.  That will send all mail to the address 
you specify.  You can get more details from /usr/share/sendmail/cf/README


-Glenn



My current hack is defining DR and DS in the sendmail.cf to a static
hostname but that takes redundancy to our mail system since if the
main mailserver is down the backup mail server (higher MX) won't take
any effect.

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


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


Re: sendmail help needed!!!

2004-08-27 Thread Ed Budd
Hussain Umair wrote:
hi all,
   im tryin to get my bsd box to run as an email server on my local lan, 
squid is already running perfectly on that but my lan clients cannot 
retrieve their mails through pop or smtp...ive tried everything but im 
getting nowhere my bsd box has an ip 192.168.1.125 and the other one is 
a static given to me by my service provider ...now ive installed 
sendmail and qpopper but nothing seems to be working for me...and my lan 
users cannot recieve their mails from yahoo or hotmail on their outlook 
express...so kindly if any one has ne ideas to help me out here id b 
greatfull ...config's might help alot...thanks in advance...chao


First, take a deep breath. Then pour yourself a strong cup of coffee (or 
whatever helps you stay lucid) and head over to http://www.sendmail.org 
and do some serious reading. Start with the FAQ and the Email 
Explained document so you understand the fundamentals and how the 
different parts are supposed to work. Do the same for Qpopper.

Expect to invest considerable effort (read: time) into learning this. 
Start by articulating precisely what you expect from your mail server 
then come back here and ask a *specific* question that those with more 
experience might be motivated to answer. Be prepared to provide details 
on steps you've taken to install and configure the appropriate 
components as well as specific error messages, contents of log files, 
etc. that seem pertinent to troubleshooting your problem (as *you* 
perceive it; hence the suggestion on articulating expectations above).

Remember: the quality of what you'll get back is (usually) directly 
proportional to what you put in...

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


sendmail help needed!!!

2004-08-26 Thread Hussain Umair
hi all,
   im tryin to get my bsd box to run as an email server on my local lan, 
squid is already running perfectly on that but my lan clients cannot 
retrieve their mails through pop or smtp...ive tried everything but im 
getting nowhere my bsd box has an ip 192.168.1.125 and the other one is a 
static given to me by my service provider ...now ive installed sendmail and 
qpopper but nothing seems to be working for me...and my lan users cannot 
recieve their mails from yahoo or hotmail on their outlook express...so 
kindly if any one has ne ideas to help me out here id b greatfull 
...config's might help alot...thanks in advance...chao

_
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail

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


Re: sendmail help needed!!!

2004-08-26 Thread Subhro
On Fri, 27 Aug 2004 03:43:18 +0500, Hussain Umair
[EMAIL PROTECTED] wrote:
 hi all,
im tryin to get my bsd box to run as an email server on my local lan,
 squid is already running perfectly on that but my lan clients cannot
 retrieve their mails through pop or smtp

As far as I know squid is a proxy server and has nothing to do with
SMTP, POP etc.

...ive tried everything but im
 getting nowhere my bsd box has an ip 192.168.1.125 and the other one is a
 static given to me by my service provider ...now ive installed sendmail and
 qpopper but nothing seems to be working for me...and my lan users cannot
 recieve their mails from yahoo or hotmail on their outlook express...so

If you are trying to allow users to access their YAHOO! or Hotmail
account through your sendmail setup, then its quite unfortunate that
it CANT be done. However if your user does have a pay account from
YAHOO! then he can get things working with POP3. You need to fetch
the mail from the remote YAHOO! mailbox to your local mail server.
For that use something like fetchmail (cd /usr/ports, make search
key=fetchmail | more). Then you can further distribute the mail using
Qpopper. Also you need to run a SMTP relay to let the user mail out.
But that is definitely not a good idea because almost all mail servers
check the reverse DNS before accepting mails and thus most likely the
mails would be rejected or delivered as spam to the target accounts.
For Outlook to work normally you coould set up a NAT. Refer to the
handbook for the nitty gritty details.


 kindly if any one has ne ideas to help me out here id b greatfull
 config's might help alot...thanks in advance...chao


You have the ideas now. Implementation is yours =)

Regards
S.
 
--
Subhro Sankha Kar
School of Information Technology
Block AQ-13/1 Sector V
ZIP 700091
India
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Off topic but sendmail help needed

2004-04-11 Thread Malcolm Kay
On Sunday 11 April 2004 07:02, Rob wrote:
 That's really strange then. The Makefile is right there in the /etc/mail
 directory and this is what it looks like:


 # $FreeBSD: src/contrib/sendmail/etc.mail/Makefile,v 1.1 2000/07/07
 21:06:52 qzhou Exp $

 all: access.db mailertable.db virtusertable.db catchall.db aliases.db

Your Makefile does not contain an install target.

From the date in the header I would guess this corresponds to around
FreeBSD release 4.2.

It would seem yu don't need:
# make install
but:
# make
should be sufficient;
or if you wish to be specific/pedantic:
# make all

Malcolm

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


Re: Off topic but sendmail help needed

2004-04-11 Thread Malcolm Kay
On Sunday 11 April 2004 10:40, Rob wrote:
 It does nothing at all, just right back to the prompt. I think Warren has
 found the answer to the problem.

I think it probably has done something. But traditional BSD utilities 
don't flash lights or make a song and dance unless something
is wrong.

See what files in the directory now have a recent time and date.

Malcolm


 -Original Message-
 From: [EMAIL PROTECTED]


 What does it tell you when you just do make?




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


Re: Off topic but sendmail help needed

2004-04-11 Thread Matthew Seaman
On Sat, Apr 10, 2004 at 09:10:11PM -0400, Rob wrote:
 Yeah, I believe it's 4.4 and I've been on this server for years. They are
 supposed to take care of the upgrades but they never do. I would do it
 myself but if anything goes wrong they charge to fix it and so I've pretty
 much left it alone up until now. I'll probably end up switching providers in
 a few weeks so I may have a shot at the upgrades next weekend.

In which case you're runnning a system with an old and vulnerable
version of sendmail.

Recommend you update as a matter of priority.

In order to generate the sendmail.cf that you need, the command to use
is:

# cd /etc/mail
# m4 -D_CF_DIR=/usr/share/sendmail/cf/ /usr/share/sendmail/cf/m4/cf.m4 foo.mc  
foo.cf

assuming that you have a load of sendmail related .m4 files under
/usr/share/sendmail/cf -- you may have to substitute
/usr/src/contrib/sendmail/cf instead.

Then, once you're happy that it's generated a reasonable sendmail
configuration file, copy foo.cf to sendmail.cf and restart 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


RE: Off topic but sendmail help needed

2004-04-11 Thread Rob
Actually, when I do a make or make all, it appears as if nothing was done
and when I check in the /etc/mail dir, none of the dates or times have
changed. It may have done something but I can't see what it is.

Rob.



See what files in the directory now have a recent time and date.

Malcolm


 -Original Message-
 From: [EMAIL PROTECTED]


 What does it tell you when you just do make?




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


RE: Off topic but sendmail help needed

2004-04-11 Thread Rob
When I try this, I get the error:

m4: ../m4/cfhead.m4: No such file or directory

So I looked for m4 and it appears to be in /usr/bin/

so I run:

%/usr/bin/m4 -D_CF_DIR=/usr/share/sendmail/cf/
/usr/share/sendmail/cf/m4/cf.m4 freebsd.mc  foo.cf

and get the same error.

Is it telling me that m4 is not there or cfhead.m4 is missing. cfhead is
located here:

/usr/share/sendmail/cf/m4/cfhead.m4


-Original Message-
From: Matthew Seaman [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 11, 2004 4:09 AM
To: Rob
Cc: [EMAIL PROTECTED]
Subject: Re: Off topic but sendmail help needed


In order to generate the sendmail.cf that you need, the command to use
is:

# cd /etc/mail
# m4 -D_CF_DIR=/usr/share/sendmail/cf/ /usr/share/sendmail/cf/m4/cf.m4
foo.mc  foo.cf

assuming that you have a load of sendmail related .m4 files under
/usr/share/sendmail/cf -- you may have to substitute
/usr/src/contrib/sendmail/cf instead.

Then, once you're happy that it's generated a reasonable sendmail
configuration file, copy foo.cf to sendmail.cf and restart sendmail.


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


Re: Off topic but sendmail help needed

2004-04-11 Thread Matthew Seaman
On Sun, Apr 11, 2004 at 11:01:51AM -0400, Rob wrote:
 When I try this, I get the error:
 
 m4: ../m4/cfhead.m4: No such file or directory
 
 So I looked for m4 and it appears to be in /usr/bin/
 
 so I run:
 
 %/usr/bin/m4 -D_CF_DIR=/usr/share/sendmail/cf/
 /usr/share/sendmail/cf/m4/cf.m4 freebsd.mc  foo.cf
 
 and get the same error.
 
 Is it telling me that m4 is not there or cfhead.m4 is missing. cfhead is
 located here:
 
 /usr/share/sendmail/cf/m4/cfhead.m4

It appears that the sendmail version you're trying to use is too old
for the required functionality using _CF_DIR to be present in the .m4
files.

However, all is not lost.  You should be able to do:

# cp foo.mc /usr/share/sendmail/cf/cf/
# cd /usr/share/sendmail/cf/cf/
# m4 ../m4/cf.m4 foo.mc  foo.cf
# cp foo.cf /etc/mail

But like I said, upgrade as soon as you can.

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


RE: Off topic but sendmail help needed

2004-04-11 Thread Rob
Ahhh... brilliant.. worked like a charm.

Thanks Matthew and everyone else who helped. Much appreciated.

I will also get sendmail upgraded as soon as I can.

Thanks again.

Rob.


It appears that the sendmail version you're trying to use is too old
for the required functionality using _CF_DIR to be present in the .m4
files.

However, all is not lost.  You should be able to do:

# cp foo.mc /usr/share/sendmail/cf/cf/
# cd /usr/share/sendmail/cf/cf/
# m4 ../m4/cf.m4 foo.mc  foo.cf
# cp foo.cf /etc/mail

But like I said, upgrade as soon as you can.

   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

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


Off topic but sendmail help needed

2004-04-10 Thread Rob
I have a freebsd box that was configured by Interland. They offer no support
on sendmail configuration and I would like to add some of the dnsbl lists to
stop some of the spam received by the server.

I have looked over the sendmail.org site and now I think I'm even dumber
that I was before.

I have tried all kinds of iterations of:

/m4 /etc/mail/freebsd.mc  sendmail.cf

and have had no luck in generating a working sendmail.cf file. My current
sendmail.cf file is 45k ish and every time I attempt generating a new one it
never gets above .5k. I am using the freebsd.mc file they told me I needed
to use.

Can someone point me in the right direction so I can get this working.

Thanks.

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


Re: Off topic but sendmail help needed

2004-04-10 Thread jan . muenther
 Can someone point me in the right direction so I can get this working.

Just use the Makefile in /etc/mail (or switch to postfix, cough).
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Off topic but sendmail help needed

2004-04-10 Thread Rob
Yeah, I tried that... I just got an 'unable to make error.

At this point, postfix is looking very attractive.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 10, 2004 4:42 PM
To: Rob
Cc: [EMAIL PROTECTED]
Subject: Re: Off topic but sendmail help needed


 Can someone point me in the right direction so I can get this working.

Just use the Makefile in /etc/mail (or switch to postfix, cough).

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


RE: Off topic but sendmail help needed

2004-04-10 Thread J.D. Bronson
At 04:07 PM 4/10/2004, you wrote:
Yeah, I tried that... I just got an 'unable to make error.

At this point, postfix is looking very attractive.
Postfix is very easy to install and configure. Sendmail is not for the 
faint of heart. However, once you learn how to use m4 to make sendmail.cf 
it really becomes trivial. This seems to be the most difficulty people end 
up having.

Perhaps a post to the sendmail newsgroup (or google) could help.

I personally dont use ports or packages - as I compile everything from 
scratch...so I wont be the best person to ask.

But seriously, it is not all that difficult.

If you dont have time, postfix is an excellent alternate MTA.

 -Jeff 

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


Re: Off topic but sendmail help needed

2004-04-10 Thread Warren Block
On Sat, 10 Apr 2004, Rob wrote:

 I have a freebsd box that was configured by Interland. They offer no support
 on sendmail configuration and I would like to add some of the dnsbl lists to
 stop some of the spam received by the server.

The FreeBSD /etc/mail/Makefile makes this pretty easy.

Edit the /etc/mail/hostname.mc file.  If you don't have one, I think the
first make will create it.  Add this type of line for the DNSBLs you
want to use (warning: one long line):

FEATURE(`dnsbl', `list.dsbl.org', `554 Mail from  ${client_addr}  rejected, site 
listed on http://www.dsbl.org;')

Important note: please don't use any DNSBL without at least reading
their policies.  Misunderstanding are way too easy to make.

Then do a 'make all install restart' and it's done.

-Warren Block * Rapid City, South Dakota USA
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Off topic but sendmail help needed

2004-04-10 Thread Rob
Thanks for the help,

I have got my mc file all ready to go with the dnsbl lines I need, but when
I try to make I get this error:

make: don't know how to make install. Stop

I've been going around in circles with this all day and it's making me nuts.
:-)


-Original Message-
From: Warren Block [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 10, 2004 5:17 PM
To: Rob
Cc: [EMAIL PROTECTED]
Subject: Re: Off topic but sendmail help needed


On Sat, 10 Apr 2004, Rob wrote:

 I have a freebsd box that was configured by Interland. They offer no
support
 on sendmail configuration and I would like to add some of the dnsbl lists
to
 stop some of the spam received by the server.

The FreeBSD /etc/mail/Makefile makes this pretty easy.

Edit the /etc/mail/hostname.mc file.  If you don't have one, I think the
first make will create it.  Add this type of line for the DNSBLs you
want to use (warning: one long line):

FEATURE(`dnsbl', `list.dsbl.org', `554 Mail from  ${client_addr} 
rejected, site listed on http://www.dsbl.org;')

Important note: please don't use any DNSBL without at least reading
their policies.  Misunderstanding are way too easy to make.

Then do a 'make all install restart' and it's done.

-Warren Block * Rapid City, South Dakota USA

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


RE: Off topic but sendmail help needed

2004-04-10 Thread Warren Block
On Sat, 10 Apr 2004, Rob wrote:

 Thanks for the help,

 I have got my mc file all ready to go with the dnsbl lines I need, but when
 I try to make I get this error:

 make: don't know how to make install. Stop

 I've been going around in circles with this all day and it's making me nuts.
 :-)

That would mean the Makefile is gone or overwritten, or you're not
in /etc/mail when you try it.  Here's the version comment from mine:

# $FreeBSD: src/etc/mail/Makefile,v 1.9.2.25 2003/07/12 23:23:46 gshapiro Exp $

-Warren Block * Rapid City, South Dakota USA
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Off topic but sendmail help needed

2004-04-10 Thread Rob
That's really strange then. The Makefile is right there in the /etc/mail
directory and this is what it looks like:


# $FreeBSD: src/contrib/sendmail/etc.mail/Makefile,v 1.1 2000/07/07 21:06:52
qzhou Exp $

all: access.db mailertable.db virtusertable.db catchall.db aliases.db

access.db: access
/usr/sbin/makemap hash access  access

virtusertable.db: virtusertable
/usr/sbin/makemap hash virtusertable  virtusertable

catchall.db: catchall
/usr/sbin/makemap hash catchall  catchall

mailertable.db: mailertable
/usr/sbin/makemap hash mailertable  mailertable

aliases.db: aliases
newaliases

mailertable:
@echo Generating empty mailertable
sed -e 's/^/#/'  mailertable.sample  mailertable

access:
@echo Generating empty access
sed -e 's/^/#/'  access.sample  access

virtusertable:
@echo Generating empty virtusertable
sed -e 's/^/#/'  virtusertable.sample  virtusertable

catchall:
@echo Generating empty catchall
sed -e 's/^/#/'  catchall.sample  catchall

clean:
rm -f access.db virtusertable.db mailertable.db catchall.db

-Original Message-
From: Warren Block [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 10, 2004 5:28 PM
To: Rob
Cc: [EMAIL PROTECTED]
Subject: RE: Off topic but sendmail help needed


On Sat, 10 Apr 2004, Rob wrote:

 Thanks for the help,

 I have got my mc file all ready to go with the dnsbl lines I need, but
when
 I try to make I get this error:

 make: don't know how to make install. Stop

 I've been going around in circles with this all day and it's making me
nuts.
 :-)

That would mean the Makefile is gone or overwritten, or you're not
in /etc/mail when you try it.  Here's the version comment from mine:

# $FreeBSD: src/etc/mail/Makefile,v 1.9.2.25 2003/07/12 23:23:46 gshapiro
Exp $

-Warren Block * Rapid City, South Dakota USA

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


RE: Off topic but sendmail help needed

2004-04-10 Thread Viktor Lazlo
On Sat, 10 Apr 2004, Rob wrote:

 Thanks for the help,

 I have got my mc file all ready to go with the dnsbl lines I need, but when
 I try to make I get this error:

 make: don't know how to make install. Stop

 I've been going around in circles with this all day and it's making me nuts.

Are you attempting to run this from /etc/mail?

Cheers,

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


RE: Off topic but sendmail help needed

2004-04-10 Thread Rob
Yes. Is this correct?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Viktor Lazlo
Sent: Saturday, April 10, 2004 5:40 PM
To: Rob
Cc: [EMAIL PROTECTED]
Subject: RE: Off topic but sendmail help needed


On Sat, 10 Apr 2004, Rob wrote:

 Thanks for the help,

 I have got my mc file all ready to go with the dnsbl lines I need, but
when
 I try to make I get this error:

 make: don't know how to make install. Stop

 I've been going around in circles with this all day and it's making me
nuts.

Are you attempting to run this from /etc/mail?

Cheers,

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

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


RE: Off topic but sendmail help needed

2004-04-10 Thread Warren Block
On Sat, 10 Apr 2004, Rob wrote:

 That's really strange then. The Makefile is right there in the /etc/mail
 directory and this is what it looks like:

 # $FreeBSD: src/contrib/sendmail/etc.mail/Makefile,v 1.1 2000/07/07 21:06:52
 qzhou Exp $

That's really old.  And it's telling you the truth--it doesn't have an
install target.  This suggests that it's time to cvsup to 4.9, or at
least something later than what you have.  What release is it, maybe 4.4
or so?

-Warren Block * Rapid City, South Dakota USA
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Off topic but sendmail help needed

2004-04-10 Thread Viktor Lazlo
On Sat, 10 Apr 2004, Rob wrote:

 Yes. Is this correct?

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of Viktor Lazlo
 Sent: Saturday, April 10, 2004 5:40 PM
 To: Rob
 Cc: [EMAIL PROTECTED]
 Subject: RE: Off topic but sendmail help needed


 On Sat, 10 Apr 2004, Rob wrote:

  Thanks for the help,
 
  I have got my mc file all ready to go with the dnsbl lines I need, but
 when
  I try to make I get this error:
 
  make: don't know how to make install. Stop
 

 Are you attempting to run this from /etc/mail?

 Cheers,

 Viktor

Yes, I just have never seen that error message before unless I was
attempting to run make outside of /etc/mail.

What does it tell you when you just do make?

Cheers,

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


RE: Off topic but sendmail help needed

2004-04-10 Thread Rob
It does nothing at all, just right back to the prompt. I think Warren has
found the answer to the problem.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Viktor Lazlo
Sent: Saturday, April 10, 2004 6:36 PM
To: Rob
Cc: [EMAIL PROTECTED]
Subject: RE: Off topic but sendmail help needed


Yes, I just have never seen that error message before unless I was
attempting to run make outside of /etc/mail.

What does it tell you when you just do make?

Cheers,

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

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


RE: Off topic but sendmail help needed

2004-04-10 Thread Rob
Yeah, I believe it's 4.4 and I've been on this server for years. They are
supposed to take care of the upgrades but they never do. I would do it
myself but if anything goes wrong they charge to fix it and so I've pretty
much left it alone up until now. I'll probably end up switching providers in
a few weeks so I may have a shot at the upgrades next weekend.

-Original Message-
From: Warren Block [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 10, 2004 6:23 PM
To: Rob
Cc: [EMAIL PROTECTED]
Subject: RE: Off topic but sendmail help needed


On Sat, 10 Apr 2004, Rob wrote:

 That's really strange then. The Makefile is right there in the /etc/mail
 directory and this is what it looks like:

 # $FreeBSD: src/contrib/sendmail/etc.mail/Makefile,v 1.1 2000/07/07
21:06:52
 qzhou Exp $

That's really old.  And it's telling you the truth--it doesn't have an
install target.  This suggests that it's time to cvsup to 4.9, or at
least something later than what you have.  What release is it, maybe 4.4
or so?

-Warren Block * Rapid City, South Dakota USA

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


RE: sendmail help?

2004-01-23 Thread Dinesh Nair

On Thu, 22 Jan 2004, fbsd_user wrote:

 totally different. I believe the original poster was asking about
 using sendmail to retrieve email from his ISP's smtp server.  And

the OP was asking about _outgoing_ smtp.

Regards,   /\_/\   All dogs go to heaven.
[EMAIL PROTECTED](0 0)http://www.alphaque.com/
+==oOO--(_)--OOo==+
| for a in past present future; do|
|   for b in clients employers associates relatives neighbours pets; do   |
|   echo The opinions here in no way reflect the opinions of my $a $b.  |
| done; done  |
+=+

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


sendmail help?

2004-01-22 Thread Adam Bozanich

Hi all.  I am having a really hard time getting sendmail to work for me.
I have a dial up DSL account that gives me an outgoing smtp account that
requires smtp authentication.

For now, I'd simply like to be able to send mail from this local machine.
I think the problem I am having is that the from: field in emails still
has my local user name, rather than the one required by my isp.

Here is the sendmail section of /etc/rc.conf:

###  Mail Transfer Agent (MTA) options  ##
##

mta_start_script=/etc/rc.sendmail
# Script to start your chosen MTA, called by /etc/rc.
# Settings for /etc/rc.sendmail:
sendmail_flags=-L sm-mta -bd  # Flags to sendmail (as a server)
sendmail_submit_enable=YES# Start a localhost-only MTA for mail submission
sendmail_submit_flags=-L sm-mta -bd -ODaemonPortOptions=Addr=localhost
# Flags for localhost-only MTA
sendmail_outbound_enable=YES  # Dequeue stuck mail (YES/NO).
sendmail_outbound_flags=-L sm-queue -q1m  # Flags to sendmail (outbound only)
sendmail_msp_queue_enable=YES # Dequeue stuck clientmqueue mail (YES/NO).
# sendmail _msp_queue_flags=-L sm-msp-queue -Ac -q30m
sendmail_msp_queue_flags=-L sm-msp-queue -Ac -q1m 



I don't really understand this at all.  I changed the -q1m parts because
I don't want sendmail to wait to send stuff... but I'm not sure if I should
have.

What does sendmail_msp_que do?  Do I need it?


Here is the configuration I am using.  I have added 'authinfo' to the hashes
that the makefile looks after.

I hope someone can help, I'm stuck.

Thanks,
Adam

VERSIONID(`kayak.mc')dnl
OSTYPE(freebsd5)dnl

undefine(`UUCP_RELAY')dnl
undefine(`BITNET_RELAY')dnl

define(`ALIAS_FILE', `/etc/mail/aliases')dnl
define(`SMART_HOST',`smtp.sbcglobal.yahoo.com')dnl
define(`confCON_EXPENSIVE',`True')dnl
define(`SMTP_MAILER_FLAGS',`e')dnl
define(`confAUTH_MECHANISMS',`CRAM-MD5 PLAIN LOGIN')dnl

FEATURE(`authinfo',`hash -o /etc/mail/authinfo')dnl

define(`confTO_QUEUEWARN',`')dnl
define(`confTO_INITIAL',`10s')dnl
define(`confTO_CONNECT',`10s')dnl
define(`confTO_ICONNECT',`10s')dnl
define(`confCW_FILE',`/etc/mail/local-host-names')dnl


FEATURE(`always_add_domain')dnl
FEATURE(`use_cw_file')dnl
FEATURE(`nocanonify')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(genericstable, `hash -o /etc/mail/genericstable')dnl
GENERICS_DOMAIN_FILE(`/etc/mail/genericsdomain')dnl

FEATURE(`access_db')dnl
FEATURE(`blacklist_recipients')dnl
FEATURE(`accept_unresolvable_domains')dnl

MAILER(`local')dnl
MAILER(`smtp')dnl

#
# aliases:
#
root:   [EMAIL PROTECTED]
etc...

#
# genericstable:
#

# who is who on the outside
adam [EMAIL PROTECTED]
[EMAIL PROTECTED]   [EMAIL PROTECTED]
[EMAIL PROTECTED]   [EMAIL PROTECTED]

root [EMAIL PROTECTED]
[EMAIL PROTECTED]   [EMAIL PROTECTED]
[EMAIL PROTECTED]   [EMAIL PROTECTED]

#
# local-host-names:
#

localhost
kayak
kayak.flatland
localhost.flatland

#
# genericsdomain
#

localhost
kayak
kayak.flatland
localhost.flatland

#
# authinfo:
#

AuthInfo:my_isp.net I:[EMAIL PROTECTED] P:Pass


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


Re: sendmail help?

2004-01-22 Thread Matthew Seaman
On Wed, Jan 21, 2004 at 11:33:57PM -0800, Adam Bozanich wrote:
 
 Hi all.  I am having a really hard time getting sendmail to work for me.
 I have a dial up DSL account that gives me an outgoing smtp account that
 requires smtp authentication.

Judging by the .mc files and so forth you attached, you seem to have
gone a long way towards achieving that.

You don't mention SASL (Simple Authentication and Security Layer) --
by default, the sendmail on FreeBSD doesn't contain any SASL
functionality, but you will need to add it in order to use
authentication.

First install the security/cyrus-sasl2 port.  Then edit your
/etc/make.conf to change the sendmail(8) compilation to include
linking in the SASL libraries:

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

Then rebuild and re-install sendmail from the system sources.  Easiest
way to do that is to do a complete 'make buildworld, make
installworld' cycle as documented in the handbook.  Then you need to
add the SASL options to your sendmail configuration, as you have done.

There are some more detailed instructions here:

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

(Those instructions actually apply to SASL v1 -- but it works almost
identically with the SASL2 settingd as I showed above).  See also:

http://www.sendmail.org/~ca/email/auth.html

but those instructions are for an older version of sendmail, so you'll
have to take care to work out what is still applicable.  
 
 For now, I'd simply like to be able to send mail from this local machine.
 I think the problem I am having is that the from: field in emails still
 has my local user name, rather than the one required by my isp.

That's what the genericstable stuff should fix for you.  It's
something that generally works really easily, so there's not that much
in the way of HOWTOs about.  See items 6 and 7 of:

http://www.sendmail.org/virtual-hosting.html

You don't need the rest of the stuff described on that page.  Use
sendmail's address test mode (sendmail -bt) to check that the
rewriting is occuring as intended.
 
 Here is the sendmail section of /etc/rc.conf:
 
 ###  Mail Transfer Agent (MTA) options  ##
 ##
 
 mta_start_script=/etc/rc.sendmail
   # Script to start your chosen MTA, called by /etc/rc.
 # Settings for /etc/rc.sendmail:
 sendmail_flags=-L sm-mta -bd  # Flags to sendmail (as a server)
 sendmail_submit_enable=YES  # Start a localhost-only MTA for mail submission
 sendmail_submit_flags=-L sm-mta -bd -ODaemonPortOptions=Addr=localhost
   # Flags for localhost-only MTA
 sendmail_outbound_enable=YES# Dequeue stuck mail (YES/NO).
 sendmail_outbound_flags=-L sm-queue -q1m  # Flags to sendmail (outbound only)
 sendmail_msp_queue_enable=YES   # Dequeue stuck clientmqueue mail (YES/NO).
 # sendmail _msp_queue_flags=-L sm-msp-queue -Ac -q30m
 sendmail_msp_queue_flags=-L sm-msp-queue -Ac -q1m 
 
 I don't really understand this at all.  I changed the -q1m parts because
 I don't want sendmail to wait to send stuff... but I'm not sure if I should
 have.

Eeek! Don't do that.  '-q1m' means process the queue at a frequency of
once per minute, not wait for a minute before doing anything.  Sendmail
MSP (Mail Submission Process) will try and send the message
immediately (unless you go out of your way to configure it not to do
that) -- you haven't mentioned any modifications to freebsd.submit.mc,
which probably means you're using the default version.  That's good --
it's quite unlikely you'll need to change that at all.

If the message cannot be delivered at once, sendmail MSP will deposit
it in the queue file for later action.  Running the queue once per
minute is far too often for a typical home user machine.  There's no
point in trying to flush the queue too often, as you need to give the
intended recipients a chance to fix whatever was wrong.

Plus you don't need to copy the defaults out of /etc/defaults/rc.conf
wholesale.  You can put just the settings you've modified into
/etc/rc.conf.
 
 What does sendmail_msp_que do?  Do I need it?

That's a sendmail process that checks the MSP queue
(/var/spool/clientmqueue) and attempts to inject any as yet
unprocessed messages into your sendmail MTA (Mail Transport Agent).
Yes, you almost definitely need it.  

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


RE: sendmail help?

2004-01-22 Thread fbsd_user
I think you are barking up the wrong tree.
I don't think you  understand how your ISP works.
ISP's do not allow direct smtp access to their email servers,
they consider it an security risk to their environment.
Did your ISP tech support tell you they allow direct smtp access to
their
email services, or are you confusing pop3 access with smtp?
You have to use fetchmail to retrieve your email from your ISP's
pop3 server
to populate your sendmail server. This is how all non-commercial
users do it.
Beside it's a whole lot easier to install the fetchmail package then
reinstall
sendmail with sasl support.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Matthew
Seaman
Sent: Thursday, January 22, 2004 7:10 AM
To: Adam Bozanich
Cc: [EMAIL PROTECTED]
Subject: Re: sendmail help?

On Wed, Jan 21, 2004 at 11:33:57PM -0800, Adam Bozanich wrote:

 Hi all.  I am having a really hard time getting sendmail to work
for me.
 I have a dial up DSL account that gives me an outgoing smtp
account that
 requires smtp authentication.

Judging by the .mc files and so forth you attached, you seem to have
gone a long way towards achieving that.

You don't mention SASL (Simple Authentication and Security Layer) --
by default, the sendmail on FreeBSD doesn't contain any SASL
functionality, but you will need to add it in order to use
authentication.

First install the security/cyrus-sasl2 port.  Then edit your
/etc/make.conf to change the sendmail(8) compilation to include
linking in the SASL libraries:

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

Then rebuild and re-install sendmail from the system sources.
Easiest
way to do that is to do a complete 'make buildworld, make
installworld' cycle as documented in the handbook.  Then you need to
add the SASL options to your sendmail configuration, as you have
done.

There are some more detailed instructions here:


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

(Those instructions actually apply to SASL v1 -- but it works almost
identically with the SASL2 settingd as I showed above).  See also:

http://www.sendmail.org/~ca/email/auth.html

but those instructions are for an older version of sendmail, so
you'll
have to take care to work out what is still applicable.

 For now, I'd simply like to be able to send mail from this local
machine.
 I think the problem I am having is that the from: field in
emails still
 has my local user name, rather than the one required by my isp.

That's what the genericstable stuff should fix for you.  It's
something that generally works really easily, so there's not that
much
in the way of HOWTOs about.  See items 6 and 7 of:

http://www.sendmail.org/virtual-hosting.html

You don't need the rest of the stuff described on that page.  Use
sendmail's address test mode (sendmail -bt) to check that the
rewriting is occuring as intended.

 Here is the sendmail section of /etc/rc.conf:

 ###  Mail Transfer Agent (MTA) options  ##
 ##

 mta_start_script=/etc/rc.sendmail
   # Script to start your chosen MTA, called by
/etc/rc.
 # Settings for /etc/rc.sendmail:
 sendmail_flags=-L sm-mta -bd  # Flags to sendmail (as a server)
 sendmail_submit_enable=YES  # Start a localhost-only MTA for
mail submission
 sendmail_submit_flags=-L
sm-mta -bd -ODaemonPortOptions=Addr=localhost
   # Flags for localhost-only MTA
 sendmail_outbound_enable=YES# Dequeue stuck mail
(YES/NO).
 sendmail_outbound_flags=-L sm-queue -q1m  # Flags to sendmail
(outbound only)
 sendmail_msp_queue_enable=YES   # Dequeue stuck clientmqueue
mail (YES/NO).
 # sendmail _msp_queue_flags=-L sm-msp-queue -Ac -q30m
 sendmail_msp_queue_flags=-L sm-msp-queue -Ac -q1m 

 I don't really understand this at all.  I changed the -q1m parts
because
 I don't want sendmail to wait to send stuff... but I'm not sure if
I should
 have.

Eeek! Don't do that.  '-q1m' means process the queue at a frequency
of
once per minute, not wait for a minute before doing anything.
Sendmail
MSP (Mail Submission Process) will try and send the message
immediately (unless you go out of your way to configure it not to do
that) -- you haven't mentioned any modifications to
freebsd.submit.mc,
which probably means you're using the default version.  That's
good --
it's quite unlikely you'll need to change that at all.

If the message cannot be delivered at once, sendmail MSP will
deposit
it in the queue file for later action.  Running the queue once per
minute is far too often for a typical home user machine.  There's no
point in trying to flush the queue too often, as you need to give
the
intended recipients a chance to fix whatever was wrong.

Plus you don't need to copy the defaults out of
/etc/defaults/rc.conf
wholesale.  You can put just the settings you've modified

RE: sendmail help?

2004-01-22 Thread Scott Mitchell
[EMAIL PROTECTED] wrote:
 I think you are barking up the wrong tree.
 I don't think you  understand how your ISP works.
 ISP's do not allow direct smtp access to their email servers,
 they consider it an security risk to their environment.

Erm, the OP is trying to send mail, not receive it:

 Hi all.  I am having a really hard time getting sendmail to work for
 me. I have a dial up DSL account that gives me an outgoing smtp
 account that requires smtp authentication.

ISPs generally do allow access to their servers for outgoing mail.  Most of
them positively encourage it, in fact :-)

Scott


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


Re: sendmail help?

2004-01-22 Thread Peter Risdon
fbsd_user wrote:

I think you are barking up the wrong tree.
I don't think you  understand how your ISP works.
ISP's do not allow direct smtp access to their email servers,
they consider it an security risk to their environment.
 

Sorry, this isn't true. But they don't operate open relays. There are a 
number of ways to limit use to valid customers, such as only relaying 
for computers with ip addresses in a particular range or subnet or, as 
in this case, some form of authentication. If you have a dsl connection, 
you sometimes _have to_ send outgoing mail via your ISP's smtp servers. 
Some ISPs actually block all outgoing smtp traffic that is NOT routed 
through one of their servers. In other cases, ip address blocks used for 
DSL connections get blacklisted. I've just come across an example where 
this has happened with a major US academic institution and to quote 
their security team anonymously:

quote

We've received many complaints from our staff about spam which came
directly from poorly administered/hacked machines in this particular
domainname.obscured.com range, so we've blocked it.  If you can arrange
with someone else (ISP-name-obscured, for instance) to have your outbound
e-mail sent through their mail servers, then we can accept your e-mail,
but we no longer accept e-mail sent directly to us from mail servers
sitting on dialup/DSL/cable/broadband/pooled connections.
/quote

I've been routing outgoing e-mail via the smtp servers of various ISPs 
for years.

PWR.

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


RE: sendmail help?

2004-01-22 Thread Dinesh Nair

On Thu, 22 Jan 2004, fbsd_user wrote:

 I think you are barking up the wrong tree. I don't think you understand
 how your ISP works. ISP's do not allow direct smtp access to their email
 servers, they consider it an security risk to their environment. Did

are you serious ? i sometimes send mail out, by connecting to my ISP's
smtp servers. i believe this practice is the same worldwide. however, due
to spam and open relays, some isps may filter access to their smtp server
to only allow thier customers. this can be done either thru smtp
authentication or by ip address filtering (which malaysian isps use).

Regards,   /\_/\   All dogs go to heaven.
[EMAIL PROTECTED](0 0)http://www.alphaque.com/
+==oOO--(_)--OOo==+
| for a in past present future; do|
|   for b in clients employers associates relatives neighbours pets; do   |
|   echo The opinions here in no way reflect the opinions of my $a $b.  |
| done; done  |
+=+

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


RE: sendmail help?

2004-01-22 Thread fbsd_user
Yes I am serious. I have used 5 different ISP's over the years and
not one let sendmail have direct access to their smtp email servers.
They all required me to use their pop3 server which is something
totally different. I believe the original poster was asking about
using sendmail to retrieve email from his ISP's smtp server.  And
it's still a lot easier to install fetchmail than to reinstall
sendmail.

-Original Message-
From: Dinesh Nair [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 9:42 AM
To: fbsd_user
Cc: Matthew Seaman; Adam Bozanich; [EMAIL PROTECTED]
Subject: RE: sendmail help?


On Thu, 22 Jan 2004, fbsd_user wrote:

 I think you are barking up the wrong tree. I don't think you
understand
 how your ISP works. ISP's do not allow direct smtp access to their
email
 servers, they consider it an security risk to their environment.
Did

are you serious ? i sometimes send mail out, by connecting to my
ISP's
smtp servers. i believe this practice is the same worldwide.
however, due
to spam and open relays, some isps may filter access to their smtp
server
to only allow thier customers. this can be done either thru smtp
authentication or by ip address filtering (which malaysian isps
use).

Regards,   /\_/\   All dogs go to heaven.
[EMAIL PROTECTED](0 0)http://www.alphaque.com/
+==oOO--(_)--OOo
==+
| for a in past present future; do
|
|   for b in clients employers associates relatives neighbours pets;
do   |
|   echo The opinions here in no way reflect the opinions of my $a
$b.  |
| done; done
|
+===
==+

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


Re: sendmail help?

2004-01-22 Thread Matthew Seaman
On Thu, Jan 22, 2004 at 11:43:45AM -0500, fbsd_user wrote:

I believe the original poster was asking about
 using sendmail to retrieve email from his ISP's smtp server.  And
 it's still a lot easier to install fetchmail than to reinstall
 sendmail.

The OP said:

 I have a dial up DSL account that gives me an outgoing smtp account that
 requires smtp authentication.

Which part of outgoing are you having difficulty understanding?

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


Re: sendmail help?

2004-01-22 Thread Micheal Patterson


- Original Message - 
From: fbsd_user [EMAIL PROTECTED]
To: Dinesh Nair [EMAIL PROTECTED]
Cc: Adam Bozanich [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 10:43 AM
Subject: RE: sendmail help?


 Yes I am serious. I have used 5 different ISP's over the years and
 not one let sendmail have direct access to their smtp email servers.
 They all required me to use their pop3 server which is something
 totally different. I believe the original poster was asking about
 using sendmail to retrieve email from his ISP's smtp server.  And
 it's still a lot easier to install fetchmail than to reinstall
 sendmail.


Did you place pop3.ispname.com in your smtp server field of Outlook and
change the default port 25 to something else? If you didn't change the port,
then their smtp daemon is listening for your traffinc on port 25 of the same
server that they're running pop3 on. This isn't too uncommon. If the OP was
asking about getting the ISP smtp server to send to his sendmail. For that
to happen, at minimum, the following has to be done. He's got a static ip
and the isp places a forward on his ISP account to forward to
[EMAIL PROTECTED] and his system is configured to accept mail for
xxx.xxx.xxx.xxx, or, he has a domain assigned with an mx record pointing to
his home system. Fetchmail can't retrieve mail from an smtp server that I am
currently aware of as it's designed to speak pop protocol and then deliver
it locally to an awaiting smtp server for local delivery.

--

Micheal Patterson
TSG Network Administration
405-917-0600

Confidentiality Notice:  This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.


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


Re: sendmail help?

2004-01-22 Thread Micheal Patterson

- Original Message - 
From: Matthew Seaman [EMAIL PROTECTED]
To: fbsd_user [EMAIL PROTECTED]
Cc: Dinesh Nair [EMAIL PROTECTED]; Adam Bozanich
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 10:57 AM
Subject: Re: sendmail help?

On Thu, Jan 22, 2004 at 11:43:45AM -0500, fbsd_user wrote:

I believe the original poster was asking about
 using sendmail to retrieve email from his ISP's smtp server.  And
 it's still a lot easier to install fetchmail than to reinstall
 sendmail.

The OP said:

 I have a dial up DSL account that gives me an outgoing smtp account that
 requires smtp authentication.

Which part of outgoing are you having difficulty understanding?

 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


Apparently he's having trouble understanding a number of things lately and
I'm beginning to wonder if he's a troll or not.

To assist the OP on this issue, check out this link:

http://www.sendmail.org/~ca/email/auth.html#DefaultAuthInfo

Within that site, it will give you assistance in setting up sendmail to act
as an smtp client using smtp-auth.

snippet

DefaultAuthInfo (confDEF_AUTH_INFO)
specifies a file in which the authorization identity, the authentication
identity, the secret, and the realm to be used for authentication are
stored. This file must be in a safe directory and unreadable by everyone
except root (or TrustedUser). It is used when sendmail acts as a client to
authenticate itself to a server. Example:
admin
admin
MySecretPassword
example.domain

Notes: all data is case sensitive (usually) and the entire line is used in
each case (including any white space!).
recommended filename: /etc/mail/default-auth-info

/snippet

I trust this is what the OP's original intentions were.


--

Micheal Patterson
TSG Network Administration
405-917-0600

Confidentiality Notice:  This e-mail message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message.


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


Re: sendmail help?

2004-01-22 Thread Peter Risdon
Micheal Patterson wrote:

Fetchmail can't retrieve mail from an smtp server that I am

currently aware of as it's designed to speak pop protocol and then deliver
it locally to an awaiting smtp server for local delivery.
 

Fetchmail can use various protocols, including etrn, which is used to 
flush queues on smtp servers. This is a common protocol: Microsoft 
Exchange 2000 and 2003 ship without a pop3 client and use etrn 
exclusively (unless you install some 3rd party client).

So you can use sendmail to collect mail using etrn, and most ISPs offer 
etrn, but this isn't what the OP was asking about.

PWR.

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


Re: sendmail help?

2004-01-22 Thread Adam Bozanich


On Thu, 22 Jan 2004, Micheal Patterson wrote:


 I believe the original poster was asking about
  using sendmail to retrieve email from his ISP's smtp server.  And
  it's still a lot easier to install fetchmail than to reinstall
  sendmail.

I use fetchmail to retrieve mail from my isp's pop server.

 Apparently he's having trouble understanding a number of things lately and
 I'm beginning to wonder if he's a troll or not.

That's a bit harsh.

 http://www.sendmail.org/~ca/email/auth.html#DefaultAuthInfo

 Within that site, it will give you assistance in setting up sendmail to act
 as an smtp client using smtp-auth.

 snippet

 DefaultAuthInfo (confDEF_AUTH_INFO)
 specifies a file in which the authorization identity, the authentication
 identity, the secret, and the realm to be used for authentication are
 stored. This file must be in a safe directory and unreadable by everyone
 except root (or TrustedUser). It is used when sendmail acts as a client to
 authenticate itself to a server. Example:
 admin
 admin
 MySecretPassword
 example.domain

 Notes: all data is case sensitive (usually) and the entire line is used in
 each case (including any white space!).
 recommended filename: /etc/mail/default-auth-info

 /snippet

 I trust this is what the OP's original intentions were.

Yes, it was.  Thank you.  I really don't see what the big mix up was... I
guess I didn't post my problem clearly.

I have tried the /etc/mail/default-auth-info method (I have read that
page), but I just can't get it to work.  I have also read that the new way
to do it is with the /etc/mail/authinfo file, with the format I gave
earlier.

I have compiled sendmail with sasl (1) support.  But I don't think that
the smtp-auth part is the issue.

As I stated before, I believe the problem is that sendmail is not
translating my name in the from section of the email.  When The mail
gets rejected, it gets send back with From: [EMAIL PROTECTED], My isp wants it
to be From [EMAIL PROTECTED]

I think this is probably not too difficult to fix, but I can't see where I
am going wrong.

I can't seem to find any good tutorials/documentation on getting a simple
sendmail client working with a dynamic ip address using smtp authentication,
If anybody has any references they'd like to share, or any suggestions for me
to try it would be greatly appreciated.

What about my sendmail_msp_que question?  what does this component of
sendmail do?  (do I need it?)

TIA
-Adam


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


Re: sendmail help?

2004-01-22 Thread Micheal Patterson

- Original Message - 
From: Peter Risdon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 11:31 AM
Subject: Re: sendmail help?


 Micheal Patterson wrote:

  Fetchmail can't retrieve mail from an smtp server that I am
 
 currently aware of as it's designed to speak pop protocol and then
deliver
 it locally to an awaiting smtp server for local delivery.
 
 
 Fetchmail can use various protocols, including etrn, which is used to
 flush queues on smtp servers. This is a common protocol: Microsoft
 Exchange 2000 and 2003 ship without a pop3 client and use etrn
 exclusively (unless you install some 3rd party client).

 So you can use sendmail to collect mail using etrn, and most ISPs offer
 etrn, but this isn't what the OP was asking about.

 PWR.

The only current reference that I had when I made that post was for version
5.7.2 which states in it's man page:

  In ETRN  and  ODMR  modes,  fetchmail  does  not  actually
   retrieve messages; instead, it asks the server's SMTP lis-
   tener to start a queue  flush  to  the  client  via  SMTP.
   Therefore it sends only undelivered messages.

I've not used fetchmail for quite some time simply because I've no need to
do so. If that's not the current version, then that may have changed
considerably. But, as you stated, the OP was asking about smtp-auth via
sendmail.


--

Micheal Patterson
Network Administration
TSG Incorporated
405-917-0600


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


Re: sendmail help

2003-03-31 Thread Toni Schmidbauer
On Mon, Mar 31, 2003 at 09:06:51AM -0600, Kenzo wrote:
 I did a make world and this is what I get at the next reboot.
 
 Starting standard daemons: inetd cron sshd sendmailsendmail:execing
 /usr/local/sbin/sendmail:No such file or directory

looks like your postfix sendmail binary was removed. are the
config files in /usr/local/etc/postfix/ also missing?

 and reboot, it hangs when it's trying to load the daemons.

press CTRL+C, look in the maillog, and try to start postfix
manually (postfix start).

toni
-- 
Behandle die Menschen, als wären sie, was sie sein | [EMAIL PROTECTED]
sollten, und du wirst ihnen helfen, zu werden, was | Toni Schmidbauer
sie sein können.  - Johann Wolfgang von Goethe |


pgp0.pgp
Description: PGP signature


Re: sendmail help

2003-03-31 Thread Andrew Y Ng
On  0, Kenzo [EMAIL PROTECTED] wrote:
 I did have NO_SENDMAIL=   true in my make.conf file.

maybe you did mergemaster and replaced stuff in /etc and /etc/mail?

/ayn

-- 
andrew y ng  [EMAIL PROTECTED]  http://andrewng.com
independent computer consultants http://aynassociates.com



pgp0.pgp
Description: PGP signature


sendmail help

2003-03-31 Thread Kenzo
I did a make world and this is what I get at the next reboot.

Starting standard daemons: inetd cron sshd sendmailsendmail:execing
/usr/local/sbin/sendmail:No such file or directory

this is my  mailer.conf
#
# Execute the Postfix sendmail program, named /usr/local/sbin/sendmail
#
sendmail/usr/local/sbin/sendmail
send-mail   /usr/local/sbin/sendmail
mailq   /usr/local/sbin/sendmail
newaliases  /usr/local/sbin/sendmail

I originally replaced sendmail with postfix.
and it used to work fine until after the make world.
here is part of my rc.conf.

sendmail_enable=YES
sendmail_flags=-bd
sendmail_outbound_enable=NO
sendmail_submit_enable=NO
sendmail_msp_queue_enable=NO
sshd_enable=YES

If I change the mailer.conf file to
sendmail/usr/sbin/sendmail
send-mail   /usr/sbin/sendmail
mailq   /usr/sbin/sendmail
newaliases  /usr/sbin/sendmail
and reboot, it hangs when it's trying to load the daemons.

what can I do to fix this?

Thanks.

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


Re: sendmail help

2003-03-31 Thread Andrew Y Ng
 I did a make world and this is what I get at the next reboot.
 
 Starting standard daemons: inetd cron sshd sendmailsendmail:execing
 /usr/local/sbin/sendmail:No such file or directory
 
 this is my  mailer.conf
 #
 # Execute the Postfix sendmail program, named /usr/local/sbin/sendmail
 #
 sendmail/usr/local/sbin/sendmail
 send-mail   /usr/local/sbin/sendmail
 mailq   /usr/local/sbin/sendmail
 newaliases  /usr/local/sbin/sendmail

I have /usr/libexec/sendmail/sendmail instead.

 I originally replaced sendmail with postfix.
 and it used to work fine until after the make world.
 here is part of my rc.conf.
 
 sendmail_enable=YES
 sendmail_flags=-bd
 sendmail_outbound_enable=NO
 sendmail_submit_enable=NO
 sendmail_msp_queue_enable=NO
 sshd_enable=YES
 
 If I change the mailer.conf file to
 sendmail/usr/sbin/sendmail
 send-mail   /usr/sbin/sendmail
 mailq   /usr/sbin/sendmail
 newaliases  /usr/sbin/sendmail
 and reboot, it hangs when it's trying to load the daemons.

I think the real sendmail is at /usr/libexec/sendmail/sendmail, not
/usr/sbin/sendmail, which points to mailwrapper

 what can I do to fix this?

if you want to continue to use postfix, try re-installing the postfix port,
it should fix it. (i haven't used postfix myself, but looks like the
pkg-install script would take care of replacing the sendmail setup)

if you don't want sendmail to be installed when you do a make world, put the
following line in /etc/make.conf:
NO_SENDMAIL=   true

/ayn

-- 
andrew y ng  [EMAIL PROTECTED]  http://andrewng.com
independent computer consultants http://aynassociates.com



pgp0.pgp
Description: PGP signature


Re: sendmail help

2003-03-31 Thread Toomas Aas
Hi!

 I did a make world and this is what I get at the next reboot.
 
 Starting standard daemons: inetd cron sshd sendmailsendmail:execing
 /usr/local/sbin/sendmail:No such file or directory

Ouch! Sounds like somehow the Postfix binary got lost during the upgrade...

 
 this is my  mailer.conf
 #
 # Execute the Postfix sendmail program, named /usr/local/sbin/sendmail
 #
 sendmail/usr/local/sbin/sendmail
 send-mail   /usr/local/sbin/sendmail
 mailq   /usr/local/sbin/sendmail
 newaliases  /usr/local/sbin/sendmail
 
 I originally replaced sendmail with postfix.
 and it used to work fine until after the make world.

The trick of keeping your postfix alive through the 'make world' procedure is to 
have NO_SENDMAIL=TRUE in /etc/make.conf and during mergemaster make sure you don't
let it replace anything under /etc/mail.

 sendmail_enable=YES
 sendmail_flags=-bd
 sendmail_outbound_enable=NO
 sendmail_submit_enable=NO
 sendmail_msp_queue_enable=NO

I have it exactly the same way on my Postfix server.

 what can I do to fix this?

I would try to re-install the Postfix port.
--
Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/
* A woman's husband's previous wife is called her 'wife-in-law.'

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


Re: need some sendmail help

2003-02-17 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2003-02-15 00:41:42 +0200:
 On 2003-02-14 18:08, Roman Neuhauser [EMAIL PROTECTED] wrote:
  # [EMAIL PROTECTED] / 2003-02-14 03:51:22 +0200:
   You have only enabled mail submission through a network
   connection to port 25, but not submission of mail from local
   users.  I suggest that you read at least /etc/mail/README and
   the rc.sendmail(8) manpage.
 
  Hi Giorgos,
 
  it was always my understanding that sendmail_enable=YES will turn
  Sendmail on wholesale: commandline submits, inbound, outbound.
 
 Not really.  sendmail_enable=YES turns on only the non-localhost
 daemon.
 
 Note that I was wrong in my previous post, but for a different reason.
 Since /etc/defaults/rc.conf sets sendmail_xxx_enable=YES, the
 dequeueing of local mail will be automatically enabled.

well, that's what I was trying to say: given the values in
/etc/defaults/rc.conf, having only sendmail_enable=YES in
/etc/rc.conf will enable Sendmail wholesale. on -STABLE, that is.

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.see http://www.eyrie.org./~eagle/faqs/questions.html

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



Re: need some sendmail help

2003-02-17 Thread Giorgos Keramidas
On 2003-02-17 16:41, Roman Neuhauser [EMAIL PROTECTED] wrote:
 # [EMAIL PROTECTED] / 2003-02-15 00:41:42 +0200:
   it was always my understanding that sendmail_enable=YES will turn
   Sendmail on wholesale: commandline submits, inbound, outbound.
 
  Not really.  sendmail_enable=YES turns on only the non-localhost
  daemon. [...]

 well, that's what I was trying to say: given the values in
 /etc/defaults/rc.conf, having only sendmail_enable=YES in
 /etc/rc.conf will enable Sendmail wholesale. on -STABLE, that is.

Aye.  I misunderstood you, then.  Probably because sendmail_enable is
not enough for enabling local mail delivery too.  Sorry about that...


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



Re: need some sendmail help

2003-02-14 Thread Giorgos Keramidas
On 2003-02-14 17:11, Jack L. Stone [EMAIL PROTECTED] wrote:
 Giorgos: As a refresher, below are the /etc/defaults/rc.conf
 Unless, the /etc/rc.conf overrides, these turn on as stated. Based on the
 below, what is not turned on???
 [...]
 sendmail_enable=YES   # Run the sendmail inbound daemon (YES/NO/NONE).
 sendmail_submit_enable=YES# Start a localhost-only MTA for mail submission
 sendmail_outbound_enable=YES  # Dequeue stuck mail (YES/NO).
 sendmail_msp_queue_enable=YES # Dequeue stuck clientmqueue mail (YES/NO).

The defaults are a bit different in STABLE vs. CURRENT (note
sendmail_enable=NO).  In my CURRENT installation, the defaults are:

   sendmail_enable=NO # Run the sendmail inbound daemon (YES/NO).
   sendmail_submit_enable=YES # Start a localhost-only MTA for mail 
submission
   sendmail_outbound_enable=YES   # Dequeue stuck mail (YES/NO).
   sendmail_msp_queue_enable=YES  # Dequeue stuck clientmqueue mail (YES/NO).

Well, anyway...
The rc.sendmail script supports the following setups:

Setup 1. Sendmail accepts mail both on localhost:25 and over the
network at address:25 ports.

When you set sendmail_enable=YES, it overrides two rc.conf
variables, sendmail_submit_enable and sendmail_outbound_enable.
A sendmail process is started with /var/spool/mqueue as the
queue directory, and mail accepted over a connection to port
25 is delivered as usual through the /var/spool/mqueue queue.

You have to also sendmail_msp_queue_enable=YES too in this
case, to allow local users to deliver mail to Sendmail over an
SMTP connection to localhost:25, or use a cron job.  The MSP
queue runner does *NOT* listen on any port, but runs
periodically dequeueing mail from /var/spool/clientmqueue and
passing it to the localhost:25 daemon (or any other host that
you have configured in your submit.mc config file).

Alternatively, you can keep sendmail_msp_queue_enable set to
NO, and use a crontab entry to dequeue mail from clientmqueue
by running:

sendmail -q -Ac

Note that you still have to create a valid submit.cf file,
even if you use cron to dequeue mail from clientmqueue.

Suggested rc.conf entries:
-
sendmail_enable=YES
sendmail_msp_queue_enable=YES
-

2. Sendmail accepts mail only over a connection to port 25 of the
localhost interface.

To make this work as expected, sendmail_enable should be NO
and at the same time sendmail_submit_enable should be yes.
Sendmail will start, but listen only on localhost:25 and use
/var/spool/mqueue for mail that is received over an smtp
connection to the localhost:25 port.

This is a very nice setup for dialup users who don't want
their Sendmail daemon to listen on any other interface;
just loopback.  Delivery of outgoing mail still works like a
charm, since the daemon started by sendmail_submit_enable will
periodically flush /var/spool/mqueue and send mail out.

An MSP queue runner or cron job is needed in this sort of
setup too.  See above.

Suggested rc.conf entries:
-
sendmail_enable=NO
sendmail_submit_enable=YES
sendmail_msp_queue_enable=YES
-

3. Sendmail doesn't accept any sort of mail over smtp.  It only runs
   the queue /var/spool/mqueue periodically.

This is what sendmail_outbound_enable=YES is most useful for.
There are two ways to do this.  One of them is with a setuid
sendmail process, and one without.

3.a. Setuid-root sendmail process

 Follow the instructions in /etc/mail/README for
 changing back to a setuid-root Sendmail setup:

chown root /usr/libexec/sendmail/sendmail
chmod 4755 /usr/libexec/sendmail/sendmail
rm /etc/mail/submit.cf

3.b. Non-setuid root Sendmail process

 A bit tricky; you have to manually copy sendmail.cf to
 submit.cf and set DeliveryMode=queue in submit.cf.  This
 is a setup that I haven't tested a lot, but I'll have
 some time this weekend.

Note: You can not use a clientmqueue runner with this sort of
setup, because there is no daemon on localhost:25 to receive
the connections from the clientmqueue runner.

Suggested rc.conf entries:
-
sendmail_enable=NO
sendmail_submit_enable=NO

Re: need some sendmail help

2003-02-14 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2003-02-14 03:51:22 +0200:
 On 2003-02-13 20:38, Andrew Y Ng [EMAIL PROTECTED] wrote:
  On  0, Giorgos Keramidas [EMAIL PROTECTED] wrote:
   On 2003-02-13 15:21, Andrew Y Ng [EMAIL PROTECTED] wrote:
this might seem stupid, but for some reasons on one of my servers
running freebsd -stable, mail just doesn't work, I keep seeing:
   
Feb 13 14:16:52 ngbert sendmail[50411]: h1DKGqL1050411: to=ayn,
ctladdr=ayn (1001/1001), delay=00:00:00, xdelay=00:00:00,
mailer=relay, pri=30023, relay=localhost.my.domain., dsn=4.0.0,
stat=Deferred: Connection refused by localhost.my.domain.
  
   - What sendmail_xxx_enable options have you turned on in /etc/rc.conf?
 
  ayn@NGBERT:/etcgrep sendmail rc.conf
  sendmail_enable=YES
 
 This is where the problem lies.
 
 You have only enabled mail submission through a network connection to
 port 25, but not submission of mail from local users.  I suggest that
 you read at least /etc/mail/README and the rc.sendmail(8) manpage.

Hi Giorgos,

it was always my understanding that sendmail_enable=YES will turn
Sendmail on wholesale: commandline submits, inbound, outbound.

rc.sendmail(8) certainly doesn't counter that interpretation, and
reading /etc/defaults/rc.conf and /etc/rc.sendmail confirms it...

Or I'm reading it wrong, which is more than possible.

-- 
If you cc me or remove the list(s) completely I'll most likely ignore
your message.see http://www.eyrie.org./~eagle/faqs/questions.html

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



Re: need some sendmail help

2003-02-14 Thread Giorgos Keramidas
On 2003-02-14 18:08, Roman Neuhauser [EMAIL PROTECTED] wrote:
 # [EMAIL PROTECTED] / 2003-02-14 03:51:22 +0200:
  You have only enabled mail submission through a network
  connection to port 25, but not submission of mail from local
  users.  I suggest that you read at least /etc/mail/README and
  the rc.sendmail(8) manpage.

 Hi Giorgos,

 it was always my understanding that sendmail_enable=YES will turn
 Sendmail on wholesale: commandline submits, inbound, outbound.

Not really.  sendmail_enable=YES turns on only the non-localhost
daemon.

Note that I was wrong in my previous post, but for a different reason.
Since /etc/defaults/rc.conf sets sendmail_xxx_enable=YES, the
dequeueing of local mail will be automatically enabled.

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



Re: need some sendmail help

2003-02-14 Thread Jack L. Stone
At 12:41 AM 2.15.2003 +0200, Giorgos Keramidas wrote:
On 2003-02-14 18:08, Roman Neuhauser [EMAIL PROTECTED] wrote:
 # [EMAIL PROTECTED] / 2003-02-14 03:51:22 +0200:
  You have only enabled mail submission through a network
  connection to port 25, but not submission of mail from local
  users.  I suggest that you read at least /etc/mail/README and
  the rc.sendmail(8) manpage.

 Hi Giorgos,

 it was always my understanding that sendmail_enable=YES will turn
 Sendmail on wholesale: commandline submits, inbound, outbound.

Not really.  sendmail_enable=YES turns on only the non-localhost
daemon.

Note that I was wrong in my previous post, but for a different reason.
Since /etc/defaults/rc.conf sets sendmail_xxx_enable=YES, the
dequeueing of local mail will be automatically enabled.


Giorgos: As a refresher, below are the /etc/defaults/rc.conf
Unless, the /etc/rc.conf overrides, these turn on as stated. Based on the
below, what is not turned on???

###  Mail Transfer Agent (MTA) options  ##
##

mta_start_script=/etc/rc.sendmail
# Script to start your chosen MTA, called by /etc/rc.
# Settings for /etc/rc.sendmail:
sendmail_enable=YES   # Run the sendmail inbound daemon (YES/NO/NONE).
# If NONE, don't start any sendmail processes.
sendmail_flags=-L sm-mta -bd -q30m # Flags to sendmail (as a server)
sendmail_submit_enable=YES# Start a localhost-only MTA for mail
submission
sendmail_submit_flags=-L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost
# Flags for localhost-only MTA
sendmail_outbound_enable=YES  # Dequeue stuck mail (YES/NO).
sendmail_outbound_flags=-L sm-queue -q30m # Flags to sendmail (outbound
only)
sendmail_msp_queue_enable=YES # Dequeue stuck clientmqueue mail (YES/NO).
sendmail_msp_queue_flags=-L sm-msp-queue -Ac -q30m
# Flags for sendmail_msp_queue daemon.

Best regards,
Jack L. Stone,
Administrator

SageOne Net
http://www.sage-one.net
[EMAIL PROTECTED]

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



Re: need some sendmail help

2003-02-14 Thread Kjell
 PS:
 If you're about to ask ``Why isn't all this in the Handbook already?''
 suffice it to say that I've been experimenting and reading about
 Sendmail a lot the past few weeks.  I'm trying now to collect all the
 notes from the mess I have in my bedroom and sit my lazy *ss down to
 write a new Sendmail chapter for the Handbook.
 
Thank you for your fine writeup!

For some time I have been struggling to set up a network with the 
following configuration: 2x R4.7p4s and 1x W2k boxes on the local LAN 
and a R4.6 box as the gateway to the world on a ADSL line. A 
registered domain is pointing to my fixed IP address. All boxes can 
exchange mail on the LAN, send mail to the wide world and fetch mail 
using fetchmail. But mail to my registered domain seems to go to 
device zero. I am left with questions like what is the difference in 
sendmail configuration between the LAN PCs and the gateway PC? 
How can I check that my ISP has me set up properly for resolving 
reverse lookups? My MX records at zoneedit.com? Will my ISPs mail 
server cooperate?
When you write the new Handbook chapter I hope you will keep the 
home user in mind and cover some of my points. And of course, if you 
should have any references that I should consult, I would appreciate any 
pointer!
Thank you from Kjell



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



Re: need some sendmail help

2003-02-13 Thread Giorgos Keramidas
On 2003-02-13 15:21, Andrew Y Ng [EMAIL PROTECTED] wrote:
 this might seem stupid, but for some reasons on one of my servers
 running freebsd -stable, mail just doesn't work, I keep seeing:

 Feb 13 14:16:52 ngbert sendmail[50411]: h1DKGqL1050411: to=ayn,
 ctladdr=ayn (1001/1001), delay=00:00:00, xdelay=00:00:00,
 mailer=relay, pri=30023, relay=localhost.my.domain., dsn=4.0.0,
 stat=Deferred: Connection refused by localhost.my.domain.

- What sendmail_xxx_enable options have you turned on in /etc/rc.conf?
- What options have you configured in your /etc/mail/*.mc files?
- What are the contents of /etc/resolv.conf, /etc/host.conf and
  /etc/hosts files?

Giorgos


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



Re: need some sendmail help

2003-02-13 Thread Andrew Y Ng
On  0, Giorgos Keramidas [EMAIL PROTECTED] wrote:
 On 2003-02-13 15:21, Andrew Y Ng [EMAIL PROTECTED] wrote:
  this might seem stupid, but for some reasons on one of my servers
  running freebsd -stable, mail just doesn't work, I keep seeing:
 
  Feb 13 14:16:52 ngbert sendmail[50411]: h1DKGqL1050411: to=ayn,
  ctladdr=ayn (1001/1001), delay=00:00:00, xdelay=00:00:00,
  mailer=relay, pri=30023, relay=localhost.my.domain., dsn=4.0.0,
  stat=Deferred: Connection refused by localhost.my.domain.
 
 - What sendmail_xxx_enable options have you turned on in /etc/rc.conf?

ayn@NGBERT:/etcgrep sendmail rc.conf
sendmail_enable=YES

 - What options have you configured in your /etc/mail/*.mc files?

ayn@NGBERT:/etc/mailgrep define *mc|grep -v dnl
freebsd.mc:define(`confCW_FILE', `-o /etc/mail/local-host-names')
freebsd.mc:define(`confBIND_OPTS', `WorkAroundBroken')
freebsd.mc:define(`confMAX_MIME_HEADER_LENGTH', `256/128')
freebsd.mc:define(`confNO_RCPT_ACTION', `add-to-undisclosed')
freebsd.mc:define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
ngbert.thelin.com.mc:define(`confCW_FILE', `-o /etc/mail/local-host-names')
ngbert.thelin.com.mc:define(`confBIND_OPTS', `WorkAroundBroken')
ngbert.thelin.com.mc:define(`confMAX_MIME_HEADER_LENGTH', `256/128')
ngbert.thelin.com.mc:define(`confNO_RCPT_ACTION', `add-to-undisclosed')
ngbert.thelin.com.mc:define(`confPRIVACY_FLAGS',
`authwarnings,noexpn,novrfy')

 - What are the contents of /etc/resolv.conf, /etc/host.conf and
   /etc/hosts files?

ayn@NGBERT:/etc/mailcat /etc/resolv.conf
search attbi.com
nameserver 63.240.76.19
nameserver 204.127.198.19

ayn@NGBERT:/etc/mailcat /etc/host.conf
# $FreeBSD: src/etc/host.conf,v 1.6 1999/08/27 23:23:41 peter Exp $
# First try the /etc/hosts file
hosts
# Now try the nameserver next.
bind
# If you have YP/NIS configured, uncomment the next line
# nis

ayn@NGBERT:/etc/mailcat /etc/host.conf
# $FreeBSD: src/etc/host.conf,v 1.6 1999/08/27 23:23:41 peter Exp $
# First try the /etc/hosts file
hosts
# Now try the nameserver next.
bind
# If you have YP/NIS configured, uncomment the next line
# nis

thanks!

-- 
andrew y ng  [EMAIL PROTECTED]  http://andrewng.com




msg19438/pgp0.pgp
Description: PGP signature


Re: need some sendmail help

2003-02-13 Thread Andrew Y Ng
forgot /etc/hosts:
ayn@NGBERT:~egrep -v \^# /etc/hosts
::1 localhost localhost.my.domain
127.0.0.1   localhost localhost.thelin.com eagan.homeunix.net
192.168.1.100 aynlaptop andrew
192.168.1.102 ngbert ngbert.thelin.com
12.109.66.145 andrewng.com
192.168.1.103 johnbert john

I think that ::1 line might've been the problem...
/ayn


On  0, Andrew Y Ng [EMAIL PROTECTED] wrote:
 On  0, Giorgos Keramidas [EMAIL PROTECTED] wrote:
  On 2003-02-13 15:21, Andrew Y Ng [EMAIL PROTECTED] wrote:
   this might seem stupid, but for some reasons on one of my servers
   running freebsd -stable, mail just doesn't work, I keep seeing:
  
   Feb 13 14:16:52 ngbert sendmail[50411]: h1DKGqL1050411: to=ayn,
   ctladdr=ayn (1001/1001), delay=00:00:00, xdelay=00:00:00,
   mailer=relay, pri=30023, relay=localhost.my.domain., dsn=4.0.0,
   stat=Deferred: Connection refused by localhost.my.domain.
  
  - What sendmail_xxx_enable options have you turned on in /etc/rc.conf?
 
 ayn@NGBERT:/etcgrep sendmail rc.conf
 sendmail_enable=YES
 
  - What options have you configured in your /etc/mail/*.mc files?
 
 ayn@NGBERT:/etc/mailgrep define *mc|grep -v dnl
 freebsd.mc:define(`confCW_FILE', `-o /etc/mail/local-host-names')
 freebsd.mc:define(`confBIND_OPTS', `WorkAroundBroken')
 freebsd.mc:define(`confMAX_MIME_HEADER_LENGTH', `256/128')
 freebsd.mc:define(`confNO_RCPT_ACTION', `add-to-undisclosed')
 freebsd.mc:define(`confPRIVACY_FLAGS', `authwarnings,noexpn,novrfy')
 ngbert.thelin.com.mc:define(`confCW_FILE', `-o /etc/mail/local-host-names')
 ngbert.thelin.com.mc:define(`confBIND_OPTS', `WorkAroundBroken')
 ngbert.thelin.com.mc:define(`confMAX_MIME_HEADER_LENGTH', `256/128')
 ngbert.thelin.com.mc:define(`confNO_RCPT_ACTION', `add-to-undisclosed')
 ngbert.thelin.com.mc:define(`confPRIVACY_FLAGS',
 `authwarnings,noexpn,novrfy')
 
  - What are the contents of /etc/resolv.conf, /etc/host.conf and
/etc/hosts files?
 
 ayn@NGBERT:/etc/mailcat /etc/resolv.conf
 search attbi.com
 nameserver 63.240.76.19
 nameserver 204.127.198.19
 
 ayn@NGBERT:/etc/mailcat /etc/host.conf
 # $FreeBSD: src/etc/host.conf,v 1.6 1999/08/27 23:23:41 peter Exp $
 # First try the /etc/hosts file
 hosts
 # Now try the nameserver next.
 bind
 # If you have YP/NIS configured, uncomment the next line
 # nis
 
 ayn@NGBERT:/etc/mailcat /etc/host.conf
 # $FreeBSD: src/etc/host.conf,v 1.6 1999/08/27 23:23:41 peter Exp $
 # First try the /etc/hosts file
 hosts
 # Now try the nameserver next.
 bind
 # If you have YP/NIS configured, uncomment the next line
 # nis
 
 thanks!
 
 -- 
 andrew y ng  [EMAIL PROTECTED]  http://andrewng.com
 



-- 
andrew y ng  [EMAIL PROTECTED]  http://andrewng.com
independent computer consultants http://aynassociates.com




msg19439/pgp0.pgp
Description: PGP signature


Re: need some sendmail help

2003-02-13 Thread Giorgos Keramidas
On 2003-02-13 20:38, Andrew Y Ng [EMAIL PROTECTED] wrote:
 On  0, Giorgos Keramidas [EMAIL PROTECTED] wrote:
  On 2003-02-13 15:21, Andrew Y Ng [EMAIL PROTECTED] wrote:
   this might seem stupid, but for some reasons on one of my servers
   running freebsd -stable, mail just doesn't work, I keep seeing:
  
   Feb 13 14:16:52 ngbert sendmail[50411]: h1DKGqL1050411: to=ayn,
   ctladdr=ayn (1001/1001), delay=00:00:00, xdelay=00:00:00,
   mailer=relay, pri=30023, relay=localhost.my.domain., dsn=4.0.0,
   stat=Deferred: Connection refused by localhost.my.domain.
 
  - What sendmail_xxx_enable options have you turned on in /etc/rc.conf?

 ayn@NGBERT:/etcgrep sendmail rc.conf
 sendmail_enable=YES

This is where the problem lies.

You have only enabled mail submission through a network connection to
port 25, but not submission of mail from local users.  I suggest that
you read at least /etc/mail/README and the rc.sendmail(8) manpage.

Look at the description of sendmail_submit_enable in rc.sendmail(8)
and in /etc/defaults/rc.conf.

- Giorgos

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



Re: need some sendmail help

2003-02-13 Thread Giorgos Keramidas
On 2003-02-13 20:42, Andrew Y Ng [EMAIL PROTECTED] wrote:
 forgot /etc/hosts:
 ayn@NGBERT:~egrep -v \^# /etc/hosts
 ::1 localhost localhost.my.domain
 127.0.0.1   localhost localhost.thelin.com eagan.homeunix.net
 192.168.1.100 aynlaptop andrew
 192.168.1.102 ngbert ngbert.thelin.com
 12.109.66.145 andrewng.com
 192.168.1.103 johnbert john

 I think that ::1 line might've been the problem...

No, that's fine.  It's the loopback address for IPv6.

- Giorgos

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



need some sendmail help

2003-02-13 Thread Andrew Y Ng
this might seem stupid, but for some reasons on one of my servers running
freebsd -stable, mail just doesn't work, I keep seeing:

Feb 13 14:16:52 ngbert sendmail[50411]: h1DKGqL1050411: to=ayn, ctladdr=ayn
(1001/1001), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30023,
relay=localhost.my.domain., dsn=4.0.0, stat=Deferred: Connection refused by
localhost.my.domain.

I added localhost and stuff in the access database but still doesn't work...
I must be missing something obvious... I tried specifying smart host to be my
isp's smtp server but that didn't work either... i got a lot of stuff queued
up in the clientmqueue folder... :)

any help would be highly appreciated, thank you!

-- 
andrew y ng  [EMAIL PROTECTED]  http://andrewng.com





msg19448/pgp0.pgp
Description: PGP signature


Re: need some sendmail help

2003-02-13 Thread Andrew Y Ng
i got rid of the localhost.my.domain. line in /etc/hosts now i don't get
connection refused anymore... i guess it looked at the hosts file and used
that name instead of just localhost, and I didn't have that in my access
database.

now I'm getting a user unknown error... heh..

thanks!

/ayn


On  0, Giorgos Keramidas [EMAIL PROTECTED] wrote:
 On 2003-02-13 20:38, Andrew Y Ng [EMAIL PROTECTED] wrote:
  On  0, Giorgos Keramidas [EMAIL PROTECTED] wrote:
   On 2003-02-13 15:21, Andrew Y Ng [EMAIL PROTECTED] wrote:
this might seem stupid, but for some reasons on one of my servers
running freebsd -stable, mail just doesn't work, I keep seeing:
   
Feb 13 14:16:52 ngbert sendmail[50411]: h1DKGqL1050411: to=ayn,
ctladdr=ayn (1001/1001), delay=00:00:00, xdelay=00:00:00,
mailer=relay, pri=30023, relay=localhost.my.domain., dsn=4.0.0,
stat=Deferred: Connection refused by localhost.my.domain.
  
   - What sendmail_xxx_enable options have you turned on in /etc/rc.conf?
 
  ayn@NGBERT:/etcgrep sendmail rc.conf
  sendmail_enable=YES
 
 This is where the problem lies.
 
 You have only enabled mail submission through a network connection to
 port 25, but not submission of mail from local users.  I suggest that
 you read at least /etc/mail/README and the rc.sendmail(8) manpage.
 
 Look at the description of sendmail_submit_enable in rc.sendmail(8)
 and in /etc/defaults/rc.conf.
 
 - Giorgos

-- 
andrew y ng  [EMAIL PROTECTED]  http://andrewng.com
independent computer consultants http://aynassociates.com




msg19460/pgp0.pgp
Description: PGP signature