logger not writing to syslog, mail failing - SUN
This is a discussion on logger not writing to syslog, mail failing - SUN ; We have just switched a server to a new ip/subnet.
I know this subnet allows mail, since I have other servers on this
subnet as well.
We did a sysunconfig to change the IP address etc. ( Will never do
...
-
logger not writing to syslog, mail failing
We have just switched a server to a new ip/subnet.
I know this subnet allows mail, since I have other servers on this
subnet as well.
We did a sysunconfig to change the IP address etc. ( Will never do
again, just change a few files)
Now we can no longer send mail, or even get the logger to work to
syslog.
When I type logger FAIL Test
Nothing appears in syslog, or in messages for that mater.
The server is not a mail server, but we use sendmail to send mail out
from server
syslogd is running, and here is the output to syslog for mailx
I am at a loss with this.
Feb 15 11:42:41 server2 sendmail[14188]: k1FHgf414186:
to=laur...@mmm.ca, ctladdr=lhradowy (1006/14), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=120058, relay=mailhost.mmm.nn.ca,
dsn=5.1.2, stat=Host unknown (Name server: mailhost.mmm.nn.ca: host not
found)
Feb 15 11:42:41 server2 sendmail[14188]: k1FHgf414186: forward
/export/home/lhradowy/.forward.server2+: Group writable directory
Feb 15 11:42:41 server2 sendmail[14188]: k1FHgf414186: forward
/export/home/lhradowy/.forward+: Group writable directory
Feb 15 11:42:41 server2 sendmail[14188]: k1FHgf414186: forward
/export/home/lhradowy/.forward.server2: Group writable directory
Feb 15 11:42:41 server2 sendmail[14188]: k1FHgf414186: forward
/export/home/lhradowy/.forward: Group writable directory
Feb 15 11:42:41 server2 sendmail[14188]: k1FHgf414186: k1FHgf314188:
DSN: Host unknown (Name server: mailhost.mmm.nn.ca: host not found)
Feb 15 11:42:42 server2 sendmail[14188]: k1FHgf314188: to=lhradowy,
delay=00:00:01, xdelay=00:00:00, mailer=local, pri=30114, dsn=2.0.0,
stat=S
-
Re: logger not writing to syslog, mail failing
LHradowy wrote:
> We have just switched a server to a new ip/subnet.
> I know this subnet allows mail, since I have other servers on this
> subnet as well.
>
> We did a sysunconfig to change the IP address etc. ( Will never do
> again, just change a few files)
> Now we can no longer send mail, or even get the logger to work to
> syslog.
> When I type logger FAIL Test
> Nothing appears in syslog, or in messages for that mater.
>
> The server is not a mail server, but we use sendmail to send mail out
> from server
> syslogd is running, and here is the output to syslog for mailx
>
> I am at a loss with this.
>
> Feb 15 11:42:41 server2 sendmail[14188]: k1FHgf414186:
> to=laur...@mmm.ca, ctladdr=lhradowy (1006/14), delay=00:00:00,
> xdelay=00:00:00, mailer=relay, pri=120058, relay=mailhost.mmm.nn.ca,
> dsn=5.1.2, stat=Host unknown (Name server: mailhost.mmm.nn.ca: host not
> found)
> Feb 15 11:42:41 server2 sendmail[14188]: k1FHgf414186: forward
> /export/home/lhradowy/.forward.server2+: Group writable directory
> Feb 15 11:42:41 server2 sendmail[14188]: k1FHgf414186: forward
> /export/home/lhradowy/.forward+: Group writable directory
> Feb 15 11:42:41 server2 sendmail[14188]: k1FHgf414186: forward
> /export/home/lhradowy/.forward.server2: Group writable directory
> Feb 15 11:42:41 server2 sendmail[14188]: k1FHgf414186: forward
> /export/home/lhradowy/.forward: Group writable directory
> Feb 15 11:42:41 server2 sendmail[14188]: k1FHgf414186: k1FHgf314188:
> DSN: Host unknown (Name server: mailhost.mmm.nn.ca: host not found)
> Feb 15 11:42:42 server2 sendmail[14188]: k1FHgf314188: to=lhradowy,
> delay=00:00:01, xdelay=00:00:00, mailer=local, pri=30114, dsn=2.0.0,
> stat=S
>
Check the sysunconfig manpage on that system for an explanation of what
it does (and did). Your original /etc/inet/hosts file should now be in
/etc/inet/hosts.saved which is where your previously defined mailhost
is, by the looks of it.
WRT the logger issue, the default logger priority is user.notice which,
unless you changed the selectors/actions in syslog.conf, the default
setup will drop that priority (someone correct me). Try 'logger -p
user.err test' or something like that to see that it goes to
/var/adm/messages. See 'man syslog.conf'.