Results 1 to 5 of 5
top -b -n1 | mail -s 'Process snapshot' validmailaddress
This should send me the stuff, instead nothing happens ?
Turning firewall off does not help.
sendmail service is running, default, ...
- 10-26-2011 #1Just Joined!
- Join Date
- Jan 2010
- Posts
- 11
sending mail
This should send me the stuff, instead nothing happens ?top -b -n1 | mail -s 'Process snapshot' validmailaddress
Turning firewall off does not help.
sendmail service is running, default, no changes have been made there since os install.
All I want it to do is send mail. Nothing else.
from maillog
Oct 26 18:32:48 unknown001cc081f832 sendmail[18295]: p9QGWmsv018295: from=root, size=16056, class=0, nrcpts=1, msgid=<201110261632.p9QGWmsv018295@localhost.local domain>, relay=root@localhost
Oct 26 18:32:48 unknown001cc081f832 sendmail[18295]: p9QGWmsv018295: to=validmailaddress, delay=00:00:00, mailer=esmtp, pri=46056, dsn=4.4.3, stat=queuedLast edited by BubikolRamios; 10-26-2011 at 04:31 PM.
- 10-26-2011 #2Just Joined!
- Join Date
- Jan 2010
- Posts
- 11
OK that was network problem (could not surf, but within LAN all was working). But since that was solved, I get to:
But nothing gets to the destination mail. I think something is wrong with network, since mails was getting there if I obtained network settings via DHCP automaticaly.Oct 26 22:18:39 localhost sendmail[6572]: p9QKIdrX006572: from=root, size=15802, class=0, nrcpts=1, msgid=<201110262018.p9QKIdrX006572@unknown001cc081 f832.home>, relay=root@localhost
Oct 26 22:18:39 localhost sendmail[6575]: p9QKIddc006575: from=<root@unknown001cc081f832.home>, size=16109, class=0, nrcpts=1, msgid=<201110262018.p9QKIdrX006572@unknown001cc081 f832.home>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Oct 26 22:18:39 localhost sendmail[6575]: p9QKIddc006575: to=<xxx@yahoo.com>, delay=00:00:00, mailer=esmtp, pri=46109, dsn=4.4.3, stat=queued
Oct 26 22:18:39 localhost sendmail[6572]: p9QKIdrX006572: to=xxx@yahoo.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=45802, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p9QKIddc006575 Message accepted for delivery)
Any advice welcome.
- 10-26-2011 #3Linux Guru
- Join Date
- May 2011
- Posts
- 1,843
If all was working when the mail server was using DHCP, then I would guess that your DNS config is not correct. Configure again for DHCP (temporarily) and check the output of this command:
Run the command again when you are in static mode. You may need to manually add the nameserver lines in. You also need to be sure that your default gateway is being set. check with:Code:cat /etc/resolv.conf
Code:route -n
- 10-26-2011 #4Just Joined!
- Join Date
- Jan 2010
- Posts
- 11
Can't reproduce, it stops at "accepted for delivery" in both cases now.HAve no idea where 169.254.0.0 comes from ?
Did not touch any of mail settings, they are as they were at OS setup.
DHCP:
manual[root@unknown001cc081f832 ~]# cat /etc/resolv.conf
; generated by /sbin/dhclient-script
search home
nameserver 192.168.1.1
[root@unknown001cc081f832 ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
[root@unknown001cc081f832 ~]#
[root@unknown001cc081f832 ~]# cat /etc/resolv.conf
search localdomain
nameserver 192.168.1.1
[root@unknown001cc081f832 ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
[root@unknown001cc081f832 ~]#Last edited by BubikolRamios; 10-26-2011 at 10:07 PM.
- 10-27-2011 #5Just Joined!
- Join Date
- Jan 2010
- Posts
- 11
Then in a while ...
ct 27 01:11:07 localhost sendmail[8877]: p9QIdvKO005903: p9QNB7MM008877: sender notify: Warning: could not send message for past 4 hours
Oct 27 01:11:07 localhost sendmail[8877]: p9QNB7MM008877: to=<root@unknown001cc081f832.home>, delay=00:00:00, mailer=esmtp, pri=47755, dsn=4.4.3, stat=queued
Oct 27 01:11:07 localhost sendmail[8877]: p9QIh4Fv005938: p9QNB7MN008877: sender notify: Warning: could not send message for past 4 hours
Oct 27 01:11:07 localhost sendmail[8877]: p9QNB7MN008877: to=<root@unknown001cc081f832.home>, delay=00:00:00, mailer=esmtp, pri=48160, dsn=4.4.3, stat=queued
Oct 27 01:11:07 localhost sendmail[8877]: p9QIiMjx005956: p9QNB7MO008877: sender notify: Warning: could not send message for past 4 hours
Oct 27 01:11:07 localhost sendmail[8877]: p9QNB7MO008877: to=<root@unknown001cc081f832.home>, delay=00:00:00, mailer=esmtp, pri=48241, dsn=4.4.3, stat=queued
Oct 27 03:11:07 localhost sendmail[9079]: p9QKGg1J006559: p9R1B7MM009079: sender notify: Warning: could not send message for past 4 hours
Oct 27 03:11:07 localhost sendmail[9079]: p9R1B7MM009079: to=<root@unknown001cc081f832.home>, delay=00:00:00, mailer=esmtp, pri=47268, dsn=4.4.3, stat=queued
Oct 27 03:11:07 localhost sendmail[9079]: p9QKIddc006575: p9R1B7MN009079: sender notify: Warning: could not send message for past 4 hours
Oct 27 03:11:07 localhost sendmail[9079]: p9R1B7MN009079: to=<root@unknown001cc081f832.home>, delay=00:00:00, mailer=esmtp, pri=47349, dsn=4.4.3, stat=queued
Oct 27 04:02:04 localhost sendmail[9233]: p9R222NE009233: from=root, size=4443, class=0, nrcpts=1, msgid=<201110270202.p9R222NE009233@unknown001cc081 f832.home>, relay=root@localhost
Oct 27 04:02:04 localhost sendmail[9515]: p9R224M0009515: from=<root@unknown001cc081f832.home>, size=4735, class=0, nrcpts=1, msgid=<201110270202.p9R222NE009233@unknown001cc081 f832.home>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Oct 27 04:02:04 localhost sendmail[9515]: p9R224M0009515: to=<root@unknown001cc081f832.home>, delay=00:00:00, mailer=esmtp, pri=34735, dsn=4.4.3, stat=queued
Oct 27 04:02:04 localhost sendmail[9233]: p9R222NE009233: to=root, ctladdr=root (0/0), delay=00:00:02, xdelay=00:00:00, mailer=relay, pri=34443, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p9R224M0009515 Message accepted for delivery)
Oct 27 04:11:07 localhost sendmail[9690]: p9QLoA2e007783: p9R2B7M1009690: sender notify: Warning: could not send message for past 4 hours
....


Reply With Quote