
Originally Posted by
purehate
That is the correct command however I am fairly sure it will not work until the sendmail daemon is started
I have "Starting Mail Transport Agent (MTA): sendmail_
started as a service, so I know that's started.
It actually takes up a few more minutes to start Backtrack4 Final when you have
sendmail starting up as a service, nevertheless it's started.
I set up my firewall to allow 25tcp, 25udp, any.
My first command:
Code:
sendEmail -v -f coding.s9@gmail.com -t munya2005@aol.com -u "Dude, Check out this cool link"Reading message body from STDIN because the '-m' option was not used.
If you are manually typing in a message:
- First line must be received within 60 seconds.
- End manual input with a CTRL-D on its own line.
Hi check this link out
http://www.whateva.com
CTRL-D
Here is my verbose output:
Code:
May 10 12:05:06 backtrack sendEmail[5530]: Message input complete.
May 10 12:05:06 backtrack sendEmail[5530]: DEBUG => Connecting to localhost:25
May 10 12:05:06 backtrack sendEmail[5530]: DEBUG => My IP address is: 127.0.0.1
May 10 12:05:06 backtrack sendEmail[5530]: SUCCESS => Received: 220 backtrack ESMTP Sendmail 8.14.3/8.14.3/Debian-4; Mon, 10 May 2010 12:05:06 -0700; (No UCE/UBE) logging access from: localhost(OK)-localhost [127.0.0.1]
May 10 12:05:06 backtrack sendEmail[5530]: INFO => Sending: EHLO backtrack
May 10 12:05:06 backtrack sendEmail[5530]: SUCCESS => Received: 250-backtrack Hello localhost [127.0.0.1], pleased to meet you, 250-ENHANCEDSTATUSCODES, 250-PIPELINING, 250-EXPN, 250-VERB, 250-8BITMIME, 250-SIZE, 250-DSN, 250-ETRN, 250-AUTH DIGEST-MD5 CRAM-MD5, 250-DELIVERBY, 250 HELP
May 10 12:05:06 backtrack sendEmail[5530]: INFO => Sending: MAIL FROM:<coding.s9@gmail.com>
May 10 12:05:06 backtrack sendEmail[5530]: SUCCESS => Received: 250 2.1.0 <coding.s9@gmail.com>... Sender ok
May 10 12:05:06 backtrack sendEmail[5530]: INFO => Sending: RCPT TO:<munya2005@aol.com>
May 10 12:05:06 backtrack sendEmail[5530]: SUCCESS => Received: 250 2.1.5 <munya2005@aol.com>... Recipient ok
May 10 12:05:06 backtrack sendEmail[5530]: INFO => Sending: DATA
May 10 12:05:06 backtrack sendEmail[5530]: SUCCESS => Received: 354 Enter mail, end with "." on a line by itself
May 10 12:05:06 backtrack sendEmail[5530]: INFO => Sending message body
May 10 12:05:06 backtrack sendEmail[5530]: SUCCESS => Received: 250 2.0.0 o4AJ56tn005532 Message accepted for delivery
May 10 12:05:06 backtrack sendEmail[5530]: Email was sent successfully! From: <coding.s9@gmail.com> To: <munya2005@aol.com> Subject: [Dude, Check out this cool link] Server: [localhost:25]
The problem is that when I check my test cases email inbox, including the Spam inbox, there is nothing, so what I am dong wrong?
Output from sendmail says "Email was sent successfully!"?
Just wondering does it matter that My IP address above is: 127.0.0.1?
The reason I ask, is cause, W@r~l0RD says to try:
nano /etc/mail/sendmail.mc
comment out (or deletd) the following line's:
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
And
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
/etc/init.d/sendmail restart
My guess is that sendmail is bound to send mail to 127.0.0.1:25 and will generate a successful message, so
then one has to change that address or comment it out?
Source:http://www.backtrack-linux.org/forum...t-working.html
I even tried switching the emails around with the From: <munya2005@aol.com> To: <coding.s9@gmail.com>, still nothing, in either email inbox, including the spam inbox?
Oh, and sorry for hijacking this thread, I have just been thinking about this for a while, having sendmail working, and DarkDavil, just made me also have to ask about why my config is also not working.