RE: smart_host on sendmail min config

2007-12-13 Thread Daniel Eriksson

Why are you not using the supplied scripts and configuration knobs to
start Sendmail? It works just fine for 99% of FreeBSD users (my guess),
so what makes your environment so special that your needs cannot be met
without custom scripts?

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


Re: smart_host on sendmail min config

2007-12-12 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Giorgos Keramidas wrote:
 On 2007-12-11 13:53, Aryeh M. Friedman [EMAIL PROTECTED]
 wrote:
 Giorgos Keramidas wrote:
 You still haven't shown us:

 * How your local rc system starts Sendmail
 Until I can get it right from the command line I am not going to
 include it in my /etc/rc thus currently there is none

 * The active Sendmail processes you have now
 Except for the one I start (with the below command line) before
 sending there is none running.

 Then you need to replicate what `/etc/rc.d/sendmail' does.  You
 have the code to that script, you also have `/etc/defaults/rc.conf'
 as a guide of the defaults supported by FreeBSD.  Happy hacking :)

 I'm not interested in rewriting `/etc/rc.d/sendmail' from scratch,
 so other than a few pointers like the following, I'm out of the
 thread:

 here is the complete transcript of my last attempt to actually
 send something: [...]

 monster-freebsd# sendmail -bd -q1m

 Here you started a sendmail process which listens for connections
 to *all* interfaces.  That's probably ok if you plan to accept
 incoming SMTP connections on _any_ interface, i.e. because you are
 running a Sendmail server accessible from outside.

 On my laptop this would be replaced by:

 /usr/sbin/sendmail -L smtpd -bd -q30m \
 -ODaemonPortOptions=Addr=localhost

 Note the use of the -O flag to make sure Sendmail is only listening
 on the localhost:25 port for mail submission requests.

 Then you have to start a *second* Sendmail instance, to flush the
 local `clientmqueue' and forward the messages you see as `Deferred'
 when you run the `mailq -Ac' command:

 monster-freebsd# mailq -Ac /var/spool/clientmqueue (8 requests) -
 -Q-ID- --Size-- -Q-Time- -
 Sender/Recipient--- lBAEQDUM0772289
 Mon Dec 10 09:26 aryeh (Deferred: Connection refused by
 [127.0.0.1]) [EMAIL PROTECTED]

 Now you have to run a second Sendmail instance, i.e. with:

 /usr/sbin/sendmail -L mailq -Ac -q10m

 NOTE: The `smtpd' and `mailq' arguments to the -L options are not
 the standard names FreeBSD assigns to these processes.  They are
 just the ones I use on my laptop.

 Since you are using a custom, local sendmail startup script, that's
  about the best I can write to get you kickstarted.  For more help
 with the way Sendmail operates, you can always refer to the
 ``Sendmail(TM) Installation and Operation Guide''.  A copy of the
 guide is conveniently installed by the FreeBSD installation process
 at:

 /usr/share/doc/smm/08.sendmailop/*

 Good luck with the startup scripts.  I don't really understand why
 you insist on rewriting something which works(TM), is featureful
 and easy to extend, like the rc.d scripts, but that's besides the
 point :-)

 - Giorgos





Above still does nothing:

monster-freebsd# /usr/sbin/sendmail -L smtpd -bd -q30m
- -ODaemonPortOptions=Addr=localhost -ODaemonPortOptions=Addr=localhost
monster-freebsd# /usr/sbin/sendmail -L mailq -Ac -q10m
monster-freebsd# mailq -v
WARNING: local host name (monster-freebsd) is not qualified; see
cf/README: WHO AM I?
/var/spool/mqueue (2 requests)
- -Q-ID- --Size-- -Priority- ---Q-Time---
- Sender/Recipient
lBCKovjf051782   10  30377 Dec 12 15:50 [EMAIL PROTECTED]
 (Deferred: 421 Connection not accepted at this time)
[EMAIL PROTECTED]
 (Deferred: 421 Connection not accepted at this time)
lBCKovjh0517829  30380 Dec 12 15:50 [EMAIL PROTECTED]
 (Deferred: 421 Connection not accepted at this time)
[EMAIL PROTECTED]
 (Deferred: 421 Connection not accepted at this time)
Total requests: 2
monster-freebsd# tail -f /var/log/maillog
Dec  9 09:15:38  newsyslog[587]: logfile first created
Dec  9 09:15:38  sm-mta[720]: starting daemon (8.14.2):
[EMAIL PROTECTED]:30:00
Dec  9 09:15:38  sm-msp-queue[724]: starting daemon (8.14.2):
[EMAIL PROTECTED]:30:00
Dec  9 12:22:28  sm-mta[729]: starting daemon (8.14.2):
[EMAIL PROTECTED]:30:00
Dec  9 12:22:28  sm-msp-queue[733]: starting daemon (8.14.2):
[EMAIL PROTECTED]:30:00





-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHYE27zIOMjAek4JIRAvzyAKCkTFuxsbH37S+JZCeG0dSwTFO98ACfWjcd
VVP9Rwa6pJ1oA6rLpBfUIdU=
=uFO1
-END PGP SIGNATURE-

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


RE: smart_host on sendmail min config

2007-12-11 Thread Daniel Eriksson
Aryeh Friedman wrote:

 What else do I need to add to this to make it work (i.e. send all mail
 via mx1.optonline.net):

If your hostname is myhostname.mydomain.tld, then do the following:

* cd /etc/mail
* make all
* edit myhostname.mydomain.tld.mc (it was created by the previous step)
and change the smart host line like you already have done:
define(`SMART_HOST', `mx2.optonline.net')dnl
* make all install restart
* try to send mail again

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


Re: smart_host on sendmail min config

2007-12-11 Thread Giorgos Keramidas
On 2007-12-10 22:00, Aryeh M. Friedman [EMAIL PROTECTED] wrote:
 Dec  9 09:15:38  newsyslog[587]: logfile first created
 Dec  9 09:15:38  sm-mta[720]: starting daemon (8.14.2): [EMAIL 
 PROTECTED]:30:00
 Dec  9 09:15:38  sm-msp-queue[724]: starting daemon (8.14.2): [EMAIL 
 PROTECTED]:30:00
 Dec  9 12:22:28  sm-mta[729]: starting daemon (8.14.2): [EMAIL 
 PROTECTED]:30:00
 Dec  9 12:22:28  sm-msp-queue[733]: starting daemon (8.14.2): [EMAIL 
 PROTECTED]:30:00
 
 completely unchanged before and after I attempted to sendmail to my
 self (after a reboot but not a restart of sendmail [I have a
 handcrafted /etc/rc so I know it doesn't run sendmail on boot])

I don't see message sending attempts above.  Since you have modified
`/etc/rc' can you show me the processes launched for Sendmail, the way
they started, and then how you are trying to send an email message?

Ideally, something like `mail -v' should show at least an attempt to
post the message to the local queue:

% $ mail -v keramida
% Subject: foo
% testing
% .
% EOT
% keramida... Connecting to [127.0.0.1] via relay...
% 220 kobe.laptop ESMTP Sendmail 8.14.2/8.14.2; Tue, 11 Dec 2007 18:26:12 +0200 
(EET)
%  EHLO kobe.laptop
% 250-kobe.laptop Hello kobe.laptop [127.0.0.1], pleased to meet you
% 250-ENHANCEDSTATUSCODES
% 250-PIPELINING
% 250-8BITMIME
% 250-SIZE
% 250-DSN
% 250-ETRN
% 250-AUTH GSSAPI DIGEST-MD5 CRAM-MD5
% 250-DELIVERBY
% 250 HELP
%  MAIL From:[EMAIL PROTECTED] SIZE=35 [EMAIL PROTECTED]
% 250 2.1.0 [EMAIL PROTECTED]... Sender ok
%  RCPT To:[EMAIL PROTECTED]
%  DATA
% 250 2.1.5 [EMAIL PROTECTED]... Recipient ok
% 354 Enter mail, end with . on a line by itself
%  .
% 250 2.0.0 lBBGQCj8018567 Message accepted for delivery
% keramida... Sent (lBBGQCj8018567 Message accepted for delivery)
% Closing connection to [127.0.0.1]
%  QUIT
% 221 2.0.0 kobe.laptop closing connection
% $

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


Re: smart_host on sendmail min config

2007-12-11 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Giorgos Keramidas wrote:
 On 2007-12-10 22:00, Aryeh M. Friedman [EMAIL PROTECTED] wrote:
 Dec  9 09:15:38  newsyslog[587]: logfile first created
 Dec  9 09:15:38  sm-mta[720]: starting daemon (8.14.2):
[EMAIL PROTECTED]:30:00
 Dec  9 09:15:38  sm-msp-queue[724]: starting daemon (8.14.2):
[EMAIL PROTECTED]:30:00
 Dec  9 12:22:28  sm-mta[729]: starting daemon (8.14.2):
[EMAIL PROTECTED]:30:00
 Dec  9 12:22:28  sm-msp-queue[733]: starting daemon (8.14.2):
[EMAIL PROTECTED]:30:00

 completely unchanged before and after I attempted to sendmail to my
 self (after a reboot but not a restart of sendmail [I have a
 handcrafted /etc/rc so I know it doesn't run sendmail on boot])

 I don't see message sending attempts above.  Since you have modified
 `/etc/rc' can you show me the processes launched for Sendmail, the way
 they started, and then how you are trying to send an email message?

 Ideally, something like `mail -v' should show at least an attempt to
 post the message to the local queue:

 % $ mail -v keramida
 % Subject: foo
 % testing
 % .
 % EOT
 % keramida... Connecting to [127.0.0.1] via relay...
 % 220 kobe.laptop ESMTP Sendmail 8.14.2/8.14.2; Tue, 11 Dec 2007
18:26:12 +0200 (EET)
 %  EHLO kobe.laptop
 % 250-kobe.laptop Hello kobe.laptop [127.0.0.1], pleased to meet you
 % 250-ENHANCEDSTATUSCODES
 % 250-PIPELINING
 % 250-8BITMIME
 % 250-SIZE
 % 250-DSN
 % 250-ETRN
 % 250-AUTH GSSAPI DIGEST-MD5 CRAM-MD5
 % 250-DELIVERBY
 % 250 HELP
 %  MAIL From:[EMAIL PROTECTED] SIZE=35 [EMAIL PROTECTED]
 % 250 2.1.0 [EMAIL PROTECTED]... Sender ok
 %  RCPT To:[EMAIL PROTECTED]
 %  DATA
 % 250 2.1.5 [EMAIL PROTECTED]... Recipient ok
 % 354 Enter mail, end with . on a line by itself
 %  .
 % 250 2.0.0 lBBGQCj8018567 Message accepted for delivery
 % keramida... Sent (lBBGQCj8018567 Message accepted for delivery)
 % Closing connection to [127.0.0.1]
 %  QUIT
 % 221 2.0.0 kobe.laptop closing connection
 % $

monster-freebsd# sendmail -bd -q1m -v
050 WARNING: local host name (monster-freebsd) is not qualified; see
cf/README: WHO AM I?
monster-freebsd# mail -v [EMAIL PROTECTED]
Subject: test fopo
dsadad
.
EOT
WARNING: local host name (monster-freebsd) is not qualified; see
cf/README: WHO AM I?
[EMAIL PROTECTED] Connecting to [127.0.0.1] via relay...
220 monster-freebsd ESMTP Sendmail 8.14.2/8.14.2; Tue, 11 Dec 2007
13:00:27 -0500 (EST)
 EHLO monster-freebsd
250-monster-freebsd Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
 MAIL From:[EMAIL PROTECTED] SIZE=56
250 2.1.0 [EMAIL PROTECTED]... Sender ok
 RCPT To:[EMAIL PROTECTED]
 DATA
250 2.1.5 [EMAIL PROTECTED]... Recipient ok
354 Enter mail, end with . on a line by itself
 .
250 2.0.0 lBBI0RgU000340 Message accepted for delivery
[EMAIL PROTECTED] Sent (lBBI0RgU000340 Message accepted for
delivery)
Closing connection to [127.0.0.1]
 QUIT
221 2.0.0 monster-freebsd closing connection


-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHXtCizIOMjAek4JIRAoc6AKCpJfHrBjp6ggnJ8ofcHr8aeGHLWQCcDAIV
HhNmOsaup3n4HTwDHsezl/Q=
=RKbz
-END PGP SIGNATURE-

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


Re: smart_host on sendmail min config

2007-12-11 Thread Giorgos Keramidas
On 2007-12-11 13:02, Aryeh M. Friedman [EMAIL PROTECTED] wrote:
 Ideally, something like `mail -v' should show at least an attempt to
 post the message to the local queue: [...]

 monster-freebsd# sendmail -bd -q1m -v
 050 WARNING: local host name (monster-freebsd) is not qualified; see
 cf/README: WHO AM I?
 monster-freebsd# mail -v [EMAIL PROTECTED]
 Subject: test fopo
 dsadad
 .
 EOT
 WARNING: local host name (monster-freebsd) is not qualified; see cf/README: 
 WHO AM I?
 [EMAIL PROTECTED] Connecting to [127.0.0.1] via relay...
 220 monster-freebsd ESMTP Sendmail 8.14.2/8.14.2; Tue, 11 Dec 2007
 13:00:27 -0500 (EST)
  EHLO monster-freebsd
 250-monster-freebsd Hello localhost [127.0.0.1], pleased to meet you
[...]
 354 Enter mail, end with . on a line by itself
  .
 250 2.0.0 lBBI0RgU000340 Message accepted for delivery
 [EMAIL PROTECTED] Sent (lBBI0RgU000340 Message accepted for delivery)
 Closing connection to [127.0.0.1]
  QUIT
 221 2.0.0 monster-freebsd closing connection

Neat!  Your local Sendmail submission service works then.  You should be
able to see the message in the `clientmqueue' with:

mailq -Ac

Now, can you show us how your local rc system starts Sendmail, and the
active Sendmail processes you are using?  It may be working fine, but
only queueing messages in `/var/spool/clientmqueue'.  A queue runner
should also be started to periodically scan and handle the clientmqueue
messages.

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


Re: smart_host on sendmail min config

2007-12-11 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Giorgos Keramidas wrote:
 On 2007-12-11 13:02, Aryeh M. Friedman [EMAIL PROTECTED]
 wrote:
 Ideally, something like `mail -v' should show at least an
 attempt to post the message to the local queue: [...]
 monster-freebsd# sendmail -bd -q1m -v 050 WARNING: local host
 name (monster-freebsd) is not qualified; see cf/README: WHO AM I?
  monster-freebsd# mail -v [EMAIL PROTECTED] Subject: test
 fopo dsadad . EOT WARNING: local host name (monster-freebsd) is
 not qualified; see cf/README: WHO AM I?
 [EMAIL PROTECTED] Connecting to [127.0.0.1] via
 relay... 220 monster-freebsd ESMTP Sendmail 8.14.2/8.14.2; Tue,
 11 Dec 2007 13:00:27 -0500 (EST)
 EHLO monster-freebsd
 250-monster-freebsd Hello localhost [127.0.0.1], pleased to meet
 you
 [...]
 354 Enter mail, end with . on a line by itself
 .
 250 2.0.0 lBBI0RgU000340 Message accepted for delivery
 [EMAIL PROTECTED] Sent (lBBI0RgU000340 Message accepted
 for delivery) Closing connection to [127.0.0.1]
 QUIT
 221 2.0.0 monster-freebsd closing connection

 Neat!  Your local Sendmail submission service works then.  You
 should be able to see the message in the `clientmqueue' with:

 mailq -Ac

 Now, can you show us how your local rc system starts Sendmail, and
 the active Sendmail processes you are using?  It may be working
 fine, but only queueing messages in `/var/spool/clientmqueue'.  A
 queue runner should also be started to periodically scan and handle
 the clientmqueue messages.


monster-freebsd# !sen
sendmail -bd -q1m -v
# very long pause
050 WARNING: local host name (monster-freebsd) is not qualified; see
cf/README: WHO AM I?
monster-freebsd# mailq -Ac
# very long pause
/var/spool/clientmqueue (8 requests)
- -Q-ID- --Size-- -Q-Time-
- Sender/Recipient---
lBAEQDUM0772289 Mon Dec 10 09:26 aryeh
 (Deferred: Connection refused by [127.0.0.1])
 [EMAIL PROTECTED]
lBAEtoDS0761480 Mon Dec 10 09:55 aryeh
 (Deferred: Connection refused by [127.0.0.1])
 [EMAIL PROTECTED]
lBALxPJ30002809 Mon Dec 10 16:59 aryeh
 (Deferred: Connection refused by [127.0.0.1])
 [EMAIL PROTECTED]
lBAEZsSH0589548 Mon Dec 10 09:35 aryeh
 (Deferred: Connection refused by [127.0.0.1])
 [EMAIL PROTECTED]
lBBHuZ2I0003257 Tue Dec 11 12:56 aryeh
 (Deferred: Connection refused by [127.0.0.1])
 [EMAIL PROTECTED]
lBAF5WYM0901525 Mon Dec 10 10:05 aryeh
 (Deferred: Connection refused by [127.0.0.1])
 [EMAIL PROTECTED]
lBAEQhZL082703   10 Mon Dec 10 09:26 aryeh
 (Deferred: Connection refused by [127.0.0.1])
 [EMAIL PROTECTED]
lBAF6r3W0057819 Mon Dec 10 10:06 aryeh
 (Deferred: Connection refused by [127.0.0.1])
 [EMAIL PROTECTED]
Total requests: 8

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHXtYuzIOMjAek4JIRAhkkAJ9ww89bT/y8y6IdEids2VRBnKg6tQCgmuqe
T65HD60dLsGjs1GxucciyUs=
=/Th9
-END PGP SIGNATURE-

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


Re: smart_host on sendmail min config

2007-12-11 Thread Mark Tinguely
It has been a long time since I tested rule sets, but try this:

(system prompt)$ sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter ruleset address
 3,0 [EMAIL PROTECTED]

Sendmail will print the rules it uses to parse the address. It should end
with something like:

 parsereturns: $# relay $@ YOUR . SMARTMAILER . DOMAIN $: user  @ 
gmail . com . 

Where YOUR.SMARTMAILER.DOMAIN is defined in your /etc/mail/sendmail.cf
as your relay mailer.

It should return your smart mailer even if the mail address does not resolve,
the smart mailer.

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


Re: smart_host on sendmail min config

2007-12-11 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Giorgos Keramidas wrote:
 On 2007-12-11 13:25, Aryeh M. Friedman [EMAIL PROTECTED]
 wrote:
 Giorgos Keramidas wrote:
 Neat!  Your local Sendmail submission service works then.  You
 should be able to see the message in the `clientmqueue' with:

 mailq -Ac

 Now, can you show us how your local rc system starts Sendmail,
 and the active Sendmail processes you are using?  It may be
 working fine, but only queueing messages in
 `/var/spool/clientmqueue'.  A queue runner should also be
 started to periodically scan and handle the clientmqueue
 messages.

 I'm sorry, but this is the *third* time I am asking the same thing,
 and it's getting a bit boring.  Do you _really_ want help, or just
 to have a bit of email fun for a while?

 You still haven't shown us:

 * How your local rc system starts Sendmail

Until I can get it right from the command line I am not going to
include it in my /etc/rc thus currently there is none

 * The active Sendmail processes you have now

Except for the one I start (with the below command line) before
sending there is none running... here is the complete transcript of my
last attempt to actually send something:

 su
Password:
su: Sorry
 clear

 su
Password:
monster-freebsd# sendmail -bd -q1m
monster-freebsd# mail -v [EMAIL PROTECTED]
Subject: test foo
asdasdads
.
EOT
WARNING: local host name (monster-freebsd) is not qualified; see
cf/README: WHO AM I?
[EMAIL PROTECTED] Connecting to [127.0.0.1] via relay...
220 monster-freebsd ESMTP Sendmail 8.14.2/8.14.2; Tue, 11 Dec 2007
13:48:37 -0500 (EST)
 EHLO monster-freebsd
250-monster-freebsd Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
 MAIL From:[EMAIL PROTECTED] SIZE=58
250 2.1.0 [EMAIL PROTECTED]... Sender ok
 RCPT To:[EMAIL PROTECTED] DATA
250 2.1.5 [EMAIL PROTECTED]... Recipient ok
354 Enter mail, end with . on a line by itself
 .
250 2.0.0 lBBImbEm000465 Message accepted for delivery
[EMAIL PROTECTED] Sent (lBBImbEm000465 Message accepted for
delivery)
Closing connection to [127.0.0.1]
 QUIT
221 2.0.0 monster-freebsd closing connection
monster-freebsd# mailq -av
mailq: illegal option -- a
monster-freebsd# mailq -Ac
/var/spool/clientmqueue (8 requests)
- -Q-ID- --Size-- -Q-Time-
- Sender/Recipient---
lBAEQDUM0772289 Mon Dec 10 09:26 aryeh
 (Deferred: Connection refused by [127.0.0.1])
 [EMAIL PROTECTED]
lBAEtoDS0761480 Mon Dec 10 09:55 aryeh
 (Deferred: Connection refused by [127.0.0.1])
 [EMAIL PROTECTED]
lBALxPJ30002809 Mon Dec 10 16:59 aryeh
 (Deferred: Connection refused by [127.0.0.1])
 [EMAIL PROTECTED]
lBAEZsSH0589548 Mon Dec 10 09:35 aryeh
 (Deferred: Connection refused by [127.0.0.1])
 [EMAIL PROTECTED]
lBBHuZ2I0003257 Tue Dec 11 12:56 aryeh
 (Deferred: Connection refused by [127.0.0.1])
 [EMAIL PROTECTED]
lBAF5WYM0901525 Mon Dec 10 10:05 aryeh
 (Deferred: Connection refused by [127.0.0.1])
 [EMAIL PROTECTED]
lBAEQhZL082703   10 Mon Dec 10 09:26 aryeh
 (Deferred: Connection refused by [127.0.0.1])
 [EMAIL PROTECTED]
lBAF6r3W0057819 Mon Dec 10 10:06 aryeh
 (Deferred: Connection refused by [127.0.0.1])
 [EMAIL PROTECTED]
Total requests: 8


 monster-freebsd# !sen sendmail -bd -q1m -v # very long pause 050
 WARNING: local host name (monster-freebsd) is not qualified; see
 cf/README: WHO AM I?

 Your DNS is broken, and Sendmail cannot resolve `monster-freebsd'.
 That's not a Sendmail issue, so I'm ignoring that for now.

 monster-freebsd# mailq -Ac # very long pause
 /var/spool/clientmqueue (8 requests) - -Q-ID- --Size--
 -Q-Time- - Sender/Recipient---
 lBAEQDUM0772289 Mon Dec 10 09:26 aryeh (Deferred:
 Connection refused by [127.0.0.1]) [EMAIL PROTECTED]

 No submission service running.  You have to start at least some
 process which listens on 127.0.0.1:25 for incoming email requests
 and a queue runner for clientmqueue.  I haven't seen any ps
 xauwww output for the Sendmail processes you are currently
 running, so no idea why you don't have a listener on 127.0.0.1:25.

See above



-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHXtyuzIOMjAek4JIRAjIdAJ9oJuphO++u0yNYmoKk/XqNAMNCzACeKQ6X
+NbyusNUDP8K3WBuOV6h+mw=
=fHGK
-END PGP SIGNATURE-


Re: smart_host on sendmail min config

2007-12-11 Thread Giorgos Keramidas
On 2007-12-11 13:25, Aryeh M. Friedman [EMAIL PROTECTED] wrote:
Giorgos Keramidas wrote:
 Neat!  Your local Sendmail submission service works then.  You
 should be able to see the message in the `clientmqueue' with:

 mailq -Ac

 Now, can you show us how your local rc system starts Sendmail, and
 the active Sendmail processes you are using?  It may be working
 fine, but only queueing messages in `/var/spool/clientmqueue'.  A
 queue runner should also be started to periodically scan and handle
 the clientmqueue messages.

I'm sorry, but this is the *third* time I am asking the same thing, and
it's getting a bit boring.  Do you _really_ want help, or just to have a
bit of email fun for a while?

You still haven't shown us:

* How your local rc system starts Sendmail

* The active Sendmail processes you have now

 monster-freebsd# !sen
 sendmail -bd -q1m -v
 # very long pause
 050 WARNING: local host name (monster-freebsd) is not qualified; see
 cf/README: WHO AM I?

Your DNS is broken, and Sendmail cannot resolve `monster-freebsd'.
That's not a Sendmail issue, so I'm ignoring that for now.

 monster-freebsd# mailq -Ac
 # very long pause
 /var/spool/clientmqueue (8 requests)
 - -Q-ID- --Size-- -Q-Time-
 - Sender/Recipient---
 lBAEQDUM0772289 Mon Dec 10 09:26 aryeh
  (Deferred: Connection refused by [127.0.0.1])
  [EMAIL PROTECTED]

No submission service running.  You have to start at least some process
which listens on 127.0.0.1:25 for incoming email requests and a queue
runner for clientmqueue.  I haven't seen any ps xauwww output for the
Sendmail processes you are currently running, so no idea why you don't
have a listener on 127.0.0.1:25.

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


Re: smart_host on sendmail min config

2007-12-11 Thread Bill Vermillion
Putting quill to paper and scribbling furiously on Tue, Dec 11,
2007 at 22:19 , [EMAIL PROTECTED] missed
achieving immortality when he said:

 Date: Tue, 11 Dec 2007 20:40:46 +0200
 From: Giorgos Keramidas [EMAIL PROTECTED]
 Subject: Re: smart_host on sendmail min config

 On 2007-12-11 13:25, Aryeh M. Friedman
 [EMAIL PROTECTED] wrote:

 Giorgos Keramidas wrote:

  Neat!  Your local Sendmail submission service works then.  You
  should be able to see the message in the `clientmqueue' with:

  mailq -Ac

  Now, can you show us how your local rc system starts Sendmail, and
  the active Sendmail processes you are using?  It may be working
  fine, but only queueing messages in `/var/spool/clientmqueue'.  A
  queue runner should also be started to periodically scan and handle
  the clientmqueue messages.

 I'm sorry, but this is the *third* time I am asking the same
 thing, and it's getting a bit boring. Do you _really_ want help,
 or just to have a bit of email fun for a while?

 You still haven't shown us:

 * How your local rc system starts Sendmail

 * The active Sendmail processes you have now

  monster-freebsd# !sen
  sendmail -bd -q1m -v
  # very long pause
  050 WARNING: local host name (monster-freebsd) is not qualified; see
  cf/README: WHO AM I?

 Your DNS is broken, and Sendmail cannot resolve `monster-freebsd'.
 That's not a Sendmail issue, so I'm ignoring that for now.

Doesn't need dns.  /etc/hosts will be fine.  BUT he also needs
to put the proper name in /etc/rc.conf.

Perhaps  monster-freebsd.local would take care of that.
The refusal to accept mail by the local IP 127.0.0.1 is because
there is no FQDN - but you don't need to have it in DNS.

  monster-freebsd# mailq -Ac
  # very long pause
  /var/spool/clientmqueue (8 requests)
  - -Q-ID- --Size-- -Q-Time-
  - Sender/Recipient---
  lBAEQDUM0772289 Mon Dec 10 09:26 aryeh
   (Deferred: Connection refused by [127.0.0.1])
   [EMAIL PROTECTED]

 No submission service running. You have to start at least
 some process which listens on 127.0.0.1:25 for incoming email
 requests and a queue runner for clientmqueue. I haven't seen
 any ps xauwww output for the Sendmail processes you are
 currently running, so no idea why you don't have a listener on
 127.0.0.1:25.

Since the local server is refusing it, that's because of
the no proper domain name 'monster-freebsd'.   The submission
service could be running, but since the system doesn't know it's
own name it wont receive mail.  He should also have 'localhost'
in /etc/mail/local-host-names [or whatever it is refereneced
by in the sendmail.cf, and then also add the monster-freebsd.local
to that file too.   If there is nothing in the local-host-names
the system won't know the mail is destined to the local machine.

Bill


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


Re: smart_host on sendmail min config

2007-12-11 Thread Giorgos Keramidas
On 2007-12-11 13:53, Aryeh M. Friedman [EMAIL PROTECTED] wrote:
Giorgos Keramidas wrote:
 You still haven't shown us:

 * How your local rc system starts Sendmail
 
 Until I can get it right from the command line I am not going to
 include it in my /etc/rc thus currently there is none

 * The active Sendmail processes you have now
 
 Except for the one I start (with the below command line) before
 sending there is none running.

Then you need to replicate what `/etc/rc.d/sendmail' does.  You have the
code to that script, you also have `/etc/defaults/rc.conf' as a guide of
the defaults supported by FreeBSD.  Happy hacking :)

I'm not interested in rewriting `/etc/rc.d/sendmail' from scratch, so
other than a few pointers like the following, I'm out of the thread:

 here is the complete transcript of my last attempt to actually send
 something: [...]

 monster-freebsd# sendmail -bd -q1m

Here you started a sendmail process which listens for connections to
*all* interfaces.  That's probably ok if you plan to accept incoming
SMTP connections on _any_ interface, i.e. because you are running a
Sendmail server accessible from outside.

On my laptop this would be replaced by:

/usr/sbin/sendmail -L smtpd -bd -q30m \
-ODaemonPortOptions=Addr=localhost

Note the use of the -O flag to make sure Sendmail is only listening on
the localhost:25 port for mail submission requests.

Then you have to start a *second* Sendmail instance, to flush the local
`clientmqueue' and forward the messages you see as `Deferred' when you
run the `mailq -Ac' command:

 monster-freebsd# mailq -Ac
 /var/spool/clientmqueue (8 requests)
 - -Q-ID- --Size-- -Q-Time-
 - Sender/Recipient---
 lBAEQDUM0772289 Mon Dec 10 09:26 aryeh
  (Deferred: Connection refused by [127.0.0.1])
  [EMAIL PROTECTED]

Now you have to run a second Sendmail instance, i.e. with:

/usr/sbin/sendmail -L mailq -Ac -q10m

NOTE: The `smtpd' and `mailq' arguments to the -L options are not the
standard names FreeBSD assigns to these processes.  They are just the
ones I use on my laptop.

Since you are using a custom, local sendmail startup script, that's
about the best I can write to get you kickstarted.  For more help with
the way Sendmail operates, you can always refer to the ``Sendmail(TM)
Installation and Operation Guide''.  A copy of the guide is conveniently
installed by the FreeBSD installation process at:

/usr/share/doc/smm/08.sendmailop/*

Good luck with the startup scripts.  I don't really understand why you
insist on rewriting something which works(TM), is featureful and easy to
extend, like the rc.d scripts, but that's besides the point :-)

- Giorgos

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


Re: smart_host on sendmail min config

2007-12-10 Thread Chuck Swiger

On Dec 10, 2007, at 11:40 AM, Aryeh Friedman wrote:

What else do I need to add to this to make it work (i.e. send all mail
via mx1.optonline.net):

OSTYPE(`freebsd6')dnl
define(`SMART_HOST', `mx2.optonline.net')dnl


Look at /etc/mail/freebsd.mc and edit the SMART_HOST line as above.   
(Note that you can copy freebsd.mc to hostname.mc and use the latter  
filename in order to avoid modifying the generic template file.)



btw shouldn't there be a frebsd7 or freebsd8 OSTYPE? (I run -current)


There eventually will be, but there isn't likely to be a difference  
between the freebsd6.m4 file and a freebsd7.m4...nothing has changed  
which would affect sendmail.


--
-Chuck
 
___

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


Re: smart_host on sendmail min config

2007-12-10 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chuck Swiger wrote:
 On Dec 10, 2007, at 11:40 AM, Aryeh Friedman wrote:
 What else do I need to add to this to make it work (i.e. send all
 mail via mx1.optonline.net):

 OSTYPE(`freebsd6')dnl define(`SMART_HOST',
 `mx2.optonline.net')dnl

 Look at /etc/mail/freebsd.mc and edit the SMART_HOST line as above.
  (Note that you can copy freebsd.mc to hostname.mc and use the
 latter filename in order to avoid modifying the generic template
 file.)
Just tried that the ISP just eats a test message (to the addr I am
sending this from) but a direct telnet to port 25 on the smart host
works fine

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHXVZwzIOMjAek4JIRAsRYAJ9z7QBEs0FZdtdAA8UbJKxrJczx4wCfWJmh
R0HBLRqQhgP4bKk/uLCOAO4=
=Ga9G
-END PGP SIGNATURE-

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


Re: smart_host on sendmail min config

2007-12-10 Thread Giorgos Keramidas
On 2007-12-10 15:08, Aryeh M. Friedman [EMAIL PROTECTED] wrote:
Chuck Swiger wrote:
On Dec 10, 2007, at 11:40 AM, Aryeh Friedman wrote:
 What else do I need to add to this to make it work (i.e. send all
 mail via mx1.optonline.net):

 OSTYPE(`freebsd6')dnl define(`SMART_HOST',
 `mx2.optonline.net')dnl

 Look at /etc/mail/freebsd.mc and edit the SMART_HOST line as above.
 (Note that you can copy freebsd.mc to hostname.mc and use the latter
 filename in order to avoid modifying the generic template file.)

 Just tried that the ISP just eats a test message (to the addr I am
 sending this from) but a direct telnet to port 25 on the smart host
 works fine

If a direct telnet to port 25 works, then SMART_HOST should work too.

Can you grab log messages from `/var/log/maillog', and post them?

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


Re: smart_host on sendmail min config

2007-12-10 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Giorgos Keramidas wrote:
 On 2007-12-10 15:08, Aryeh M. Friedman [EMAIL PROTECTED]
 wrote:
 Chuck Swiger wrote:
 On Dec 10, 2007, at 11:40 AM, Aryeh Friedman wrote:
 What else do I need to add to this to make it work (i.e. send
 all mail via mx1.optonline.net):

 OSTYPE(`freebsd6')dnl define(`SMART_HOST',
 `mx2.optonline.net')dnl
 Look at /etc/mail/freebsd.mc and edit the SMART_HOST line as
 above. (Note that you can copy freebsd.mc to hostname.mc and
 use the latter filename in order to avoid modifying the generic
 template file.)
 Just tried that the ISP just eats a test message (to the addr I
 am sending this from) but a direct telnet to port 25 on the smart
 host works fine

 If a direct telnet to port 25 works, then SMART_HOST should work
 too.

 Can you grab log messages from `/var/log/maillog', and post them?


Dec  9 09:15:38  newsyslog[587]: logfile first created
Dec  9 09:15:38  sm-mta[720]: starting daemon (8.14.2):
[EMAIL PROTECTED]:30:00
Dec  9 09:15:38  sm-msp-queue[724]: starting daemon (8.14.2):
[EMAIL PROTECTED]:30:00
Dec  9 12:22:28  sm-mta[729]: starting daemon (8.14.2):
[EMAIL PROTECTED]:30:00
Dec  9 12:22:28  sm-msp-queue[733]: starting daemon (8.14.2):
[EMAIL PROTECTED]:30:00

completely unchanged before and after I attempted to sendmail to my
self (after a reboot but not a restart of sendmail [I have a
handcrafted /etc/rc so I know it doesn't run sendmail on boot])
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHXbcTzIOMjAek4JIRAun7AJ45Ob3ud9v+9iSzpX4LbJfT664VHwCglfKr
/6kkyEAuM2iPbU/9EIbb6LU=
=XkM6
-END PGP SIGNATURE-

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