LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-24-2005, 03:55 PM   #1
jkassemi
Member
 
Registered: May 2004
Location: Albuquerque, NM
Distribution: slackware-current, slamd64-11
Posts: 106

Rep: Reputation: 15
HELP - Sendmail killing me!


Hey guys. I appreciate your help....

I'm pretty new with linux. Until recently I thought I knew enough about it to hold my own, but I realize now I don't. I installed Apache 2, PHP 5 and mySQL 4, but now I need to get sendmail up and running so that I can use the PHP sendmail functions for my web site... I wrote the following PHP to test sendmail:

PHP Code:
mail("jkassemi@hotmail.com""testmail""Testing!",
    
"From: webmaster@{$_SERVER['SERVER_NAME']}\r\n" .
    
"Reply-To: [email]jkassemi@hotmail.com[/email]\r\n" .
    
"X-Mailer: PHP/" phpversion()); 
And when the above function runs everything seems okay. Except for the fact that I get no e-mail!

Here's what I've got in my /var/log/maillog:

Code:
Feb 21 07:33:58 localhost sm-mta[414]: starting daemon (8.12.11): SMTP+queueing@00:25:00
Feb 21 07:33:58 localhost sm-msp-queue[417]: starting daemon (8.12.11): queueing@00:25:00
Feb 24 11:58:55 localhost sendmail[16387]: j1OIwt2q016387: from=nobody, size=132, class=0, nrcpts=1, msgid=<200502241858.j1OIwt2q016387@localhost.localhost>, relay=nobody@localhost
Feb 24 11:59:04 localhost sm-mta[16388]: j1OIwtZC016388: from=<nobody@localhost.localhost>, size=367, class=0, nrcpts=1, msgid=<200502241858.j1OIwt2q016387@localhost.localhost>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Feb 24 11:59:04 localhost sm-mta[16388]: j1OIwtZC016388: to=<jkassemi@hotmail.com>, delay=00:00:09, mailer=esmtp, pri=30367, dsn=4.4.3, stat=queued
Feb 24 11:59:04 localhost sendmail[16387]: j1OIwt2q016387: to=jkassemi@hotmail.com, ctladdr=nobody (99/99), delay=00:00:09, xdelay=00:00:09, mailer=relay, pri=30132, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (j1OIwtZC016388 Message accepted for delivery)
Feb 24 12:37:38 localhost sendmail[16489]: j1OJbcKu016489: from=nobody, size=132, class=0, nrcpts=1, msgid=<200502241937.j1OJbcKu016489@localhost.localhost>, relay=nobody@localhost
Feb 24 12:37:54 localhost sm-mta[16490]: j1OJbcw1016490: from=<nobody@localhost.localhost>, size=367, class=0, nrcpts=1, msgid=<200502241937.j1OJbcKu016489@localhost.localhost>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Feb 24 12:37:54 localhost sm-mta[16490]: j1OJbcw1016490: to=<jkassemi@hotmail.com>, delay=00:00:16, mailer=esmtp, pri=30367, dsn=4.4.3, stat=queued
Feb 24 12:37:54 localhost sendmail[16489]: j1OJbcKu016489: to=jkassemi@hotmail.com, ctladdr=nobody (99/99), delay=00:00:16, xdelay=00:00:16, mailer=relay, pri=30132, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (j1OJbcw1016490 Message accepted for delivery)
Feb 24 12:45:23 localhost sm-mta[16508]: j1OJixR0016508: [192.168.0.254] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
Feb 24 12:46:44 localhost sm-mta[16509]: j1OJkX2B016509: [192.168.0.254] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
Feb 24 12:53:09 localhost sm-mta[16532]: j1OJpgkb016532: [192.168.0.254] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
Feb 24 12:53:57 localhost sm-mta[16533]: j1OJrOwX016533: ruleset=check_mail, arg1=james@jameskassemi.com, relay=[192.168.0.254], reject=451 4.1.8 Domain of sender address james@jameskassemi.com does not resolve
Feb 24 12:58:56 localhost sm-mta[16533]: j1OJrOwX016533: ruleset=check_mail, arg1=james@localhost.com, relay=[192.168.0.254], reject=451 4.1.8 Domain of sender address james@localhost.com does not resolve
Feb 24 13:00:11 localhost sm-mta[16533]: j1OJrOwX016533: from=james@localhost.com, size=0, class=0, nrcpts=0, proto=SMTP, daemon=MTA, relay=[192.168.0.254]
Feb 24 13:28:48 localhost sm-mta[16541]: j1OKSAAi016541: ruleset=check_mail, arg1=james@jameskassemi.com, relay=[192.168.0.254], reject=451 4.1.8 Domain of sender address james@jameskassemi.com does not resolve
Feb 24 13:43:48 localhost sm-mta[16541]: j1OKSAAi016541: from=james@jameskassemi.com, size=0, class=0, nrcpts=0, proto=SMTP, daemon=MTA, relay=[192.168.0.254]
I am using the configuration supplied with slackware by default.

Where the "Domain of sender address james@jameskassemi.com was in result to a telnet of the mail server and the line MAIL FROM james@jameskassemi.com

I really don't know what's going on... If somebody could help I'd appreciate it. I did some reasearch on sendmail online, but found nothing truly distro specific. I'm running the version that came with Slackware 10.0, so I don't want to mess it up by trying to configure from one of the tutorials that doesn't realize that.

Thanks again for your help,

James Kassemi
http://www.jameskassemi.com
 
Old 02-24-2005, 04:27 PM   #2
jkassemi
Member
 
Registered: May 2004
Location: Albuquerque, NM
Distribution: slackware-current, slamd64-11
Posts: 106

Original Poster
Rep: Reputation: 15
Well, I found out that sendmail actually is sending e-mail. Turns out hotmail recognizes it as junk mail... Any ideas?
 
Old 02-24-2005, 09:56 PM   #3
newtommy
Member
 
Registered: Feb 2005
Location: Baltimore, Maryland
Distribution: SuSE 9.2 Professional
Posts: 38

Rep: Reputation: 15
Yes I have the same problem with my individual postfix application for an email server.

It is my understanding that some domains block all individual email servers. So your best bet is going to be to bounce your outgoing e-mail off your ISP's SMTP server. That will probably do the trick.

Good Luck!!
 
Old 02-26-2005, 06:07 AM   #4
jkassemi
Member
 
Registered: May 2004
Location: Albuquerque, NM
Distribution: slackware-current, slamd64-11
Posts: 106

Original Poster
Rep: Reputation: 15
Well, I got through the issue using the following PHP command. The fix was listed in the extended version of the PHP manual:

This is exact code...
PHP Code:

mail
("jkassemi@hotmail.com""Post updated: ".$pName." from: ".$pCategory,
                                        
"You are subscribed to the following post:\r\n".
                                        
$pName." in category: ".$pCategory."\r\n".
                                        
"\r\n".
                                        
"And it has just been updated. Please click:\r\n\r\n".
                                        
"<a href='http://www.jameskassemi.com/viewpost.php?id=".$pID."\r\n\r\n".
                                        
"To visit the post. If your e-mail client does not support links, just copy and
                                            paste the above URL into your browser. Thank you,\r\n\r\n JamesKassemi.com"
.
                                            
"\r\n\r\n\r\nPlease do not reply to this message, nobody is waiting to answer messages to the e-mail address it was sent from."

                                        
,
                                        
"From: Subscription Threads JamesKassemi.com<sub_threads@jameskassemi.com>\nX-Mailer: PHP" phpversion()); 
Good luck.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
This is killing me UncleEricB Linux - Networking 2 02-01-2005 10:41 PM
A quickie: Killing X? orange400 Linux - General 1 06-15-2004 05:47 AM
Killing a pid in C++ pilot1 Programming 4 09-20-2003 11:07 AM
killing X jabberwock486 Linux - Newbie 7 09-10-2003 12:59 PM
Killing X ? sp0t Linux - Newbie 7 08-17-2002 08:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration