Sendmail aliases mystery

2004-04-19 Thread Toomas Aas
Hello!

After updating my firewall from RELENG_4_8 to RELENG_4_9 I observe an 
interesting behaviour of Sendmail (using the base system Sendmail). It 
doesn't seem to honor it's aliases database after server is started, 
but starts to do so once I run 'cd /etc/mail  make restart'.

I have the following line in /etc/mail/aliases:

root: [EMAIL PROTECTED]

However, the daily periodic reports (which is essentially the only mail 
this box sends) are sent to [EMAIL PROTECTED], which 
in this case means that they essentially go nowhere. When the system is 
in this state and I use 'mail root' from the command line, the mail 
also goes to [EMAIL PROTECTED] However, after I manually restart Sendmail as 
described above, mail to root starts to go to it's destined address 
([EMAIL PROTECTED]).

The dates on /etc/mail/aliases and /etc/mail/aliases.db indicate that 
'newaliases' has been run after modifying the aliases file. I have run 
it a couple of times extra, just for the good measure, but it doesn't 
seem to change Sendmail's behaviour.

grep sendmail /etc/rc.conf:
sendmail_enable=NO

grep root /etc/mail/aliases:
# Pretty much everything else in this file points to root, so
# you would do well in either reading root's mailbox or forwarding
# root's email from here.
root:   [EMAIL PROTECTED]
postmaster: root
bin:root
bind:   root
daemon: root
games:  root
kmem:   root
man:root
news:   root
nobody: root
operator: root
pop:root
sshd:   root
system: root
toor:   root
tty:root
uucp:   root
xten:   root
abuse:  root
# noc:  root
security:   root
ftp:root
# hostmaster:   root
# webmaster:root
--
Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/
* 24 hours in a day, 24 beers in a case. Coincidence?

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


Re: Sendmail aliases mystery

2004-04-19 Thread Matthew Seaman
On Mon, Apr 19, 2004 at 10:15:04AM +0300, Toomas Aas wrote:

 However, the daily periodic reports (which is essentially the only mail 
 this box sends) are sent to [EMAIL PROTECTED], which 
 in this case means that they essentially go nowhere. When the system is 
 in this state and I use 'mail root' from the command line, the mail 
 also goes to [EMAIL PROTECTED] However, after I manually restart Sendmail as 
 described above, mail to root starts to go to it's destined address 
 ([EMAIL PROTECTED]).

Most odd.  Is there anything in the log files (/var/log/maillog) to
indicate what the problem might be?

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 aliases mystery

2004-04-19 Thread Toomas Aas
Hi!

Date sent:Mon, 19 Apr 2004 09:57:15 +0100
From: Matthew Seaman [EMAIL PROTECTED]

 Most odd.  Is there anything in the log files (/var/log/maillog) to
 indicate what the problem might be?

Nothing that I can see. When Sendmail starts up, only the following is 
logged:

Apr 17 21:53:41 80-235-112-80-dsl sm-mta[95]: starting daemon (8.12.9p2): [EMAIL 
PROTECTED]:30:00 
Apr 17 21:53:41 80-235-112-80-dsl sm-msp-queue[98]: starting daemon (8.12.9p2): [EMAIL 
PROTECTED]:30:00

And the two daily messages being sent cause the following to be logged:

Apr 18 03:02:55 80-235-112-80-dsl sendmail[583]: i3I02t6A000583: from=root, size=490, 
class=0, nrcpts=1, msgid=[EMAIL PROTECTED], [EMAIL PROTECTED]
Apr 18 03:02:56 80-235-112-80-dsl sendmail[627]: i3I02uM627: from=root, size=1674, 
class=0, nrcpts=1, msgid=[EMAIL PROTECTED], [EMAIL PROTECTED]
Apr 18 03:02:56 80-235-112-80-dsl sm-mta[631]: i3I02ubN000631: from=[EMAIL 
PROTECTED], size=882, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], proto=ESMTP, 
daemon=Daemon0, relay=localhost 
 [127.0.0.1]
Apr 18 03:02:56 80-235-112-80-dsl sm-mta[632]: i3I02ubN000632: from=[EMAIL 
PROTECTED], size=2066, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], proto=ESMTP, 
daemon=Daemon0, relay=localhost 
 [127.0.0.1]
Apr 18 03:02:57 80-235-112-80-dsl sendmail[583]: i3I02t6A000583: to=root, ctladdr=root 
(0/0), delay=00:00:02, xdelay=00:00:01, mailer=relay, pri=30057, relay=[127.0.0.1] 
[127.0.0.1], dsn=2.0.0, stat=Sent (i3I02ubN000631 Message accepted for delivery)
Apr 18 03:02:57 80-235-112-80-dsl sendmail[627]: i3I02uM627: to=root, ctladdr=root 
(0/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30054, relay=[127.0.0.1] 
[127.0.0.1], dsn=2.0.0, stat=Sent (i3I02ubN000632 Message accepted for delivery)
Apr 18 03:02:58 80-235-112-80-dsl sm-mta[634]: STARTTLS=client, relay=mail.neti.ee, 
version=TLSv1/SSLv3, verify=FAIL, cipher=EDH-RSA-DES-CBC3-SHA, bits=168/168
Apr 18 03:02:58 80-235-112-80-dsl sm-mta[636]: STARTTLS=client, relay=mail.neti.ee, 
version=TLSv1/SSLv3, verify=FAIL, cipher=EDH-RSA-DES-CBC3-SHA, bits=168/168
Apr 18 03:02:59 80-235-112-80-dsl sm-mta[634]: i3I02ubN000631: to=[EMAIL PROTECTED], 
delay=00:00:03, xdelay=00:00:02, mailer=relay, pri=30449, relay=mail.neti.ee 
[194.126.101.100], dsn=2.0.0, stat=Sent (Ok: queued as CE03B2F77B)
Apr 18 03:02:59 80-235-112-80-dsl sm-mta[636]: i3I02ubN000632: to=[EMAIL PROTECTED], 
delay=00:00:03, xdelay=00:00:02, mailer=relay, pri=30446, relay=mail.neti.ee 
[194.126.101.100], dsn=2.0.0, stat=Sent (Ok: queued as CFB932FD99)

After sendmail has ben restarted, everything looks the same except the two last lines:

Apr 13 03:02:24 80-235-112-80-dsl sm-mta[21690]: i3D02Lfq021688: [EMAIL PROTECTED], 
ctladdr=[EMAIL PROTECTED] (0/0), delay=00:00:03, xdelay=00:00:03, mailer=relay, 
pri=32401, relay=mail.neti.ee [194.126.101.100], 
 dsn=2.0.0 stat=Sent (Ok: queued as 6A1F62C80E)
Apr 13 03:02:24 80-235-112-80-dsl sm-mta[21689]: i3D02Kfq021675: [EMAIL PROTECTED], 
ctladdr=[EMAIL PROTECTED] (0/0), delay=00:00:04, xdelay=00:00:03, mailer=relay, 
pri=31409, relay=mail.neti.ee [194.126.101.100], 
 dsn=2.0.0 tat=Sent (Ok: queued as 6E9E6211B0)


Also, there doesn't seem to be anything unusual in /var/log/messages.
--
Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/
* You can't have everything. Where would you put it?

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


Re: Sendmail aliases mystery

2004-04-19 Thread Matthew Seaman
On Mon, Apr 19, 2004 at 12:45:14PM +0300, Toomas Aas wrote:
 Hi!
 
 Date sent:Mon, 19 Apr 2004 09:57:15 +0100
 From: Matthew Seaman [EMAIL PROTECTED]
 
  Most odd.  Is there anything in the log files (/var/log/maillog) to
  indicate what the problem might be?
 
 Nothing that I can see. When Sendmail starts up, only the following is 
 logged:
 
 Apr 17 21:53:41 80-235-112-80-dsl sm-mta[95]: starting daemon (8.12.9p2): [EMAIL 
 PROTECTED]:30:00 
 Apr 17 21:53:41 80-235-112-80-dsl sm-msp-queue[98]: starting daemon (8.12.9p2): 
 [EMAIL PROTECTED]:30:00

[...]

That log output appears to be entirely normal.  In the case where the
alias is not being applied, it's just as if there's no (or an empty)
alias file there.

You do seem to have a stray tab character in your aliases file --
which results in the appearance of this:

 [EMAIL PROTECTED], 
 ^^

But that shouldn't cause any of the effects you've been seeing.

Have you customized the `hostname`.mc file at all?  If you have, could
you port it here?

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 aliases mystery

2004-04-19 Thread Matthew Seaman
On Mon, Apr 19, 2004 at 11:18:40AM +0100, Matthew Seaman wrote:

 To: Toomas Aas [EMAIL PROTECTED], [EMAIL PROTECTED],
 ctladdr= [EMAIL PROTECTED]
 Mail-Followup-To: Matthew Seaman [EMAIL PROTECTED],
 Toomas Aas [EMAIL PROTECTED], [EMAIL PROTECTED],
 ctladdr= [EMAIL PROTECTED],
 [EMAIL PROTECTED]

Ooops.  Apologies all.  Let this be a lesson: never sneeze when your
finger is on the 'paste' button.  Please trim the nonsense out of any
replies.

 On Mon, Apr 19, 2004 at 12:45:14PM +0300, Toomas Aas wrote:
  Hi!
  
  Date sent:Mon, 19 Apr 2004 09:57:15 +0100
  From: Matthew Seaman [EMAIL PROTECTED]
  
   Most odd.  Is there anything in the log files (/var/log/maillog) to
   indicate what the problem might be?
  
  Nothing that I can see. When Sendmail starts up, only the following is 
  logged:
  
  Apr 17 21:53:41 80-235-112-80-dsl sm-mta[95]: starting daemon (8.12.9p2): [EMAIL 
  PROTECTED]:30:00 
  Apr 17 21:53:41 80-235-112-80-dsl sm-msp-queue[98]: starting daemon (8.12.9p2): 
  [EMAIL PROTECTED]:30:00
 
 [...]
 
 That log output appears to be entirely normal.  In the case where the
 alias is not being applied, it's just as if there's no (or an empty)
 alias file there.
 
 You do seem to have a stray tab character in your aliases file --
 which results in the appearance of this:
 
  [EMAIL PROTECTED], 
  ^^
 
 But that shouldn't cause any of the effects you've been seeing.
 
 Have you customized the `hostname`.mc file at all?  If you have, could
 you port it here?

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 aliases mystery

2004-04-19 Thread Toomas Aas
Hi!

Have you customized the `hostname`.mc file at all?  If you have, could
you port it here?

80-235-112-80-dsl# diff 80-235-112-80-dsl.mc freebsd.mc

47c47
 VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.10.2.17 2002/11/14 03:21:18 
keramida Exp$') --- 
 VERSIONID(`$FreeBSD: src/etc/sendmail/freebsd.mc,v 1.10.2.18 2003/04/24 16:57:30 
 gshapiro Exp$') 
91d90 
 define(`SMART_HOST', `mail.neti.ee')

I hope the line wrapping won't ruin the above - what I wanted 
to say essentially is that I've only added the SMART_HOST line. The logs in my
previous messages show that the change has taken effect.

I have the following line in /etc/make.conf which was in use during the 
latest buildworld:

SENDMAIL_MC=/etc/mail/80-235-112-80-dsl.mc
--
Toomas Aas | [EMAIL PROTECTED] | http://www.raad.tartu.ee/~toomas/
* What are you looking down here for? Read the message!

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