Daily report cannot be emailed to a jailed mail server

2009-10-07 Thread David N
Hi,

FreeBSD 7.2-R box with 10 jails.

The mail server (actually its a mail filter) is hosted on the same
server inside a jail.

I can't seem to get the main server reports to be sent to the mail
filter inside the jail inside the same box.

so.. r...@localhost tries to send an email to some...@anotherdomain.com.au

The MX entry for anotherdomain.com.au points to the mailfilter on the
server (jailed).


I've changed my /etc/mail/aliases to have
root: some...@anotherdomain.com.au
and ran newaliases.

When i try to send an email i get
in /var/log/messages
sm-mta[94682]: n97LeeOw094682: Losing ./qfn97LeeOw094682: savemail panic
Oct  8 08:40:40 server sm-mta[94682]: n97LeeOw094682: SYSERR(root):
savemail: cannot save rejected email anywhere
Oct  8 08:42:30 server sm-mta[94713]: n97LgTYg094713: Losing
./qfn97LgTYg094713: savemail panic
Oct  8 08:42:30 server sm-mta[94713]: n97LgTYg094713: SYSERR(root):
savemail: cannot save rejected email anywhere
Oct  8 08:47:07 server sm-mta[95130]: n97Ll7VV095129: SYSERR(root): MX
list for anotherdomain.com.au. points back to server.net

In /var/log/maillog
n97Ll7VV095129: to=some...@anotherdomain.com.au,
ctladdr=r...@server.net (0/0), delay=00:00:00, xdelay=00:00:00,
mailer=esmtp, pri=30715, relay=anotherdomain.com.au., dsn=5.3.5,
stat=Local configuration error
Oct  8 08:47:07 server sm-mta[95130]: n97Ll7VV095129: n97Ll7VV095130:
DSN: Local configuration error

Anyone have any ideas on how to fix this?

Regards
David N
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Daily report cannot be emailed to a jailed mail server

2009-10-07 Thread Steve Bertrand
David N wrote:
 Hi,
 
 FreeBSD 7.2-R box with 10 jails.
 
 The mail server (actually its a mail filter) is hosted on the same
 server inside a jail.
 
 I can't seem to get the main server reports to be sent to the mail
 filter inside the jail inside the same box.
 
 so.. r...@localhost tries to send an email to some...@anotherdomain.com.au
 
 The MX entry for anotherdomain.com.au points to the mailfilter on the
 server (jailed).
 
 
 I've changed my /etc/mail/aliases to have
 root: some...@anotherdomain.com.au
 and ran newaliases.
 
 When i try to send an email i get
 in /var/log/messages
 sm-mta[94682]: n97LeeOw094682: Losing ./qfn97LeeOw094682: savemail panic
 Oct  8 08:40:40 server sm-mta[94682]: n97LeeOw094682: SYSERR(root):
 savemail: cannot save rejected email anywhere
 Oct  8 08:42:30 server sm-mta[94713]: n97LgTYg094713: Losing
 ./qfn97LgTYg094713: savemail panic
 Oct  8 08:42:30 server sm-mta[94713]: n97LgTYg094713: SYSERR(root):
 savemail: cannot save rejected email anywhere
 Oct  8 08:47:07 server sm-mta[95130]: n97Ll7VV095129: SYSERR(root): MX
 list for anotherdomain.com.au. points back to server.net
 
 In /var/log/maillog
 n97Ll7VV095129: to=some...@anotherdomain.com.au,
 ctladdr=r...@server.net (0/0), delay=00:00:00, xdelay=00:00:00,
 mailer=esmtp, pri=30715, relay=anotherdomain.com.au., dsn=5.3.5,
 stat=Local configuration error
 Oct  8 08:47:07 server sm-mta[95130]: n97Ll7VV095129: n97Ll7VV095130:
 DSN: Local configuration error
 
 Anyone have any ideas on how to fix this?

If you hadn't of sanitized the domain names, it would have been easier
to troubleshoot...

Nonetheless, you can force Sendmail to push email to a different server
directly (overriding the DNS MX entries) with a 'mailertable' file in
/etc/mail. Here's one on a secondary MX:

%cat /etc/mail/mailertable
ibctech.ca  smtp:[smtp.ibctech.ca]
ipv6canada.com  smtp:[smtp.ipv6canada.com]
...

After the file is created, a simple 'make' in /etc/mail will build the
mailertable.db file for you and take effect immediately (much like
'newaliases').

However, it's hard to tell if this recommendation will solve your
problem though. Without knowing the real domain, we can't perform DNS
tests against it to get a better understanding of the situation.

Cheers,

Steve

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


Re: Daily report cannot be emailed to a jailed mail server

2009-10-07 Thread David N
2009/10/8 Steve Bertrand st...@ibctech.ca:
 David N wrote:
 Hi,

 FreeBSD 7.2-R box with 10 jails.

 The mail server (actually its a mail filter) is hosted on the same
 server inside a jail.

 I can't seem to get the main server reports to be sent to the mail
 filter inside the jail inside the same box.

 so.. r...@localhost tries to send an email to some...@anotherdomain.com.au

 The MX entry for anotherdomain.com.au points to the mailfilter on the
 server (jailed).


 I've changed my /etc/mail/aliases to have
 root: some...@anotherdomain.com.au
 and ran newaliases.

 When i try to send an email i get
 in /var/log/messages
 sm-mta[94682]: n97LeeOw094682: Losing ./qfn97LeeOw094682: savemail panic
 Oct  8 08:40:40 server sm-mta[94682]: n97LeeOw094682: SYSERR(root):
 savemail: cannot save rejected email anywhere
 Oct  8 08:42:30 server sm-mta[94713]: n97LgTYg094713: Losing
 ./qfn97LgTYg094713: savemail panic
 Oct  8 08:42:30 server sm-mta[94713]: n97LgTYg094713: SYSERR(root):
 savemail: cannot save rejected email anywhere
 Oct  8 08:47:07 server sm-mta[95130]: n97Ll7VV095129: SYSERR(root): MX
 list for anotherdomain.com.au. points back to server.net

 In /var/log/maillog
 n97Ll7VV095129: to=some...@anotherdomain.com.au,
 ctladdr=r...@server.net (0/0), delay=00:00:00, xdelay=00:00:00,
 mailer=esmtp, pri=30715, relay=anotherdomain.com.au., dsn=5.3.5,
 stat=Local configuration error
 Oct  8 08:47:07 server sm-mta[95130]: n97Ll7VV095129: n97Ll7VV095130:
 DSN: Local configuration error

 Anyone have any ideas on how to fix this?

 If you hadn't of sanitized the domain names, it would have been easier
 to troubleshoot...

 Nonetheless, you can force Sendmail to push email to a different server
 directly (overriding the DNS MX entries) with a 'mailertable' file in
 /etc/mail. Here's one on a secondary MX:

 %cat /etc/mail/mailertable
 ibctech.ca      smtp:[smtp.ibctech.ca]
 ipv6canada.com  smtp:[smtp.ipv6canada.com]
 ...

 After the file is created, a simple 'make' in /etc/mail will build the
 mailertable.db file for you and take effect immediately (much like
 'newaliases').

 However, it's hard to tell if this recommendation will solve your
 problem though. Without knowing the real domain, we can't perform DNS
 tests against it to get a better understanding of the situation.

 Cheers,

 Steve




Thank you so much, it worked =)

My MX records are correct, i could get mail from the outside, but just
couldn't get the daily reports to deliver it.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Daily report cannot be emailed to a jailed mail server

2009-10-07 Thread George Davidovich
On Thu, Oct 08, 2009 at 09:02:50AM +1100, David N wrote:
 FreeBSD 7.2-R box with 10 jails.
 
 The mail server (actually its a mail filter) is hosted on the same
 server inside a jail.
 
 I can't seem to get the main server reports to be sent to the mail
 filter inside the jail inside the same box.
 
 so.. r...@localhost tries to send an email to
 some...@anotherdomain.com.au
 
 The MX entry for anotherdomain.com.au points to the mailfilter on the
 server (jailed).

 I've changed my /etc/mail/aliases to have
 root: some...@anotherdomain.com.au
 and ran newaliases.

It's been already pointed out that you aren't providing much information
to go on, so here's my WAG of what is happening.

Changing the root alias root could work, but consider the case of mail
from the jailhost being rejected by the jailed mailserver.  The bounce
message will be addressed to POSTMASTER on the jailhost, which points to
root on the jailhost, which points back to the jailed mailserver trying
to send the bounce, which points to ...

You can examine the scenario for yourself either by listening to a
married couple on the verge of divorce argue with one another, or more
specifically, by running

  [r...@jailhost] sendmail -bv root
  [r...@jail] sendmail -bv postmas...@jailhost.server.net

 When i try to send an email i get
 in /var/log/messages
 sm-mta[94682]: n97LeeOw094682: Losing ./qfn97LeeOw094682: savemail panic
 Oct  8 08:40:40 server sm-mta[94682]: n97LeeOw094682: SYSERR(root):
 savemail: cannot save rejected email anywhere
 Oct  8 08:42:30 server sm-mta[94713]: n97LgTYg094713: Losing
 ./qfn97LgTYg094713: savemail panic
 Oct  8 08:42:30 server sm-mta[94713]: n97LgTYg094713: SYSERR(root):
 savemail: cannot save rejected email anywhere
 Oct  8 08:47:07 server sm-mta[95130]: n97Ll7VV095129: SYSERR(root): MX
 list for anotherdomain.com.au. points back to server.net

The jailed mailserver is rejecting the mail and is then trying to send a
bounce and can't because it's caught in a loop that ends when Sendmail
says Look this isn't an argument ... it's just contradiction! and
bails out.  

Why the jailed mailserver is rejecting the mail is a separate issue. 

 In /var/log/maillog
 n97Ll7VV095129: to=some...@anotherdomain.com.au,
 ctladdr=r...@server.net (0/0), delay=00:00:00, xdelay=00:00:00,
 mailer=esmtp, pri=30715, relay=anotherdomain.com.au., dsn=5.3.5,
 stat=Local configuration error
 Oct  8 08:47:07 server sm-mta[95130]: n97Ll7VV095129: n97Ll7VV095130:
 DSN: Local configuration error

That's from the maillog on the jailhost.  More relevant to why the
jailed mailserver has rejected the mail would be the jail's maillog
entries (or whatever logging was done by the filter installed there). 

Either way, for the interim I'd suggest undoing your changes, rebuilding
your aliases and consider implementing an alternate approach.  For
anyone to figure out conclusively what's happening, you'll have to
provide more information.

-- 
George
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Daily report cannot be emailed to a jailed mail server

2009-10-07 Thread Steve Bertrand
David N wrote:
 2009/10/8 Steve Bertrand st...@ibctech.ca:
 David N wrote:

[ big snips ]

 When i try to send an email i get

 Oct  8 08:47:07 server sm-mta[95130]: n97Ll7VV095129: SYSERR(root): MX
 list for anotherdomain.com.au. points back to server.net

 Nonetheless, you can force Sendmail to push email to a different server
 directly (overriding the DNS MX entries) with a 'mailertable' file in
 /etc/mail. Here's one on a secondary MX:

 %cat /etc/mail/mailertable
 ibctech.ca  smtp:[smtp.ibctech.ca]
 ipv6canada.com  smtp:[smtp.ipv6canada.com]
 ...

 After the file is created, a simple 'make' in /etc/mail will build the
 mailertable.db file for you and take effect immediately (much like
 'newaliases').

 Thank you so much, it worked =)
 
 My MX records are correct, i could get mail from the outside, but just
 couldn't get the daily reports to deliver it.

I'm glad it worked. Believe me, if that simple change made it work for
you, then it was worth my headache to have spent the time to learn it
for myself ;)

For the last few years, I've only used Sendmail (or sendmail) to act as
a backup MX, or to directly deliver mail from the box I am on...hence,
it's been a while...

There may be other ramifications to using `mailertable' in your
particular environment.

I don't know how your system will react, given a default setup and a
mailertable entry.

It's possible (but untested) that if the server that is specified in the
mailertable is down, your reports might not make it to you ( whether
that's bad or good is up for interpretation... I've always known no news
as good news ;)

Perhaps Giorgos or someone else may be able to provide a better
understanding.

Steve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


daily report

2007-07-18 Thread Jean-Paul Natola
Hi everyone,

Before rebuilding my 5.5 server  to the 6.2
I used to get daily reports emailed from the machine to me
security run output
daily run output

and on Saturday's 
a weekly run output
Cleaning up kernel database files:

Rebuilding locate database:

Rebuilding whatis database:

-- End of weekly output --


What / where do I need to enable to get this again?


Thanks


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


Re: daily report

2007-07-18 Thread Roland Smith
On Wed, Jul 18, 2007 at 02:21:25PM -0400, Jean-Paul Natola wrote:
 Hi everyone,
 
 Before rebuilding my 5.5 server  to the 6.2
 I used to get daily reports emailed from the machine to me
 security run output
 daily run output

 What / where do I need to enable to get this again?

You need to put the following in /etc/periodic.conf;

# Where to store/send output of periodic runs.
daily_output=yourusername
weekly_output=yourusername
monthly_output=yourusername
daily_status_security_inline=YES

Where 'yourusername' needs the obvious replacement.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgp9eCTcPdP88.pgp
Description: PGP signature


RE: daily report

2007-07-18 Thread fbsd2
Its activated as part of the standard install and by default goes to root
account.
You can alias root to your private email address to get those reports sent
to you.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Jean-Paul Natola
Sent: Wednesday, July 18, 2007 2:21 PM
To: [EMAIL PROTECTED]
Subject: daily report

Hi everyone,

Before rebuilding my 5.5 server  to the 6.2
I used to get daily reports emailed from the machine to me
security run output
daily run output

and on Saturday's
a weekly run output
Cleaning up kernel database files:

Rebuilding locate database:

Rebuilding whatis database:

-- End of weekly output --


What / where do I need to enable to get this again?


Thanks


Jean-Paul
___
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]


Strange messages from daily report

2006-02-22 Thread bsd
I 've received these message in my daily report and was wondering  
what was their meaning ?



srv23.xxx.fr kernel log messages:


Timecounter ACPI-fast frequency 3579545 Hz quality 1000
Timecounter TSC frequency 2992513943 Hz quality 800





«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§

Gregober --- PGP ID -- 0x1BA3C2FD
bsd @at@ todoo.biz

«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§




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