Re: newaliases not working?

2007-02-07 Thread Warren Block

On Tue, 6 Feb 2007, Doug Sampson wrote:


I'm having trouble getting the periodic reports sent out on a daily basis
from a FreeBSD 6.2 server. I've changed the /etc/aliases file so that root
points to an administrative mail address.


You can do that directly in /etc/periodic.conf:

daily_output=[EMAIL PROTECTED]

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


RE: newaliases not working?

2007-02-07 Thread Doug Sampson
  Mail log below. The first four lines are a result of 
 running 'periodic
  daily'. The last four lines is when I address a mail directly to
  admin(at)dawnsign.com (the @ sign has been changed to protect it).
 
  Feb  6 17:00:03 ftp sendmail[11196]: l17103fh011196: from=root,  
  size=38,
  class=0, nrcpts=1,  
  msgid=[EMAIL PROTECTED],
  [EMAIL PROTECTED]
  Feb  6 17:00:03 ftp sm-mta[11197]: l17103eC011197:
  from=[EMAIL PROTECTED], size=367, class=0, nrcpts=1,
  msgid=[EMAIL PROTECTED], proto=ESMTP,
  daemon=Daemon0, relay=localhost [127.0.0.1]
  Feb  6 17:00:03 ftp sendmail[11196]: l17103fh011196: to=to:root,
  ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay,
  pri=30038, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent
  (l17103eC011197 Message accepted for delivery)
 
 Looks like you have a bad entry in /etc/mail/aliases
 
 This to=to:root, should look like to=dougs
 
 Post the relevant lines from your aliases file.
 

# 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:   admin(at)dawnsign.com   
replaced @ sign with (at)
 to
prevent spamming
# Basic system aliases -- these MUST be present
MAILER-DAEMON: postmaster
postmaster: root

# General redirections for pseudo accounts
_dhcp:  root
_pflogd: root
bin:root
bind:   root
daemon: root
games:  root
kmem:   root
mailnull: postmaster
man:root
news:   root
nobody: root
operator: root
pop:root
proxy:  root
smmsp:  postmaster
sshd:   root
system: root
toor:   root
tty:root
usenet: news
uucp:   root

Oh, and I noticed that I had been typing 
  mail to:root
instead of 
  mail root
at the command prompt. Thus that would explain why in the logs yesterday we
were seeing to=to:root.

This morning, I tried again with the mail command and here's the outout from
the maillog:

Feb  7 10:18:43 ftp sendmail[13901]: l17IIhhO013901: from=root, size=46,
class=0, nrcpts=1, msgid=[EMAIL PROTECTED],
[EMAIL PROTECTED]
Feb  7 10:18:43 ftp sm-mta[13902]: l17IIh7l013902:
from=[EMAIL PROTECTED], size=372, class=0, nrcpts=1,
msgid=[EMAIL PROTECTED], proto=ESMTP,
daemon=Daemon0, relay=localhost [127.0.0.1]
Feb  7 10:18:43 ftp sendmail[13901]: l17IIhhO013901: to=root, ctladdr=root
(0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30046,
relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l17IIh7l013902 Message
accepted for delivery)
Feb  7 10:18:44 ftp sm-mta[13904]: l17IIh7l013902:
to=[EMAIL PROTECTED], delay=00:00:01, xdelay=00:00:01, mailer=esmtp,
pri=30372, relay=mercury.dawnsign.com. [192.168.1.4], dsn=2.0.0, stat=Sent
(OK)

As you can see, there appears mail sent to root still goes to
root(at)ftp.dawnsign.com Um?

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


RE: newaliases not working?

2007-02-07 Thread Doug Sampson
  I'm having trouble getting the periodic reports sent out on 
 a daily basis
  from a FreeBSD 6.2 server. I've changed the /etc/aliases 
 file so that root
  points to an administrative mail address.
 
 You can do that directly in /etc/periodic.conf:
 
 daily_output=[EMAIL PROTECTED]
 
Nice to know this. However, I still would like to fix the issue with the
/etc/aliases not being used to translate any mail sent to root to an
alternate email address. If anyone knows a cure to this, I'd be grateful.
Thanks.

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


Re: newaliases not working?

2007-02-07 Thread Peter A. Giessel
On 2007/02/07 9:33, Doug Sampson seems to have typed:
 Nice to know this. However, I still would like to fix the issue with the
 /etc/aliases not being used to translate any mail sent to root to an
 alternate email address. If anyone knows a cure to this, I'd be grateful.
 Thanks.

I believe that sendmail wants /etc/mail/aliases.db not /etc/aliases.
You can remake your aliases.db by:
cd /etc/mail
make maps

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


RE: newaliases not working?

2007-02-07 Thread Doug Sampson
 On 2007/02/07 9:33, Doug Sampson seems to have typed:
  Nice to know this. However, I still would like to fix the 
 issue with the
  /etc/aliases not being used to translate any mail sent to root to an
  alternate email address. If anyone knows a cure to this, 
 I'd be grateful.
  Thanks.
 
 I believe that sendmail wants /etc/mail/aliases.db not /etc/aliases.
 You can remake your aliases.db by:
 cd /etc/mail
 make maps

Does not seem to do the trick.

Feb  7 11:07:08 ftp sendmail[14035]: l17J780C014035: from=root, size=30,
class=0, nrcpts=1, msgid=[EMAIL PROTECTED],
[EMAIL PROTECTED]
Feb  7 11:07:08 ftp sm-mta[14036]: l17J78cU014036:
from=[EMAIL PROTECTED], size=356, class=0, nrcpts=1,
msgid=[EMAIL PROTECTED], proto=ESMTP,
daemon=Daemon0, relay=localhost [127.0.0.1]
Feb  7 11:07:08 ftp sendmail[14035]: l17J780C014035: to=root, ctladdr=root
(0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30030,
relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l17J78cU014036 Message
accepted for delivery)
Feb  7 11:07:09 ftp sm-mta[14038]: l17J78cU014036:
to=[EMAIL PROTECTED], delay=00:00:01, xdelay=00:00:01, mailer=esmtp,
pri=30356, relay=mercury.dawnsign.com. [192.168.1.4], dsn=2.0.0, stat=Sent
(OK)


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


Re: newaliases not working?

2007-02-07 Thread Peter A. Giessel
On 2007/02/07 10:12, Doug Sampson seems to have typed:
 On 2007/02/07 9:33, Doug Sampson seems to have typed:
 Nice to know this. However, I still would like to fix the 
 issue with the
 /etc/aliases not being used to translate any mail sent to root to an
 alternate email address. If anyone knows a cure to this, 
 I'd be grateful.
 Thanks.
 I believe that sendmail wants /etc/mail/aliases.db not /etc/aliases.
 You can remake your aliases.db by:
 cd /etc/mail
 make maps

 Does not seem to do the trick.

Sorry, try:
make aliases restart

(more Makefile for other options)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: newaliases not working?

2007-02-07 Thread Doug Sampson
  I believe that sendmail wants /etc/mail/aliases.db not 
 /etc/aliases.
  You can remake your aliases.db by:
  cd /etc/mail
  make maps
 
  Does not seem to do the trick.
 
 Sorry, try:
 make aliases restart
 
 (more Makefile for other options)
 

No dice.

Feb  7 11:29:48 ftp sm-mta[11136]: restarting /usr/sbin/sendmail due to
signal
Feb  7 11:29:48 ftp sm-msp-queue[11137]: restarting /usr/sbin/sendmail due
to signal
Feb  7 11:29:48 ftp sm-mta[14105]: starting daemon (8.13.8):
[EMAIL PROTECTED]:30:00
Feb  7 11:29:48 ftp sm-msp-queue[14107]: starting daemon (8.13.8):
[EMAIL PROTECTED]:30:00
Feb  7 11:30:05 ftp sendmail[14113]: l17JU50O014113: from=root, size=30,
class=0, nrcpts=1, msgid=[EMAIL PROTECTED],
[EMAIL PROTECTED]
Feb  7 11:30:05 ftp sm-mta[14114]: l17JU5T8014114:
from=[EMAIL PROTECTED], size=356, class=0, nrcpts=1,
msgid=[EMAIL PROTECTED], proto=ESMTP,
daemon=Daemon0, relay=localhost [127.0.0.1]
Feb  7 11:30:05 ftp sendmail[14113]: l17JU50O014113: to=root, ctladdr=root
(0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30030,
relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l17JU5T8014114 Message
accepted for delivery)
Feb  7 11:30:06 ftp sm-mta[14116]: l17JU5T8014114:
to=[EMAIL PROTECTED], delay=00:00:01, xdelay=00:00:01, mailer=esmtp,
pri=30356, relay=mercury.dawnsign.com. [192.168.1.4], dsn=2.0.0, stat=Sent
(OK)

Thanks for the tip on make Makefile. It's interesting but I'd leave that to
sendmail whizzes.

~Doug

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


newaliases not working?

2007-02-06 Thread Doug Sampson
I'm having trouble getting the periodic reports sent out on a daily basis
from a FreeBSD 6.2 server. I've changed the /etc/aliases file so that root
points to an administrative mail address. But for some reason it doesn't get
translated to the admin email address. I've run the 'newaliases' several
times to no avail.

Mail log below. The first four lines are a result of running 'periodic
daily'. The last four lines is when I address a mail directly to
admin(at)dawnsign.com (the @ sign has been changed to protect it).

Feb  6 17:00:03 ftp sendmail[11196]: l17103fh011196: from=root, size=38,
class=0, nrcpts=1, msgid=[EMAIL PROTECTED],
[EMAIL PROTECTED]
Feb  6 17:00:03 ftp sm-mta[11197]: l17103eC011197:
from=[EMAIL PROTECTED], size=367, class=0, nrcpts=1,
msgid=[EMAIL PROTECTED], proto=ESMTP,
daemon=Daemon0, relay=localhost [127.0.0.1]
Feb  6 17:00:03 ftp sendmail[11196]: l17103fh011196: to=to:root,
ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay,
pri=30038, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent
(l17103eC011197 Message accepted for delivery)
Feb  6 17:00:04 ftp sm-mta[11199]: l17103eC011197:
to=[EMAIL PROTECTED], delay=00:00:01, xdelay=00:00:01, mailer=esmtp,
pri=30367, relay=mercury.dawnsign.com. [192.168.1.4], dsn=2.0.0, stat=Sent
(OK)
Feb  6 17:18:00 ftp sendmail[11242]: l171I0SO011242: from=root, size=84,
class=0, nrcpts=1, msgid=[EMAIL PROTECTED],
[EMAIL PROTECTED]
Feb  6 17:18:00 ftp sm-mta[11243]: l171I08q011243:
from=[EMAIL PROTECTED], size=410, class=0, nrcpts=1,
msgid=[EMAIL PROTECTED], proto=ESMTP,
daemon=Daemon0, relay=localhost [127.0.0.1]
Feb  6 17:18:00 ftp sendmail[11242]: l171I0SO011242:
to=to:[EMAIL PROTECTED], ctladdr=root (0/0), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30084, relay=[127.0.0.1] [127.0.0.1],
dsn=2.0.0, stat=Sent (l171I08q011243 Message accepted for delivery)
Feb  6 17:18:01 ftp sm-mta[11245]: l171I08q011243:
to=admin(at)dawnsign.com, delay=00:00:01, xdelay=00:00:01, mailer=esmtp,
pri=30410, relay=mercury.dawnsign.com. [192.168.1.4], dsn=2.0.0, stat=Sent
(OK)

ps ax shows that sendmail is running as follows:
snip
11136  ??  Ss 0:00.08 sendmail: accepting connections (sendmail)
11137  ??  Is 0:00.01 sendmail: Queue [EMAIL PROTECTED]:30:00 for
/var/spool/clientmqueue (sendmail)
11170  ??  Is 0:00.01 /usr/sbin/inetd -wW
snip

I used to receive these daily  security run output messages until the day I
installed vsftpd using inetd.

There are no mail in any outbound mail queues.

What could I be doing wrong?

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


Re: newaliases not working?

2007-02-06 Thread Dan Busarow


On Feb 6, 2007, at 6:31 PM, Doug Sampson wrote:

I'm having trouble getting the periodic reports sent out on a daily  
basis
from a FreeBSD 6.2 server. I've changed the /etc/aliases file so  
that root
points to an administrative mail address. But for some reason it  
doesn't get
translated to the admin email address. I've run the 'newaliases'  
several

times to no avail.

Mail log below. The first four lines are a result of running 'periodic
daily'. The last four lines is when I address a mail directly to
admin(at)dawnsign.com (the @ sign has been changed to protect it).

Feb  6 17:00:03 ftp sendmail[11196]: l17103fh011196: from=root,  
size=38,
class=0, nrcpts=1,  
msgid=[EMAIL PROTECTED],

[EMAIL PROTECTED]
Feb  6 17:00:03 ftp sm-mta[11197]: l17103eC011197:
from=[EMAIL PROTECTED], size=367, class=0, nrcpts=1,
msgid=[EMAIL PROTECTED], proto=ESMTP,
daemon=Daemon0, relay=localhost [127.0.0.1]
Feb  6 17:00:03 ftp sendmail[11196]: l17103fh011196: to=to:root,
ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay,
pri=30038, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent
(l17103eC011197 Message accepted for delivery)


Looks like you have a bad entry in /etc/mail/aliases

This to=to:root, should look like to=dougs

Post the relevant lines from your aliases file.

Dan




Feb  6 17:00:04 ftp sm-mta[11199]: l17103eC011197:
to=[EMAIL PROTECTED], delay=00:00:01, xdelay=00:00:01,  
mailer=esmtp,
pri=30367, relay=mercury.dawnsign.com. [192.168.1.4], dsn=2.0.0,  
stat=Sent

(OK)
Feb  6 17:18:00 ftp sendmail[11242]: l171I0SO011242: from=root,  
size=84,
class=0, nrcpts=1,  
msgid=[EMAIL PROTECTED],

[EMAIL PROTECTED]
Feb  6 17:18:00 ftp sm-mta[11243]: l171I08q011243:
from=[EMAIL PROTECTED], size=410, class=0, nrcpts=1,
msgid=[EMAIL PROTECTED], proto=ESMTP,
daemon=Daemon0, relay=localhost [127.0.0.1]
Feb  6 17:18:00 ftp sendmail[11242]: l171I0SO011242:
to=to:[EMAIL PROTECTED], ctladdr=root (0/0), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30084, relay=[127.0.0.1]  
[127.0.0.1],

dsn=2.0.0, stat=Sent (l171I08q011243 Message accepted for delivery)
Feb  6 17:18:01 ftp sm-mta[11245]: l171I08q011243:
to=admin(at)dawnsign.com, delay=00:00:01, xdelay=00:00:01,  
mailer=esmtp,
pri=30410, relay=mercury.dawnsign.com. [192.168.1.4], dsn=2.0.0,  
stat=Sent

(OK)

ps ax shows that sendmail is running as follows:
snip
11136  ??  Ss 0:00.08 sendmail: accepting connections (sendmail)
11137  ??  Is 0:00.01 sendmail: Queue [EMAIL PROTECTED]:30:00 for
/var/spool/clientmqueue (sendmail)
11170  ??  Is 0:00.01 /usr/sbin/inetd -wW
snip

I used to receive these daily  security run output messages until  
the day I

installed vsftpd using inetd.

There are no mail in any outbound mail queues.

What could I be doing wrong?

~Doug

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