ok, I ran that script with eth0 and different emails. I am running iptables and opened port 25 as a tcp connection with the rule above, then I rebooted and ran the above script. Still haven't gotten any emails. Here's the output after running the script:
220 LinuxHippy.example.org ESMTP Sendmail 8.13.7/8.13.4; Sun, 16 Jul 2006 19:40:02 -0400
>>> EHLO LinuxHippy.example.org
250-LinuxHippy.example.org Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH DIGEST-MD5 CRAM-MD5
250-DELIVERBY
250 HELP
>>> MAIL From:<huntz@LinuxHippy.example.org> SIZE=4406 AUTH=huntz@LinuxHippy.example.org
250 2.1.0 <huntz@LinuxHippy.example.org>... Sender ok
>>> RCPT To:<lxhippy@verizon.net>
>>> RCPT To:<kingskid@juno.com>
>>> DATA
250 2.1.5 <lxhippy@verizon.net>... Recipient ok
250 2.1.5 <kingskid@juno.com>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
250 2.0.0 k6GNe2Vs001190 Message accepted for delivery
lxhippy@verizon.net,kingskid_10@juno.com... Sent (k6GNe2Vs001190 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 LinuxHippy.example.org closing connection
I got a locat email on my pc about this error for my verizon email account:
554 5.0.0 Service unavailable
<lxhippy@verizon.net>... Deferred: Connection timed out with relay.verizon.net.
Here's the info.txt file:
External interface address:
192.168.1.45
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 56472 192.168.1.45:8001 192.168.1.47:46645 ESTABLISHED 1158/perl
tcp 0 0 192.168.1.45:22 192.168.1.47:39401 ESTABLISHED 1132/sshd: huntz [p
Ip:
9071 total packets received
0 forwarded
0 incoming packets discarded
9060 incoming packets delivered
5076 requests sent out
Icmp:
10 ICMP messages received
1 input ICMP message failed.
ICMP input histogram:
destination unreachable: 10
0 ICMP messages sent
0 ICMP messages failed
ICMP output histogram:
Tcp:
8 active connections openings
4 passive connection openings
0 failed connection attempts
0 connection resets received
2 connections established
9043 segments received
5058 segments send out
31 segments retransmited
0 bad segments received.
10 resets sent
Udp:
18 packets received
0 packets to unknown port received.
0 packet receive errors
18 packets sent
TcpExt:
ArpFilter: 0
2 TCP sockets finished time wait in fast timer
5 delayed acks sent
1 delayed acks further delayed because of locked socket
Quick ack mode was activated 4 times
12 packets directly queued to recvmsg prequeue.
808 packets directly received from prequeue
327 packets header predicted
TCPPureAcks: 6840
TCPHPAcks: 1344
TCPRenoRecovery: 0
TCPSackRecovery: 0
TCPSACKReneging: 0
TCPFACKReorder: 0
TCPSACKReorder: 0
TCPRenoReorder: 0
TCPTSReorder: 0
TCPFullUndo: 0
TCPPartialUndo: 0
TCPDSACKUndo: 0
TCPLossUndo: 21
TCPLoss: 0
TCPLostRetransmit: 0
TCPRenoFailures: 0
TCPSackFailures: 0
TCPLossFailures: 0
TCPFastRetrans: 0
TCPForwardRetrans: 0
TCPSlowStartRetrans: 0
TCPTimeouts: 23
TCPRenoRecoveryFail: 0
TCPSackRecoveryFail: 0
TCPSchedulerFailed: 0
TCPRcvCollapsed: 0
TCPDSACKOldSent: 4
TCPDSACKOfoSent: 0
TCPDSACKRecv: 41
TCPDSACKOfoRecv: 0
TCPAbortOnSyn: 0
TCPAbortOnData: 0
TCPAbortOnClose: 0
TCPAbortOnMemory: 0
TCPAbortOnTimeout: 2
TCPAbortOnLinger: 0
TCPAbortFailed: 0
TCPMemoryPressures: 0
eth0 Link encap:Ethernet HWaddr 00:11:50:67
C:BD
inet addr:192.168.1.45 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9021 errors:0 dropped:0 overruns:0 frame:0
TX packets:5025 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:652904 (637.6 Kb) TX bytes:5668185 (5.4 Mb)
eth1 Link encap:Ethernet HWaddr 00:40:F4:4C:F0:80
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:3 Base address:0xb000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:54 errors:0 dropped:0 overruns:0 frame:0
TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:235814 (230.2 Kb) TX bytes:235814 (230.2 Kb)
eth0 IEEE 802.11g ESSID:"LinuxNeighborhood" Nickname:"LinuxHippy"
Mode:Managed Frequency:2.442 GHz Access Point: 00:E0:98:E1:94:21
Bit Rate=48 Mb/s Tx-Power:0 dBm
RTS thr
ff Fragment thr
ff
Encryption key:###########################
Power Management
ff
Link Quality=7/94 Signal level=-69 dBm Noise level=-154 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:3240 Missed beacon:0.