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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-24-2005, 03:55 PM
|
#1
|
Member
Registered: May 2004
Location: Albuquerque, NM
Distribution: slackware-current, slamd64-11
Posts: 106
Rep:
|
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
|
|
|
02-24-2005, 04:27 PM
|
#2
|
Member
Registered: May 2004
Location: Albuquerque, NM
Distribution: slackware-current, slamd64-11
Posts: 106
Original Poster
Rep:
|
Well, I found out that sendmail actually is sending e-mail. Turns out hotmail recognizes it as junk mail... Any ideas?
|
|
|
02-24-2005, 09:56 PM
|
#3
|
Member
Registered: Feb 2005
Location: Baltimore, Maryland
Distribution: SuSE 9.2 Professional
Posts: 38
Rep:
|
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!!
|
|
|
02-26-2005, 06:07 AM
|
#4
|
Member
Registered: May 2004
Location: Albuquerque, NM
Distribution: slackware-current, slamd64-11
Posts: 106
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 08:59 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|